Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
dist.cpython-313.pyc354 linesDownload Raw Back to __pycache__
1�

2��j����<�%SSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	J3r4JrJrJ
r
 SSKJr SSKJr SSKJrJrJr SSKJrJr SSKJrJr SS	KJrJr SS5KJr SSK J!r!J"r"J#r#J$r% SS
K&J'r' SSK(J)r) SSK*J+r+ SSK"J,r, SSK-J.r.J/r/ SSK0J1r1 SSK2J3r3 SSK4J5r5 SSK6J7r7J8r8 SSK9r:SSK;r:SSK<r:SSK=r:SSK>r:SSK?J@r@ SSKAJBrBJCrC SSKDJErE SSKFJGrG \(aSSKHJIrI S/rJ\K\L4rM\\K\NS4\L\N4rOS\PS'SrQ\\N\R\N\4\
\N4rSS\PS 'S4S!jrTS"rUS5S#jrVS$rWS%rXS&rYS'rZS(r[S)r\S6S*jr]S+r^S,r_S-r`S.ra\(aSS/K<Jbrc O\5"\:R�R�5rc"S0S\c5rb\R�S7S1j5rf"S2S3\85rgg)8�)�annotationsN)�Iterable�Iterator�MutableMapping�Sequence)�glob)�Path)�
TYPE_CHECKING�Any�Union)�	partition�unique_everseen)�
InvalidMarker�Marker)�InvalidSpecifier�SpecifierSet)�Version�)�
_entry_points�_reqs�_static�command)�metadata)� _canonicalize_license_expression)�StrPath)�6_StrOrIter)�
pyprojecttoml�setupcfg)�ConfigDiscovery)�InvalidConfigError)�
get_unpatched)�InformationOnly�SetuptoolsDeprecationWarning)�DEBUG)�DistutilsOptionError�DistutilsSetupError)�translate_longopt)�	strtobool)�	TypeAlias�Distribution.r)�	_Sequenceztuple[str, ...] | list[str]�_OrderedStrSequencec�t�US:Xa[R"SSSS9 [$[S[<SU<35e)N�sequencez@`setuptools.dist.sequence` is an internal implementation detail.z8Please define your own `sequence = tuple, list` instead.)i���)�due_datezmodule z has no attribute )r#�emit�	_sequence�AttributeError�__name__��names �UD:\code\apps\devtools\python\user_packages\Python313\site-packages\setuptools/dist.py�__getattr__r9IsB���z��$�)�)�N�F�"�	7�8��9�7�8�,�.@���I�10J�J�c���[R"USSS9nUR(aeg![[[11[4an[U<SU<S35UeSnAff=f)N)�valuer7�groupz/ must be importable 'module:attrs' string (got �))r�12EntryPoint�extras�	TypeError�13ValueErrorr4�AssertionErrorr&)�dist�attrr<�ep�es     r8�check_importablerHTsc���
�
 �
 �u�4�t�
D���9�9��}�9���z�>�>�B��!��h�E�e�Y�a�P�14��	���s�),�A�A�Ac	���[U[5(deSRU5U:wdeg![[[15[4a n[U<S[SU<S35UeSnAff=f)z"Verify that value is a string list�z must be of type <�> (got r>N)	�16isinstancer3�joinrArBr4rCr&�_sequence_type_repr�rDrEr<rGs    r8�assert_string_listrP^st��	��%��+�+�+�+��w�w�u�~��&�&�&���z�>�>�B��!��h�(�)<�(=�W�U�I�Q�O�17��	���s�.1�A+�A&�&A+c�*�Un[XU5 UHnURU5(d[SU<35eURS5upVnU(a&XS;a![R18R
SUU5 [R"SSSS9 M� g)	z(Verify that namespace packages are validzCDistribution contains no modules or packages for namespace package �.z^WARNING: %r is declared as a package namespace, but %r is not: please correct this in setup.pyz/The namespace_packages parameter is deprecated.z<Please replace its usage with implicit namespaces (PEP 420).z3references/keywords.html#keyword-namespace-packages)�see_docsN)	rP�has_contents_forr&�19rpartition�	distutils�log�warnr#r2)rDrEr<�ns_packages�nsp�parent�_sep�_childs        r8�	check_nspr^ls����K��t�;�/����$�$�S�)�)�%�U�VY�U\�]��
� #�~�~�c�2���f��f�/��M�M���;���	
�	%�)�)�=�J�J�	20�r:c��[[R"[UR	555 g![21[[4an[S5UeSnAff=f)z+Verify that extras_require mapping is validz�'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.N)	�list�	itertools�starmap�_check_extra�itemsrArBr4r&rOs    r8�check_extrasre�sP����Y�
�
�|�U�[�[�]�
;�<���z�>�2��!�
&�22��		���s�25�A�23A�Ac���URS5up#n[U5 [	[24R"U55 g![a SUSU<S3n[U5Sef=f)N�:zInvalid environment marker: z (r>)r
�
_check_markerrr&r`r�parse)�extra�reqs�_namer\�marker�msgs      r8rcrc�sg���/�/�#�.��E��1��f��	����T�	����1�,�V�H�B�u�i�q�A��!�#�&�D�0�1�s�A�!A"c�J�U(dg[U5nUR5 g�N)r�evaluate)rm�ms  r8rhrh�s�����v��A��J�J�Lr:c�H�[U5U:wa[U<SU<S35eg)z)Verify that value is True, False, 0, or 1z must be a boolean value (got r>N)�boolr&�rDrEr<s   r8�assert_boolrv�s-���E�{�e��!�T�H�,J�5�)�ST�"U�V�V�r:c�^�U(d[RUS35 g[US35e)Nz is ignored.z is invalid.)�DistDeprecationWarningr2r&rus   r8�invalid_unless_falsery�s/����#�#�t�f�L�$9�:��25���l�3�264�4r:c���[[R"U55 [U[5(a[S5eg![27[4anU<SU3n[U5UeSnAff=f)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzb must be a string or iterable of strings containing valid project/version requirement specifiers; N)r`rrirL�setrArBr&�rDrEr<�errorrns     r8�check_requirementsr~�su��	2��U�[�[��
� ��e�S�!�!��=�>�>�"���z�"�2��h�H�HM�w�
P�	�"�#�&�E�1��2�s�?A�A+�A&�&A+c�t�[U5 g![[4anU<SU3n[U5UeSnAff=f)z.Verify that value is a valid version specifierz7 must be a string containing valid version specifiers; N)rrr4r&r|s     r8�check_specifierr��sC��2��U����n�-�2���O�PU�w�W��!�#�&�E�1��2�s��7�2�7c�n�[R"U5 g![an[U5UeSnAff=f)z)Verify that entry_points map is parseableN)r�load�	Exceptionr&rOs    r8�check_entry_pointsr��s2��,����5�!���,�!�!�$�!�+��,�s��284�/�4c���[U[5(d[U<S35eUR5H@up4[U[5(d[SU<SU<S35e[USU<S3U5 MB g)z@Verify that value is a dictionary of package names to glob listszP must be a dictionary mapping package names to lists of string wildcard patternszkeys of z dict must be strings (got r>z29values of z dictN)rL�dictr&rd�strrP)rDrEr<�k�vs     r8�check_package_datar��s����e�T�"�"�!��h�'�
'�30�	31����
����!�S�!�!�%��4�(�"=�a�U�!�D��
�	�4�:�d�X�U�!;�Q�?�r:c��UHAn[R"SU5(aM![RR	SU5 MC g)Nz\w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)�re�matchrVrWrX)rDrEr<�pkgnames    r8�check_packagesr��s7�����x�x���0�0��M�M���8��
�r:)r*c	��^�\rSrSr%SrS\\SSS\\S.rS\S	'S2S3S32jjr	Sr33Sr\S
5r
SrSrS4SjrS4Sjr\S5S6Sjj5r\S5S7Sjj5rS2SjrS8SjrS8SjrS9SjrS9SjrS2SjrS:SjrS;S<SjjrS=SjrS4Sjr\S5rSr S>S jr!S!r"S?S"jr#S#r$S$r%S4S%jr&S@S&jr'SAS'jr(SBS(jr)SBS)jr*S4S*jr+SCS+jr,S,r-SDS-jr.SES.jr/S/r0S4U4S0jjr1S1r2U=r3$)Fr*��a7	Distribution with support for tests and package data34 35This is an enhanced version of 'distutils.dist.Distribution' that36effectively adds the following new optional keyword arguments to 'setup()':37 38 'install_requires' -- a string or sequence of strings specifying project39    versions that the distribution requires when installed, in the format40    used by 'pkg_resources.require()'.  They will be installed41    automatically when the package is installed.  If you wish to use42    packages that are not available in PyPI, or want to give your users an43    alternate download location, you can add a 'find_links' option to the44    '[easy_install]' section of your project's 'setup.cfg' file, and then45    setuptools will scan the listed web pages for links that satisfy the46    requirements.47 48 'extras_require' -- a dictionary mapping names of optional "extras" to the49    additional requirement(s) that using those extras incurs. For example,50    this::51 52        extras_require = dict(reST = ["docutils>=0.3", "reSTedit"])53 54    indicates that the distribution can optionally provide an extra55    capability called "reST", but it can only be used if docutils and56    reSTedit are installed.  If the user installs your package using57    EasyInstall and requests one of your extras, the corresponding58    additional requirements will be installed if needed.59 60 'package_data' -- a dictionary mapping package names to lists of filenames61    or globs to use to find data files contained in the named packages.62    If the dictionary has filenames or globs listed under '""' (the empty63    string), those names will be searched for in every package, in addition64    to any names for the specific package.  Data files found using these65    names/globs will be installed along with the package, in the same66    location as the package.  Note that globs are allowed to reference67    the contents of non-package subdirectories, as long as you use '/' as68    a path separator.  (Globs are automatically converted to69    platform-specific paths at runtime.)70 71In addition to these new keywords, this class also has several new methods72for manipulating the distribution's contents.  For example, the 'include()'73and 'exclude()' methods can be thought of as in-place add and subtract74commands that add or remove packages, modules, extensions, and so on from75the distribution.76c��grp�r�r:r8�<lambda>�Distribution.<lambda>!s��r:c��grpr�r�r:r8r�r�$s��dr:c��grpr�r�r:r8r�r�%s��r:c��grpr�r�r:r8r�r�&s��r:)�long_description_content_type�project_urls�provides_extras�license_expression�license_file�
license_files�install_requires�extras_require�	list[str]�namespace_packagesc�@�[US5nU(d0UlU=(d 0n/UlSUlSUlURSS5UlURS/5UlURS/5Ul[R"SS9H(n[U5RURS5 M* [UR5nUSS1-nUR!5VVs0sHupVXT;dMXV_M nnn["R$"X5 [[&"5Ul[+U5UlUR/U5 UR1URR25URlUR55 gs snnf)	N�package_data�src_root�dependency_links�setup_requires�distutils.setup_keywords�r=r�r�)�hasattrr��77dist_files�include_package_data�exclude_package_data�popr�r�r�r�entry_points�vars�78setdefaultr7r{�_DISTUTILS_UNSUPPORTED_METADATArd�
_Distribution�__init__r��_referenced_filesr�set_defaults�_set_metadata_defaults�_normalize_version�version�_finalize_requires)�self�attrs�have_package_datarF�
metadata_onlyr�r��79dist_attrss        r8r��Distribution.__init__/sW��#�D�.�9�� �68�D������68���15��!�AE��!�$)�I�I�j�$�$?��
�+0�9�9�5G��+L���).���3C�R�)H����'�'�.H�I�B���J�!�!�"�'�'�4�0�J��D�@�@�A�
��,�.>�?�?�
�',�{�{�}�O�}�t�q��8N�d�a�d�}�80�O����t�0�81"%�S�����+�D�1����#�#�E�*� $� 7� 7��
�
�8M�8M� N��
�
�����!��Ps�/F�>Fc���S1n[UR5Vs1sHn[URUS5cMUiM! nnX-82nU(aSU3n[U5egs snf)Nr7z&Required package metadata is missing: )r�r�getattrr&)r��required�key�provided�missingrns      r8�_validate_metadata�Distribution._validate_metadataOsr���8���D�M�M�*�83�*���t�}�}�c�4�0�
�*�	�84�85�%���:�7�)�D�C�%�c�*�*���86s87�A�Ac	��URR5H=up#[UR5R	X!RX#"555 M? g)z�88Fill-in missing metadata fields not supported by distutils.89Some fields may have been set by other tools (e.g. pbr).90Those fields (vars(self.metadata)) take precedence to91supplied attrs.92N)r�rdr�rr��get)r�r��option�defaults    r8r��#Distribution._set_metadata_defaults\sD�� $�C�C�I�I�K�O�F������*�*�6�9�9�V�W�Y�3O�P� Lr:c��SSKJn [U[R5(a[U5nO[X5(dUcU$[[
U55nX:wa[R"SUSUS35 U$U$)Nr)�sic�
Normalizing '�' to '�')	rJr�rL�numbers�Numberr�rr"r2)r�r��93normalizeds   r8r��Distribution._normalize_versionfsp����g�w�~�~�.�.��'�l�G�
��
%�
%����N����)�*�94�� �� � �=��	��95�|�1�!M�N����r:c���[USS5(aURURlUR5 URURlUR96URlUR97(adUR98R
5HEnURS5SnU(dM URRRU5 MG gg)zh99Set `metadata.python_requires` and fix environment markers100in `install_requires` and `extras_require`.101�python_requiresNrgr)102r�r�r�_normalize_requiresr�r��keys�splitr�r�)r�rjs  r8r��Distribution._finalize_requiresvs���103�4�*�D�1�1�,0�,@�,@�D�M�M�)�� � �"�)-�)>�)>��
�
�&�'+�':�':��
�
�$�����,�,�1�1�3�����C�(��+���5��M�M�1�1�<�<�U�C�	4�r:c���[USS5=(d /n[USS5=(d 0n[R"U5(a[RO[nU"[[[R"U555Ul	[R"U5(a[RO[nU"SUR555Ul
g)zAMake sure requirement-related attributes exist and are normalizedr�Nr�c3�# �UH?upU[[[[R"U=(d /5554v� MA g7frp)r`�mapr�rri)�.0r�r�s   r8�	<genexpr>�3Distribution._normalize_requires.<locals>.<genexpr>�s4���$104�BX�$�!�Q��S��e�k�k�!�'�r�2�3�4�5�BX�s�AA	)r�r�	is_static�Listr`r�r�rrir��Dictr�rdr�)r�r�r��list_�dict_s     r8r�� Distribution._normalize_requires�s���"�4�);�T�B�H�b�� ��'7��>�D�"��!(� 1� 1�2B� C� C������ %�c�#�u�{�{�;K�/L�&M� N��� '� 1� 1�.� A� A����t��#�$105�BP�BV�BV�BX�$106�107��r:c�j�URR5nUVs/sHo"RS5(dMUPM nnURRnU(a�[R108"U5(a[RO[nU"[U55nXF:wa-[R"SUSUS35 X`RlU(a[SSRU5-5egU(a.Sn[R"SS	SRU5-S109U3S9 ggs snf)
a�110Normalize license and license_expression.111>>> dist = Distribution({"license_expression": _static.Str("mit aNd  gpl-3.0-OR-later")})112>>> _static.is_static(dist.metadata.license_expression)113True114>>> dist._finalize_license_expression()115>>> _static.is_static(dist.metadata.license_expression)  # preserve "static-ness"116True117>>> print(dist.metadata.license_expression)118MIT AND GPL-3.0-or-later119zLicense :: r�r�r�zyLicense classifiers have been superseded by license expressions (see https://peps.python.org/pep-0639/). Please remove:120 121�122z&guides/writing-pyproject-toml/#licensez#License classifiers are deprecated.z[Please consider removing the following classifiers in favor of a SPDX license expression:123 124�'https://packaging.python.org/en/latest/)�see_urlN)r�get_classifiers�125startswithr�rr��Strr�rr"r2r rMr#)r��classifiers�cl�license_classifiers�license_expr�str_r��pypa_guidess        r8�_finalize_license_expression�)Distribution._finalize_license_expression�s���m�m�3�3�5��,7�X�K�b�=�=��;W�r�K��X��}�}�7�7���")�"3�"3�L�"A�"A�7�;�;�s�D��>�|�L�M�J��)��$�$�}�\�N�&���TU�%V�W�3=�
�
�0�"�(�R��i�i� 3�4�5���#�!�B�K�(�-�-�5�/�15���;N�1O�P�A�+��O�	
�!��Ys126�D0�D0c�H�URRnU=(d /nURRnU(aX2;aURU5 UcUc/SQnUR	USS9nOUR	USS9n[[
U55URlg)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*F)�
enforce_matchT)rr�r��append�_expand_patternsr`r)r�r��patternsr��filess     r8�_finalize_license_files�$Distribution._finalize_license_files�s���*.�-�-�*E�*E�
� �&�B��#'�=�=�#=�#=���L�8��O�O�L�)�� �\�%9�J�H��)�)�(�%�)�H�E��)�)�(�$�)�G�E�&*�?�5�+A�&B��
�
�#r:c� ^^�UU4SjU5$)a/127>>> getfixture('sample_project_cwd')128>>> list(Distribution._expand_patterns(['LICENSE.txt']))129['LICENSE.txt']130>>> list(Distribution._expand_patterns(['pyproject.toml', 'LIC*']))131['pyproject.toml', 'LICENSE.txt']132>>> list(Distribution._expand_patterns(['src/**/*.dat']))133['src/sample/package_data.dat']134c3�&># �UH�n[TRUT55HcnURS5(aM[RRU5(dMAUR
[RS5v� Me M� g7f)�~�/N)�sorted�
_find_pattern�endswith�os�path�isfile�replace�sep)r��patternr�clsr�s   ��r8r��0Distribution._expand_patterns.<locals>.<genexpr>�sn����135�#���s�0�0��-�H�I���=�=��%�
&�+-�'�'�.�.��*>�
&�D�L�L�����%�%�I�
&�#�s�9B�"B�&+Br�)r
r�r�s` `r8r��Distribution._expand_patterns�s���136�#�137�	138r:c��SnSU;a[R"SU<S3SSU3SS9 UR[RS	45(dS139U;a[SU<S35e[R"SU5c"S
SUSU3SS9 [USS9nU(aU(d[R"SSUSS9 U$)a�140>>> getfixture('sample_project_cwd')141>>> Distribution._find_pattern("LICENSE.txt")142['LICENSE.txt']143>>> Distribution._find_pattern("/LICENSE.MIT")144Traceback (most recent call last):145...146setuptools.errors.InvalidConfigError: Pattern '/LICENSE.MIT' should be relative...147>>> Distribution._find_pattern("../LICENSE.MIT")148Traceback (most recent call last):149...150setuptools.warnings.SetuptoolsDeprecationWarning: ...Pattern '../LICENSE.MIT' cannot contain '..'...151>>> Distribution._find_pattern("LICEN{CSE*")152Traceback (most recent call last):153...154setuptools.warnings.SetuptoolsDeprecationWarning: ...Pattern 'LICEN{CSE*' contains invalid characters...155zspecifications/glob-patterns/z..zPattern z cannot contain '..'z�156                Please ensure the files specified are contained by the root157                of the Python package (normally marked by `pyproject.toml`).158                r�)i����r�r1rz:\z/ should be relative and must not start with '/'z^[\w\-\.\/\*\?\[\]]+$z$Please provide a valid glob pattern.z0Pattern {pattern!r} contains invalid characters.)rr�r1T)�	recursivez,Cannot find any files for the given pattern.z,Pattern {pattern!r} did not match any files.)rr1)	r#r2r�rrr r�r�r)rr�r��founds    r8r�Distribution._find_pattern�s���&6���7�?�(�-�-��7�+�%9�:��B�+��O�&�	
����r�v�v�s�m�,�,���0@�$��7�+�%T�U��
��8�8�,�g�6�>�(�-�-�6�B��A�+��O�&�
��W��-����(�-�-�>�>��&�	
��r:c159�p�SSKJn [R[R:Xa/O/SQn[U5nUcUR
5n[(aURS5 U"5n[Ul160UH�n[USS9n[(a)URSR"S0[5D65 URU5 SSS5 UR5HsnUR!U5nUR#U5n	UHHn161U162S	:XdX�;aMUR%Xz5nUR'X�5n163UR)X�5n164X[4X�'MJ Mu UR+5 M� S165UR,;agUR,S166R/5Hbun167up�UR0R%U1685n
U
(a[3U5(+nOU169S:Xa[3U5n[5X
=(d U170U5 Md g!,(df   GN?=f![6an[9U5UeSnAff=f)
z�171Adapted from distutils.dist.Distribution.parse_config_files,172this method provides the same functionality in subtly-improved173ways.174r)�ConfigParser)
zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-data�prefixzexec-prefix�home�user�rootNz"Distribution.parse_config_files():�utf-8��encodingz  reading {filename}r5�global�verboser�)�configparserr�sysr�base_prefix�	frozenset�find_config_filesr$�announcer��optionxform�open�format�locals�	read_file�sections�options�get_option_dictr��_enforce_underscore�_enforce_option_lowercaser��command_optionsrd�negative_optr(�setattrrBr%)r��	filenamesr�ignore_options�parser�filename�reader�sectionr.�opt_dict�opt�val�src�aliasrGs               r8�_parse_config_files� Distribution._parse_config_files"s���	.�175�z�z�S�_�_�,�
��	�(#�>�2�����.�.�0�I��5��M�M�>�?���� ���!�H��h��1�V��5��M�M�"8�"?�"?�"K�&�(�"K�L�� � ��(�2�"�?�?�,�� �.�.��1���/�/��8��"�C��j�(�C�,A� � �*�*�W�2�C��2�2�3�@�C��8�8��F�C�%-�O�H�M�#�	-�
�O�O��)"�,�4�/�/�/��176 $�3�3�H�=�C�C�E�O�C��#��%�%�)�)�#�.�E��#�C�.�(���	�!���n��
5���l�s�C�0� F�72�1��H�
5�*�1�-�1�4��
5�s%�177AH�.H�178H	�179H5�$H0�0H5c180�4�SU;dURU5(aU$URSS5nURR(aSURRS3OSn[R181"SU<SU<SU<S	3S182U<SU<SUS
3SSS9 U$)N�-�_�(Affected: �).rJzInvalid dash-separated key � in z- (setup.cfg), please use the underscore name �	 instead.z%183            Usage of dash-separated zV will not be supported in future184            versions. Please use the underscore name � instead.185            ��186 187            Available configuration options are listed in:188            https://setuptools.pypa.io/en/latest/userguide/declarative_config.html189            �3https://github.com/pypa/setuptools/discussions/5011�i��rMr)�_skip_setupcfg_normalizationr190rr7r#r2)r�r<r:�underscore_opt�affecteds     r8r0� Distribution._enforce_underscoreqs����c�>�T�>�>�w�G�G��J����S�#�.��;?�=�=�;M�;M�[����!3�!3� 4�B�7�SU��$�)�)�)�#���W�K�@.�.<�-?�y�
J�%�%(�G�,6�6D�5G�H
�
�J�
�
�J�!�	191��r:c�V�UR5(dURU5(aU$UR5nURR(aSURRS3OSn[192R"SU<SU<SU<S3SU<SU<S	U<S193US3	SS
S9 U$)NrErFrJzInvalid uppercase key rGz# (setup.cfg), please use lowercase rHz$194            Usage of uppercase key zL will not be supported in195            future versions. Please use lowercase rIrJrKrLr)�islowerrN�lowerrr7r#r2)r�r<r:�
lowercase_optrPs     r8r1�&Distribution._enforce_option_lowercase�s����;�;�=�=�D�=�=�g�F�F��J��	�	��
�;?�=�=�;M�;M�[����!3�!3� 4�B�7�SU��$�)�)�$�S�G�4��{�;$�$1�#4�I�
?�$�$'�7�$�w�k�:3�3@�2C�D
�
�J�
�
�J�!�	196��r:c�H�SnX;=(d URU5(+$)N)zoptions.extras_requirezoptions.data_fileszoptions.entry_pointszoptions.package_datazoptions.exclude_package_data)�_is_setuptools_section)r�r:�skips   r8rN�)Distribution._skip_setupcfg_normalization�s&��197����J�d�&A�&A�'�&J�"J�Jr:c�d�US:H=(d% URS5=(d
 U[5;$)Nrr.)r��_setuptools_commands)r�r:s  r8rX�#Distribution._is_setuptools_section�s3���z�!�
1��!�!�)�,�
1��.�0�0�	198r:c199�$�UR5nUcURU5n[(aURSUS35 UR	5H�unupV[(aURSUSUSUS35 UR200Vs/sHn[
U5PM nnURn	[U[5n201XI;a&U202(a[XU[U5(+5 M�XH;aU203(a[X[U55 M�[X5(a[XU5 M�[SUS	US204US35e gs snf![a /nN�f=f![a 0n	N�f=f![an[U5UeSnAff=f)a�205Set the options for 'command_obj' from 'option_dict'.  Basically206this means copying elements of a dictionary ('option_dict') to207attributes of an instance ('command').208 209'command_obj' must be a Command instance.  If 'option_dict' is not210supplied, uses the standard option dictionary for this command211(from 'self.command_options').212 213(Adopted from distutils.dist.Distribution._set_command_options)214Nz  setting options for 'z215' command:z    z = z (from r>z	error in z: command 'z' has no such option 'r�)�get_command_namer/r$r'rd�boolean_optionsr'r4r3rLr�r4r(r�r%rB)r��command_obj�option_dict�command_namer��sourcer<�o�	bool_opts�neg_opt�	is_stringrGs            r8�_set_command_options�!Distribution._set_command_options�s���#�3�3�5�����.�.�|�<�K��5��M�M�3�L�>��L�M�'2�'8�'8�':�#�F�O�V��u��
�
��V�H�C��w�g�f�X�Q�G�H�
�;F�;V�;V�W�;V�a�.�q�1�;V�	�W�
�%�2�2��

5�&�u�c�2�	��$���K���i��>N�:N�O��(�Y��K��5�1A�B��[�1�1��K��7�.�#�F�8�;�|�n�DZ�[a�Zb�bc�d���+(;��X��!�
��	�
��"�
���
���
5�*�1�-�1�4��
5�s`�E�E�'E�*E"�79E4�2!E4�E4�3E4�E�E�E�"E1�0E1�4216F�>F217�218Fc���/n[UR=(d [RS5nUb,[	SU5n[US5n[US5nX4$UR
5(aU/nX4$)z/Add default file and split between INI and TOMLzpyproject.tomlc�2�[U5RS:H$)Nz.toml)r	�suffix)�fs r8r��8Distribution._get_project_config_files.<locals>.<lambda>�s���Q����'�(Ar:rr)r	r�r�curdirr
r`�exists)r�r5�	tomlfiles�standard_project_metadata�partss     r8�_get_project_config_files�&Distribution._get_project_config_files�s|���	�$(����)C�"�)�)�EU�$V�!�� ��A�9�M�E��U�1�X��I��U�1�X��I��#�#�'�
-�
-�
/�
/�2�3�I��#�#r:c�&�URU5up4URUS9 [R"XRUS9 UHn[219R"XU5 M UR5 UR5 UR5 g)zHParses configuration files from various levels220and loads configuration.221)r5)�ignore_option_errorsN)222rur@r�parse_configurationr2r�apply_configurationr�r�r�)r�r5rx�inifilesrrr8s      r8�parse_config_files�Distribution.parse_config_files�s���#�<�<�Y�G���� � �8� �4��$�$��&�&�=Q�	223�"�H��-�-�d�>R�S�"�	
���!��)�)�+��$�$�&r:c��SSKJn U"X5$)zResolve pre-setup requirementsr)�_fetch_build_eggs)�	installerr)r��requiresrs   r8�fetch_build_eggs�Distribution.fetch_build_eggss��0� ��0�0r:c���SnSn[R"US9n[R"URU5n[SU5n[
XRS9HnU"U5 M
 g)z�224Allow plugins to apply arbitrary operations to the225distribution. Each hook may optionally define a 'order'226to influence the order of execution. Smaller numbers227go first and the default is 0.228z(setuptools.finalize_distribution_optionsc��[USS5$)N�orderr)r�)�hooks r8�by_order�/Distribution.finalize_options.<locals>.by_orders���4��!�,�,r:r�c�"�UR5$rp)r�)rGs r8r��/Distribution.finalize_options.<locals>.<lambda>s229��q�v�v�xr:)r�N)rr�ra�filterfalse�_removedr�r)r�r=r��defined�filtered�loadedrFs       r8�finalize_options�Distribution.finalize_optionssY��;��	-��'�'�e�4���(�(�����@���'��2����.�B��t�H�/r:c�&�S1nURU;$)z�230When removing an entry point, if metadata is loaded231from an older version of Setuptools, that removed232entry point will attempt to be loaded and will fail.233See #2765 for more details.234�
2to3_doctestsr6)rF�removeds  r8r��Distribution._removeds��
�235���w�w�'�!�!r:c��[R"SS9H?n[XRS5nUcMUR	5"XRU5 MA g)Nr�r�)rr�r�r7r�)r�rFr<s   r8�_finalize_setup_keywords�%Distribution._finalize_setup_keywords&sC���'�'�.H�I�B��D�'�'�4�0�E�� ����	�$����/�Jr:c���SSKJn [RR	[R236S5n[RR
U5(d�[R"U5 URU5 [RR	US5n[USSS9nURS5 URS	5 URS2375 SSS5 U$U$!,(df   U$=f)Nr)�windows_supportz.eggsz238README.txt�wrrzcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.239 240zAThis directory caches those eggs to prevent repeated downloads.241 242z/However, it is safe to delete this directory.243 244)rJr�rrrMrprq�mkdir�	hide_filer)�write)r�r��
egg_cache_dir�readme_txt_filenamerns     r8�get_egg_cache_dir�Distribution.get_egg_cache_dir,s���%������R�Y�Y��8�
��w�w�~�~�m�,�,��H�H�]�#��%�%�m�4�"$�'�'�,�,�}�l�"K���)�3��A�Q����J�����.�����K�L�B���}��B�A���s�+4C+�+245C:c��SSKJn U"X5$)z Fetch an egg needed for buildingr)�fetch_build_egg)r�r�)r��reqr�s   r8r��Distribution.fetch_build_eggAs��.��t�)�)r:c��XR;aURU$US:XaSSKJn U$[R"SUS9nUH$nUR5=URU'nUs $ [R"X5$)z(Pluggable version of get_command_class()�bdist_wheelr)r��distutils.commands)r=r7)�cmdclass�command.bdist_wheelr�rr�r�r��get_command_class)r�rr��epsrFr�s      r8r��Distribution.get_command_classGs|���m�m�#��=�=��)�)��m�#�8����#�#�*>�W�M���B�02���	�9�D�M�M�'�"�X��O��!�2�2�4�A�Ar:c���[R"SS9HGnURUR;dMUR	5nX RUR'MI [246R"U5$�Nr�r�)rr�r7r�r�r��print_commands�r�rFr�s   r8r��Distribution.print_commandsYsW���'�'�.B�C�B��w�w�d�m�m�+��7�7�9��)1�
�
�b�g�g�&�D��+�+�D�1�1r:c���[R"SS9HGnURUR;dMUR	5nX RUR'MI [247R"U5$r�)rr�r7r�r�r��get_command_listr�s   r8r��Distribution.get_command_list`sW���'�'�.B�C�B��w�w�d�m�m�+��7�7�9��)1�
�
�b�g�g�&�D��-�-�d�3�3r:c��UR5H7up#[USU-S5nU(a248U"U5 M&URX#5 M9 g)a�Add items to distribution that are named in keyword arguments249 250For example, 'dist.include(py_modules=["x"])' would add 'x' to251the distribution's 'py_modules' attribute, if it was not already252there.253 254Currently, this method only supports inclusion for attributes that are255lists or tuples.  If you need to add support for adding to other256attributes in this or a subclass, you can add an '_include_X' method,257where 'X' is the name of the attribute.  The method will be called with258the value passed to 'include()'.  So, 'dist.include(foo={"bar":"baz"})'259will try to call 'dist._include_foo({"bar":"baz"})', which can then260handle whatever special inclusion logic is needed.261�	_include_N)rdr��
_include_misc)r�r�r�r��includes     r8r��Distribution.includegs@���K�K�M�D�A��d�K�!�O�T�:�G����262��"�"�1�(�"r:c�D�US-nUR(aAURVs/sH$o3U:wdM263URU5(aM"UPM& snUlUR(aAURVs/sH$o3U:wdM264URU5(aM"UPM& snUlUR(aWURVs/sH9nURU:wdMURRU5(aM7UPM; snUlggs snfs snfs snf)z9Remove packages, modules, and extensions in named packagerRN)�packagesr��265py_modules�ext_modulesr7�r��package�pfx�ps    r8�exclude_package�Distribution.exclude_package}s�����m���=�=��=�=��(�a��L�����c�AR��=��D�M��?�?��?�?��*�a�7�l��1�<�<�PS�CT��?��D�O�����)�)� �)�A��6�6�W�$��-.�V�V�->�->�s�-C��)� �D������266��267 s4�	D�D�268D�7	D�D�D�	D�!D�Dc�v�US-nUR5H nX1:XdURU5(dM  g g)z<Return true if 'exclude_package(package)' would do somethingrRTF)�iter_distribution_namesr�r�s    r8rT�Distribution.has_contents_for�s;����m���-�-�/�A��|�q�|�|�C�0�0��0�r:c	�h�[U[5(d[US[SU<S35e[	X5nUb#[U[5(d[US-5eU(a%[
XUVs/sHoUU;dM269UPM sn5 gg![270an[US35UeSnAff=fs snf)zAHandle 'exclude()' for list/tuple attrs without a special handler�: setting must be of type <rKr>�: No such distribution settingN�4: this setting cannot be changed via include/exclude)rLr3r&rNr�r4r4)r�r7r<�oldrG�items      r8�
_exclude_misc�Distribution._exclude_misc�s����%��+�+�%��&�3�4G�3H��PU�y�XY�Z��
�	V��$�%�C��?�:�c�9�#=�#=�%��M�M��
���D�#� K�#�$�U�9J��#� K�L���
�	V�%���.L�&M�N�TU�U��	V��!Ls#�B�2	B/�?B/�271B,�B'�'B,c��[U[5(d[US[SU<S35e[	X5nUc
[
XU5 g[U[5(d[US-5eUVs/sHoUU;dM272UPM nn[
X[U5U-5 g![273an[US35UeSnAff=fs snf)zAHandle 'include()' for list/tuple attrs without a special handlerr�rKr>r�Nr�)rLr3r&rNr�r4r4r`)r�r7r<r�rGr��news       r8r��Distribution._include_misc�s����%��+�+�%��&�3�4G�3H��PU�y�XY�Z��
�	V��$�%�C��;��D��&��C��+�+�%��M�M��
�%*�=�E�D��_�4�E�C�=��D��S�	�C��0���	V�%���.L�&M�N�TU�U��	V��>s#�B �2	C�?C� 274B>�*B9�9B>c��UR5H7up#[USU-S5nU(a275U"U5 M&URX#5 M9 g)aRemove items from distribution that are named in keyword arguments276 277For example, 'dist.exclude(py_modules=["x"])' would remove 'x' from278the distribution's 'py_modules' attribute.  Excluding packages uses279the 'exclude_package()' method, so all of the package's contained280packages, modules, and extensions are also excluded.281 282Currently, this method only supports exclusion from attributes that are283lists or tuples.  If you need to add support for excluding from other284attributes in this or a subclass, you can add an '_exclude_X' method,285where 'X' is the name of the attribute.  The method will be called with286the value passed to 'exclude()'.  So, 'dist.exclude(foo={"bar":"baz"})'287will try to call 'dist._exclude_foo({"bar":"baz"})', which can then288handle whatever special exclusion logic is needed.289�	_exclude_N)rdr�r�)r�r�r�r��excludes     r8r��Distribution.exclude�s@�� �K�K�M�D�A��d�K�!�O�T�:�G����290��"�"�1�(�"r:c��[U[5(d[S[SU<S35e[	[URU55 g)Nz#packages: setting must be of type <rKr>)rLr3r&rNr`r�r�)r�r�s  r8�_exclude_packages�Distribution._exclude_packages�sJ���(�I�.�.�%�5�6I�5J�'�RZ�Q]�]^�_��
�	
�S��%�%�x�
0�1r:c��URRUlURRUlUSnURS5nX4;a-XCupVXC	SSKnURUS5USS&USnX4;aM-[R"XU5nURU5n	[U	SS5(aSU4URU5S'Ub/$U$)Nr�aliasesTr�command_consumes_arguments�command line�args)291�	__class__�global_optionsr3r/�shlexr�r��_parse_command_optsr�r�)292r�r7r�rr��_srcr?r��nargs�	cmd_classs293          r8r�� Distribution._parse_command_opts�s���"�n�n�;�;��� �N�N�7�7����q�'���&�&�y�1��� �!�*�K�D�� ���{�{�5�$�/�D��!�H��1�g�G�
� ��1�1�$��E���*�*�7�3�	��9�:�D�A�A�5C�U�4K�D� � ��)�&�1�� ��	��r:c	���0nURR5H�up#UR5H�unupVUS:waMURSS5nUS:XavURU5nURR5nUR
[US055 UR5Hup�X�:XdMU	nSn O [S5eUS:XaSnXaRU05U'M� M� U$)	a@Return a '{cmd: {opt:val}}' map of all command-line options294 295Option names are all long, but do not include the leading '--', and296contain dashes rather than underscores.  If the option doesn't take297an argument (e.g. '--quiet'), the 'val' is 'None'.298 299Note that options provided by config files are intentionally excluded.300r�rDrCrr3NzShouldn't be able to get herer)301r2rdr302�get_command_objr3�copy�updater�rCr�)r��d�cmd�optsr<r>r=�cmdobjrg�neg�poss           r8�get_cmdline_options� Distribution.get_cmdline_options�s���/1���-�-�3�3�5�I�C�#'�:�:�<���Z�c��.�(���k�k�#�s�+���!�8�!�1�1�#�6�F�"�/�/�4�4�6�G��N�N�7�6�>�2�#F�G�$+�M�M�O����:�"%�C�"&�C�!�	%4�-�-L�M�M��A�X��C�-0���S�"�%�c�*�+$0�6�2�r:c#�6# �UR=(d SShv�N UR=(d SShv�N UR=(d SH>n[U[5(aUup#OUR303nUR
S5nUv� M@ gNyN^7f)z@Yield all packages, modules, and extension names in distributionr�N�module)r�r�r�rL�tupler7�removesuffix)r��extr7�304_buildinfos    r8r��$Distribution.iter_distribution_names#s�����=�=�&�B�&�&��?�?�(�b�(�(��#�#�)�r�)�C��#�u�%�%�#&� ��j��x�x���$�$�X�.�D��J�
*�		'�(�s �B�B�B�B�AB�Bc�L�SSKnUR(a[R"X5$[	UR305[R5(d[R"X5$UR306RR5S;a[R"X5$UR307RnUR308RSS9 [R"X5UR309RUS9 $!UR310RUS9 f=f)z�If there were any non-global "display-only" options311(--help-commands or the metadata display options) on the command312line, display the requested info and return true; else return313false.314rN)r�utf8rr)r#�
help_commandsr��handle_display_optionsrL�stdout�io�
TextIOWrapperrrT�reconfigure)r��option_orderr#rs    r8r��#Distribution.handle_display_options2s���	���� �7�7��K�K��#�*�*�b�&6�&6�7�7� �7�7��K�K��:�:���$�$�&�*;�;� �7�7��K�K��:�:�&�&���315�316�����0�	6� �7�7��K��J�J�"�"�H�"�5��C�J�J�"�"�H�"�5�s�D�D#c�D>�UR5 [TU]	U5 grp)r��super�run_command)r�rr�s  �r8r�Distribution.run_commandNs�������	���G�$r:)r�r�r�r�r�r�r�r�r�r3r�r�r�r�r�r�rp)r�zMutableMapping[str, Any] | None�return�None)r317r)T)r�r�r�rtr318�
Iterator[str])rr�r�rtr319r�)r<r�r:r�r320r�)r:r�r321rt)r5�Iterable[StrPath] | None)NF)r5r
rxrtr322r)r�rr323zlist[metadata.Distribution])r324r�)rr�r325ztype[distutils.cmd.Command])r�r�r326r)r�r�r327rt)r7r�r<r+r328r)r�r+r329r)r330z dict[str, dict[str, str | None]])r331r)4r5�332__module__�__qualname__�__firstlineno__�__doc__r�r`r��__annotations__r�r�r��staticmethodr�r�r�r�r��classmethodr�rr@r0r1rNrXrirur|r�r�r�r�r�r�r�r�r�r�r�rTr�r�r�r�r�r�r�r�r�__static_attributes__�
__classcell__)r�s@r8r*r*�s����+�\*6���*�$�%� ��	'�#�"�!�"�@+�Q��
��
�D�&333�&�PC�(�8<�334� �335�15�336�	�337��338�&�7��7�tM5�^�.�.K�339�+5�Z340$�/3�%*�'�+�'�#�'�341�	'�,1��$�"��"�0��**�B�$2�4�)�,�*	�M�"1�*)�.2��6%�N
�6�8%�%r:c���[R"S5RnSU5n1[R342RkUk$![Ra /nN6f=f)N�343setuptoolsc3�8# �UHoRv� M g7frpr6)r�rFs  r8r��'_setuptools_commands.<locals>.<genexpr>[s���=��"�g�g��s�)r�distributionr��PackageNotFoundErrorrVr�__all__)r�r�s  r8r\r\Vsa����,�,�\�:�G�G��=��=��.�Y�
�
�
&�
&�-��-�-���(�(�����s�)A	�	A"�!A"c��\rSrSrSrSrg)rxibznClass for warning about deprecations in dist in344setuptools. Not ignored by default, unlike DeprecationWarning.r�N)r5rrrrrr�r:r8rxrxbs��Fr:rx)r7r�r345r)rEr�r<r+r346r)rEr�r<r,r347r)r348zset[str])h�349__future__r�	functoolsrrar�rr�r#�collections.abcrrrrr�pathlibr	�typingr350rr�more_itertoolsr
r�packaging.markersrr�packaging.specifiersrr�packaging.versionrrJrrrrrD�351_importlibr�_normalizationr�_pathrr�configrr�	discoveryr�errorsr �monkeyr!�warningsr"r#�
distutils.cmdrV�distutils.command�distutils.core�distutils.dist�
distutils.log�distutils.debugr$�distutils.errorsr%r&�distutils.fancy_getoptr'�distutils.utilr(�typing_extensionsr)rr�r`r3r�r+rrNr�r,r9rHrPr^rercrhrvryr~r�r�r�r�r*r��core�cacher\rxr�r:r8�<module>r<s���"��	���	�	�352�H�H���,�,�5�3�?�%���!�<���+�&�&�!�C������!�F�4�$��+��353���4�K�	���U�3��8�_�d�3�i�7�8�	�9�8�3��!&�s�D��c��N�H�S�M�'I�!J��Y�J��K���354�8	���W�5�2�2�,�@���<�!�)�.�.�"=�"=�>�M�a
%�=�a
%�H���.��.�F�9�Fr:
codekingpro/portable-devtools · Team Ai