
    n&phW                    <   % S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKrS SKrS SK	J
r
JrJrJr  S SKJr  S SKJr  S SKJrJrJr  S SKJrJr  S SKJrJr  S S	KJrJr  S S
KJr  SSK J!r!J"r"J#r#J$r%  SSK&J'r'  SSK(J)r)  SSK*J+r+  SSK"J,r,  SSK-J.r.J/r/  SSK0J1r1  SSK2J3r3  SSK4J5r5  SSK6J7r7J8r8  S SK9r:S SK;r:S SK<r:S SK=r:S SK>r:S SK?J@r@  S SKAJBrBJCrC  S SKDJErE  S SKFJGrG  \(       a  S SKHJIrI  S/rJ\K\L4rM \\K\NS4   \L\N   4   rOS\PS'   SrQ\\N\R\N\4   \\N   4   rSS\PS '    S4S! jrTS" rUS5S# jrVS$ rWS% rXS& rYS' rZS( r[S) r\S6S* jr]S+ r^S, r_S- r`S. ra\(       a  S S/K<Jbrc  O\5" \:R                  R                  5      rc " S0 S\c5      rb\R                  S7S1 j5       rf " S2 S3\85      rgg)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)
_StrOrIter)pyprojecttomlsetupcfg)ConfigDiscovery)InvalidConfigError)get_unpatched)InformationOnlySetuptoolsDeprecationWarning)DEBUG)DistutilsOptionErrorDistutilsSetupError)translate_longopt)	strtobool)	TypeAliasDistribution.r)   	_Sequenceztuple[str, ...] | list[str]_OrderedStrSequencec                t    U S:X  a  [         R                  " SSSS9  [        $ [        S[        < SU < 35      e)Nsequencez@`setuptools.dist.sequence` is an internal implementation detail.z8Please define your own `sequence = tuple, list` instead.)i        )due_datezmodule z has no attribute )r#   emit	_sequenceAttributeError__name__names    B/var/www/html/venv/lib/python3.13/site-packages/setuptools/dist.py__getattr__r9   I   sB    z$))NF"	

 
78,.@I
JJ    c                     [         R                  " US S S9nUR                  (       a   eg ! [        [        [
        [        4 a  n[        U< SU< S35      UeS nAff = f)N)valuer7   groupz/ must be importable 'module:attrs' string (got ))r   
EntryPointextras	TypeError
ValueErrorr4   AssertionErrorr&   )distattrr<   epes        r8   check_importablerH   T   sc      u4tD99}9z>>B !hEeYaP
	s   ), AAAc           	          [        U[        5      (       d   eSR                  U5      U:w  d   eg! [        [        [
        [        4 a   n[        U< S[         SU< S35      UeSnAff = f)z"Verify that value is a string list z must be of type <> (got r>   N)	
isinstancer3   joinrA   rB   r4   rC   r&   _sequence_type_reprrD   rE   r<   rG   s       r8   assert_string_listrP   ^   st    	 %++++wwu~&&&z>>B !h()<(=WUIQO
	s   .1 A+A&&A+c                *   Un[        XU5        U H  nU R                  U5      (       d  [        SU< 35      eUR                  S5      u  pVnU(       a&  XS;  a!  [        R
                  R                  SUU5        [        R                  " SSSS9  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&   
rpartition	distutilslogwarnr#   r2   )rD   rE   r<   ns_packagesnspparent_sep_childs           r8   	check_nspr^   l   s    Kt;/$$S))%UVYU\]   #~~c2ff/MM;	 	%))=JJ	
 r:   c                     [        [        R                  " [        UR	                  5       5      5        g! [
        [        [        4 a  n[        S5      UeSnAff = 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itemsrA   rB   r4   r&   rO   s       r8   check_extrasre      sP    Y|U[[];<z>2 !&
 		s   25 A
AAc                    U R                  S5      u  p#n [        U5        [	        [
        R                  " U5      5        g ! [         a    SU SU < S3n[        U5      S ef = f)N:zInvalid environment marker: z (r>   )r   _check_markerr   r&   r`   r   parse)extrareqs_namer\   markermsgs         r8   rc   rc      sg    //#.E1f 	T	  1,VHBuiqA!#&D01s   A !A"c                J    U (       d  g [        U 5      nUR                  5         g N)r   evaluate)rm   ms     r8   rh   rh      s    vAJJLr:   c                H    [        U5      U:w  a  [        U< SU< S35      eg)z)Verify that value is True, False, 0, or 1z must be a boolean value (got r>   N)boolr&   rD   rE   r<   s      r8   assert_boolrv      s-    E{e!TH,J5)ST"UVV r:   c                ^    U(       d  [         R                  U S35        g [        U S35      e)Nz is ignored.z is invalid.)DistDeprecationWarningr2   r&   ru   s      r8   invalid_unless_falsery      s/    ##tfL$9:
l3
44r:   c                     [        [        R                  " U5      5        [        U[        5      (       a  [        S5      eg! [
        [        4 a  nU< SU 3n[        U5      UeSnAff = f)z9Verify that install_requires is a valid requirements listzUnordered types are not allowedzb must be a string or iterable of strings containing valid project/version requirement specifiers; N)r`   r   ri   rL   setrA   rB   r&   rD   rE   r<   errorrn   s        r8   check_requirementsr~      su    	2U[[ eS!!=>> "z" 2h HHMwP 	 "#&E12s   ?A A+A&&A+c                t     [        U5        g! [        [        4 a  nU< SU 3n[        U5      UeSnAff = f)z.Verify that value is a valid version specifierz7 must be a string containing valid version specifiers; N)r   r   r4   r&   r|   s        r8   check_specifierr      sC    2Un- 2OPUwW!#&E12s    727c                n     [         R                  " U5        g! [         a  n[        U5      UeSnAff = f)z)Verify that entry_points map is parseableN)r   load	Exceptionr&   rO   s       r8   check_entry_pointsr      s2    ,5! ,!!$!+,s    
4/4c                    [        U[        5      (       d  [        U< S35      eUR                  5        H@  u  p4[        U[        5      (       d  [        SU< SU< S35      e[        U SU< S3U5        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 patternszkeys of z dict must be strings (got r>   z
values of z dictN)rL   dictr&   rd   strrP   )rD   rE   r<   kvs        r8   check_package_datar      s    eT""!h ' '
 	
 !S!!%4("=aU!D  	4:dXU!;Q? r:   c                    U HA  n[         R                  " SU5      (       a  M!  [        R                  R	                  SU5        MC     g )Nz\w+(\.\w+)*z[WARNING: %r not a valid package name; please use only .-separated package names in setup.py)rematchrV   rW   rX   )rD   rE   r<   pkgnames       r8   check_packagesr      s7    xx00MM8 r:   )r*   c            	        ^  \ rS rSr% SrS \\S S S \\S.rS\S	'   S2S3S
 jjr	S r
S r\S 5       rS rS rS4S jrS4S jr\ S5     S6S jj5       r\S5S7S jj5       rS2S jrS8S jrS8S jrS9S jrS9S jrS2S jrS:S jr  S;     S<S jjrS=S jrS4S jr\S 5       rS r S  r!S! r"S>S" jr#S# r$S$ r%S4S% jr&S?S& jr'S@S' jr(SAS( jr)SAS) jr*S4S* jr+SBS+ jr,S, r-SCS- jr.S. r/S/ r0S4U 4S0 jjr1S1r2U =r3$ )Dr*      a7	  Distribution with support for tests and package data

This is an enhanced version of 'distutils.dist.Distribution' that
effectively adds the following new optional keyword arguments to 'setup()':

 'install_requires' -- a string or sequence of strings specifying project
    versions that the distribution requires when installed, in the format
    used by 'pkg_resources.require()'.  They will be installed
    automatically when the package is installed.  If you wish to use
    packages that are not available in PyPI, or want to give your users an
    alternate download location, you can add a 'find_links' option to the
    '[easy_install]' section of your project's 'setup.cfg' file, and then
    setuptools will scan the listed web pages for links that satisfy the
    requirements.

 'extras_require' -- a dictionary mapping names of optional "extras" to the
    additional requirement(s) that using those extras incurs. For example,
    this::

        extras_require = dict(reST = ["docutils>=0.3", "reSTedit"])

    indicates that the distribution can optionally provide an extra
    capability called "reST", but it can only be used if docutils and
    reSTedit are installed.  If the user installs your package using
    EasyInstall and requests one of your extras, the corresponding
    additional requirements will be installed if needed.

 'package_data' -- a dictionary mapping package names to lists of filenames
    or globs to use to find data files contained in the named packages.
    If the dictionary has filenames or globs listed under '""' (the empty
    string), those names will be searched for in every package, in addition
    to any names for the specific package.  Data files found using these
    names/globs will be installed along with the package, in the same
    location as the package.  Note that globs are allowed to reference
    the contents of non-package subdirectories, as long as you use '/' as
    a path separator.  (Globs are automatically converted to
    platform-specific paths at runtime.)

In addition to these new keywords, this class also has several new methods
for manipulating the distribution's contents.  For example, the 'include()'
and 'exclude()' methods can be thought of as in-place add and subtract
commands that add or remove packages, modules, extensions, and so on from
the distribution.
c                     g rp    r   r:   r8   <lambda>Distribution.<lambda>!  s    r:   c                     g rp   r   r   r:   r8   r   r   $  s    dr:   c                     g rp   r   r   r:   r8   r   r   %  s    r:   c                     g rp   r   r   r:   r8   r   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                @   [        U S5      nU(       d  0 U l        U=(       d    0 n/ U l        S U l        S U l        UR                  SS 5      U l        UR                  S/ 5      U l        UR                  S/ 5      U l        [        R                  " SS9 H(  n[        U 5      R                  UR                  S 5        M*     [        U R                  5      nUSS1-  nUR!                  5        VVs0 s H  u  pVXT;  d  M  XV_M     nnn["        R$                  " X5        [        [&           " 5       U l        [+        U 5      U l        U R/                  U5        U R1                  U R                  R2                  5      U R                  l        U R5                  5         g s  snnf )	Npackage_datasrc_rootdependency_linkssetup_requiresdistutils.setup_keywordsr=   r   r   )hasattrr   
dist_filesinclude_package_dataexclude_package_datapopr   r   r   r   entry_pointsvars
setdefaultr7   r{   _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   
dist_attrss           r8   r   Distribution.__init__/  sW   #D.9 68D6815!AE!$)IIj$$?+0995G+L).3CR)H''.HIBJ!!"''40 J D@@A,.>??',{{}O}tq8Ndad}
Ot0
 "%S+D1##E* $ 7 78M8M N! Ps   /F>Fc                    S1n[        U R                  5       Vs1 s H  n[        U R                  US 5      c  M  UiM!     nnX-
  nU(       a  SU 3n[        U5      eg s  snf )Nr7   z&Required package metadata is missing: )r   r   getattrr&   )r   requiredkeyprovidedmissingrn   s         r8   _validate_metadataDistribution._validate_metadataO  sr    8 DMM*
*t}}c40 * 	 

 %:7)DC%c** 
s
   AAc           	         U R                   R                  5        H=  u  p#[        U R                  5      R	                  X!R                  X#" 5       5      5        M?     g)z
Fill-in missing metadata fields not supported by distutils.
Some fields may have been set by other tools (e.g. pbr).
Those fields (vars(self.metadata)) take precedence to
supplied attrs.
N)r   rd   r   r   r   get)r   r   optiondefaults       r8   r   #Distribution._set_metadata_defaults\  sD      $CCIIKOF**699VWY3OP  Lr:   c                   SSK Jn  [        U [        R                  5      (       a  [        U 5      n O[        X5      (       d  U c  U $ [        [        U 5      5      nX:w  a  [        R                  " SU  SU S35        U$ U $ )Nr   )sicNormalizing '' to '')	rJ   r   rL   numbersNumberr   r   r"   r2   )r   r   
normalizeds      r8   r   Distribution._normalize_versionf  sp    gw~~..'lG%%N)*
   =	
|1!MNr:   c                   [        U SS5      (       a  U R                  U R                  l        U R                  5         U R                  U R                  l        U R
                  U R                  l        U R
                  (       ad  U R
                  R                  5        HE  nUR                  S5      S   nU(       d  M   U R                  R                  R                  U5        MG     gg)zh
Set `metadata.python_requires` and fix environment markers
in `install_requires` and `extras_require`.
python_requiresNrg   r   )
r   r   r   _normalize_requiresr   r   keyssplitr   r   )r   rj   s     r8   r   Distribution._finalize_requiresv  s    
 4*D11,0,@,@DMM)  ")-)>)>&'+':':$,,113C(+5MM11<<UC	 4 r:   c                   [        U SS5      =(       d    / n[        U SS5      =(       d    0 n[        R                  " U5      (       a  [        R                  O[        nU" [        [        [        R                  " U5      5      5      U l	        [        R                  " U5      (       a  [        R                  O[        nU" S UR                  5        5       5      U l        g)zAMake sure requirement-related attributes exist and are normalizedr   Nr   c              3     #    U  H?  u  pU[        [        [        [        R                  " U=(       d    / 5      5      5      4v   MA     g 7frp   )r`   mapr   r   ri   ).0r   r   s      r8   	<genexpr>3Distribution._normalize_requires.<locals>.<genexpr>  s4      $
BX$!QSekk!'r2345BXs   AA	)r   r   	is_staticListr`   r   r   r   ri   r   Dictr   rd   r   )r   r   r   list_dict_s        r8   r    Distribution._normalize_requires  s    "4);TBHb '7>D" !( 1 12B C C %c#u{{;K/L&M N ' 1 1. A At# $
BPBVBVBX$
 
r:   c                j   U R                   R                  5       nU Vs/ s H  o"R                  S5      (       d  M  UPM     nnU R                   R                  nU(       a  [        R
                  " U5      (       a  [        R                  O[        nU" [        U5      5      nXF:w  a-  [        R                  " SU SU S35        X`R                   l        U(       a  [        SSR                  U5      -   5      egU(       a.  Sn[        R                  " SS	SR                  U5      -   S
U 3S9  ggs  snf )a  
Normalize license and license_expression.
>>> dist = Distribution({"license_expression": _static.Str("mit aNd  gpl-3.0-OR-later")})
>>> _static.is_static(dist.metadata.license_expression)
True
>>> dist._finalize_license_expression()
>>> _static.is_static(dist.metadata.license_expression)  # preserve "static-ness"
True
>>> print(dist.metadata.license_expression)
MIT AND GPL-3.0-or-later
zLicense :: r   r   r   zyLicense classifiers have been superseded by license expressions (see https://peps.python.org/pep-0639/). Please remove:


z&guides/writing-pyproject-toml/#licensez#License classifiers are deprecated.z[Please consider removing the following classifiers in favor of a SPDX license expression:

'https://packaging.python.org/en/latest/)see_urlN)r   get_classifiers
startswithr   r   r   Strr   r   r"   r2   r    rM   r#   )r   classifierscllicense_classifierslicense_exprstr_r   pypa_guidess           r8   _finalize_license_expression)Distribution._finalize_license_expression  s    mm335,7XKb==;WrKX}}77")"3"3L"A"A7;;sD>|LMJ)$$}\N&TU%VW3=0"(Rii 345  # !BK(--5/15;N1OPA+O	 ! Ys
   D0D0c                H   U R                   R                  nU=(       d    / nU R                   R                  nU(       a  X2;  a  UR                  U5        Uc  Uc  / SQnU R	                  USS9nOU R	                  USS9n[        [        U5      5      U R                   l        g)z<Compute names of all license files which should be included.N)zLICEN[CS]E*zCOPYING*zNOTICE*zAUTHORS*F)enforce_matchT)r   r   r   append_expand_patternsr`   r   )r   r   patternsr   filess        r8   _finalize_license_files$Distribution._finalize_license_files  s    *.--*E*E &B#'==#=#=L8OOL) \%9 JH))(%)HE))($)GE&*?5+A&B#r:   c                    ^ ^ U U4S jU 5       $ )a/  
>>> getfixture('sample_project_cwd')
>>> list(Distribution._expand_patterns(['LICENSE.txt']))
['LICENSE.txt']
>>> list(Distribution._expand_patterns(['pyproject.toml', 'LIC*']))
['pyproject.toml', 'LICENSE.txt']
>>> list(Distribution._expand_patterns(['src/**/*.dat']))
['src/sample/package_data.dat']
c              3  &  >#    U  H  n[        TR                  UT5      5        Hc  nUR                  S 5      (       a  M  [        R                  R                  U5      (       d  MA  UR                  [        R                  S5      v   Me     M     g7f)~/N)sorted_find_patternendswithospathisfilereplacesep)r   patternr  clsr   s      r8   r   0Distribution._expand_patterns.<locals>.<genexpr>  sn      
#s00-HI==% & +-''..*> &DLL%%I &#s   9B "B&+Br   )r  r   r   s   ` `r8   r   Distribution._expand_patterns  s    
#
 	
r:   c                   SnSU ;   a  [         R                  " SU < S3SSU 3SS9  U R                  [        R                  S	45      (       d  S
U ;   a  [        SU < S35      e[        R                  " SU 5      c  [         R                  " SSU SU 3SS9  [        U SS9nU(       a  U(       d  [         R                  " SSU SS9  U$ )a  
>>> getfixture('sample_project_cwd')
>>> Distribution._find_pattern("LICENSE.txt")
['LICENSE.txt']
>>> Distribution._find_pattern("/LICENSE.MIT")
Traceback (most recent call last):
...
setuptools.errors.InvalidConfigError: Pattern '/LICENSE.MIT' should be relative...
>>> Distribution._find_pattern("../LICENSE.MIT")
Traceback (most recent call last):
...
setuptools.warnings.SetuptoolsDeprecationWarning: ...Pattern '../LICENSE.MIT' cannot contain '..'...
>>> Distribution._find_pattern("LICEN{CSE*")
Traceback (most recent call last):
...
setuptools.warnings.SetuptoolsDeprecationWarning: ...Pattern 'LICEN{CSE*' contains invalid characters...
zspecifications/glob-patterns/z..zPattern z cannot contain '..'z
                Please ensure the files specified are contained by the root
                of the Python package (normally marked by `pyproject.toml`).
                r   )        )r   r1   r  z:\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   r1   T)	recursivez,Cannot find any files for the given pattern.z,Pattern {pattern!r} did not match any files.)r  r1   )	r#   r2   r   r  r  r    r   r   r   )r  r   r   founds       r8   r  Distribution._find_pattern  s    & 67?(--7+%9: B+O&	 rvvsm,,0@$7+%TU  88,g6>(--6BA+O& W-(-->>&	 r:   c           
     p   SSK Jn  [        R                  [        R                  :X  a  / O/ SQn[        U5      nUc  U R                  5       n[        (       a  U R                  S5        U" 5       n[        Ul
        U H  n[        USS9 n[        (       a)  U R                  SR                  " S0 [        5       D65        UR                  U5        SSS5        UR                  5        Hs  nUR!                  U5      nU R#                  U5      n	U HH  n
U
S	:X  d  X;   a  M  UR%                  Xz5      nU R'                  X5      n
U R)                  X5      n
X[4X'   MJ     Mu     UR+                  5         M     S
U R,                  ;  a  gU R,                  S
   R/                  5        Hb  u  n
u  pU R0                  R%                  U
5      nU(       a  [3        U5      (       + nOU
S;   a  [3        U5      n [5        X=(       d    U
U5        Md     g! , (       d  f       GN?= f! [6         a  n[9        U5      UeSnAff = f)z
Adapted from distutils.dist.Distribution.parse_config_files,
this method provides the same functionality in subtly-improved
ways.
r   )ConfigParser)zinstall-basezinstall-platbasezinstall-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptszinstall-dataprefixzexec-prefixhomeuserrootNz"Distribution.parse_config_files():utf-8encodingz  reading {filename}r5   global)verbosedry_runr   )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(   setattrrB   r%   )r   	filenamesr  ignore_optionsparserfilenamereadersectionr/  opt_dictoptvalsrcaliasrG   s                  r8   _parse_config_files Distribution._parse_config_files"  s    	.
 zzS__,  	( #>2..0I5MM>? !Hh1V5MM"8"?"?"K&("KL  ( 2 "??, ..1//8"Cj(C,A  **W2C223@C88FC%-OHM #	 - OO) ", 4///
  $33H=CCEOC#%%))#.E#C.(..n5lsC0  F7 21H  5*1-145s%   
AH.H
H	
H5$H00H5c           
     4   SU;  d  U R                  U5      (       a  U$ UR                  SS5      nU R                  R                  (       a  SU R                  R                   S3OSn[        R
                  " SU< SU< SU< S	3S
U< SU< SU S3SSS9  U$ )N-_(Affected: ).rJ   zInvalid dash-separated key  in z- (setup.cfg), please use the underscore name 	 instead.z%
            Usage of dash-separated zV will not be supported in future
            versions. Please use the underscore name  instead.
            
            !userguide/declarative_config.htmlr  r  r  rS   r1   )_skip_setupcfg_normalizationr
  r   r7   r#   r2   )r   r=  r;  underscore_optaffecteds        r8   r1   Distribution._enforce_underscoreq  s    c>T>>wGGJS#.;?==;M;M[!3!3 4B7SU$)))#WK @..<-?yJ%%(G ,66D5G HJ 
 9!	
 r:   c                V   UR                  5       (       d  U R                  U5      (       a  U$ UR                  5       nU R                  R                  (       a  SU R                  R                   S3OSn[
        R                  " SU< SU< SU< S3SU< SU< S	U< S
U S3	SSS9  U$ )NrF  rG  rJ   zInvalid uppercase key rH  z# (setup.cfg), please use lowercase rI  z$
            Usage of uppercase key zL will not be supported in
            future versions. Please use lowercase rJ  rK  rL  rM  rN  )islowerrO  lowerr   r7   r#   r2   )r   r=  r;  lowercase_optrQ  s        r8   r2  &Distribution._enforce_option_lowercase  s    ;;==D==gFFJ		;?==;M;M[!3!3 4B7SU$))$SG4{ ;$$1#4I?$$'7$wk :33@2C DJ 
 9!	
 r:   c                H    SnX;   =(       d    U R                  U5      (       + $ )N)zoptions.extras_requirezoptions.data_fileszoptions.entry_pointszoptions.package_datazoptions.exclude_package_data)_is_setuptools_section)r   r;  skips      r8   rO  )Distribution._skip_setupcfg_normalization  s&    
 Jd&A&A'&J"JJr:   c                d    US:H  =(       d%    UR                  S5      =(       d    U[        5       ;   $ )Nr   r/  )r   _setuptools_commands)r   r;  s     r8   rY  #Distribution._is_setuptools_section  s3    z! 1!!),1.00	
r:   c           
     $   UR                  5       nUc  U R                  U5      n[        (       a  U R                  SU S35        UR	                  5        H  u  nu  pV[        (       a  U R                  SU SU SU S35         UR
                   Vs/ s H  n[        U5      PM     nn UR                  n	 [        U[        5      n
XI;   a&  U
(       a  [        XU   [        U5      (       + 5        M  XH;   a  U
(       a  [        X[        U5      5        M  [        X5      (       a  [        XU5        M  [        SU S	U S
U S35      e   gs  snf ! [         a    / n Nf = f! [         a    0 n	 Nf = f! [         a  n[        U5      UeSnAff = f)a  
Set the options for 'command_obj' from 'option_dict'.  Basically
this means copying elements of a dictionary ('option_dict') to
attributes of an instance ('command').

'command_obj' must be a Command instance.  If 'option_dict' is not
supplied, uses the standard option dictionary for this command
(from 'self.command_options').

(Adopted from distutils.dist.Distribution._set_command_options)
Nz  setting options for 'z
' command:z    z = z (from r>   z	error in z: command 'z' has no such option 'r   )get_command_namer0  r$   r(  rd   boolean_optionsr'   r4   r4  rL   r   r5  r(   r   r%   rB   )r   command_objoption_dictcommand_namer   sourcer<   o	bool_optsneg_opt	is_stringrG   s               r8   _set_command_options!Distribution._set_command_options  s    #335..|<K5MM3L>LM'2'8'8':#FOVuVHCwgfXQGH;F;V;VW;Va.q1;V	W%225&uc2	$Ki>N:NO(YK51AB[11K7.#F8;|nDZ[aZbbcd + (; X! 	 "   5*1-145s`   EE'E*E"79E42!E4E43E4EEE"E10E14
F>F

Fc                    / n[        U R                  =(       d    [        R                  S5      nUb,  [	        S U5      n[        US   5      n[        US   5      nX4$ UR                  5       (       a  U/nX4$ )z/Add default file and split between INI and TOMLzpyproject.tomlc                2    [        U 5      R                  S:H  $ )Nz.toml)r	   suffix)fs    r8   r   8Distribution._get_project_config_files.<locals>.<lambda>  s    Q'(Ar:   r   r   )r	   r   r  curdirr   r`   exists)r   r6  	tomlfilesstandard_project_metadatapartss        r8   _get_project_config_files&Distribution._get_project_config_files  s|    	$()C"))EU$V! A9MEU1XIU1XI ## '--//23I##r:   c                &   U R                  U5      u  p4U R                  US9  [        R                  " X R                  US9  U H  n[
        R                  " XU5        M     U R                  5         U R                  5         U R                  5         g)zHParses configuration files from various levels
and loads configuration.
)r6  )ignore_option_errorsN)
rv  rA  r   parse_configurationr3  r   apply_configurationr   r   r   )r   r6  ry  inifilesrs  r9  s         r8   parse_config_filesDistribution.parse_config_files  s     #<<YG  8 4$$&&=Q	
 "H--d>RS " 	!))+$$&r:   c                    SSK Jn  U" X5      $ )zResolve pre-setup requirementsr   )_fetch_build_eggs)	installerr  )r   requiresr  s      r8   fetch_build_eggsDistribution.fetch_build_eggs  s    0 00r:   c                    SnS n[         R                  " US9n[        R                  " U R                  U5      n[        S U5      n[        XRS9 H  nU" U 5        M     g)z
Allow plugins to apply arbitrary operations to the
distribution. Each hook may optionally define a 'order'
to influence the order of execution. Smaller numbers
go first and the default is 0.
z(setuptools.finalize_distribution_optionsc                    [        U SS5      $ )Norderr   )r   )hooks    r8   by_order/Distribution.finalize_options.<locals>.by_order	  s    4!,,r:   r   c                "    U R                  5       $ rp   )r   )rG   s    r8   r   /Distribution.finalize_options.<locals>.<lambda>  s
    qvvxr:   )r   N)r   r   ra   filterfalse_removedr   r  )r   r=   r  definedfilteredloadedrF   s          r8   finalize_optionsDistribution.finalize_options   sY     ;	- ''e4((@'2.BtH /r:   c                &    S1nU R                   U;   $ )z
When removing an entry point, if metadata is loaded
from an older version of Setuptools, that removed
entry point will attempt to be loaded and will fail.
See #2765 for more details.
2to3_doctestsr6   )rF   removeds     r8   r  Distribution._removed  s     
 ww'!!r:   c                    [         R                  " SS9 H?  n[        XR                  S 5      nUc  M  UR	                  5       " XR                  U5        MA     g )Nr   r   )r   r   r   r7   r   )r   rF   r<   s      r8   _finalize_setup_keywords%Distribution._finalize_setup_keywords   sC    ''.HIBD''40E 	$/ Jr:   c                   SSK Jn  [        R                  R	                  [        R
                  S5      n[        R                  R                  U5      (       d  [        R                  " U5        UR                  U5        [        R                  R	                  US5      n[        USSS9 nUR                  S5        UR                  S	5        UR                  S
5        S S S 5        U$ U$ ! , (       d  f       U$ = f)Nr   )windows_supportz.eggsz
README.txtwr  r  zcThis directory contains eggs that were downloaded by setuptools to build, test, and run plug-ins.

zAThis directory caches those eggs to prevent repeated downloads.

z/However, it is safe to delete this directory.

)rJ   r  r  r  rM   rq  rr  mkdir	hide_filer*  write)r   r  egg_cache_dirreadme_txt_filenamero  s        r8   get_egg_cache_dirDistribution.get_egg_cache_dir&  s    %RYY8ww~~m,,HH]#%%m4"$'',,}l"K)3AQJ . KL B } BA s   +4C++
C:c                    SSK Jn  U" X5      $ )z Fetch an egg needed for buildingr   )fetch_build_egg)r  r  )r   reqr  s      r8   r  Distribution.fetch_build_egg;  s    .t))r:   c                   XR                   ;   a  U R                   U   $ US:X  a  SSKJn  U$ [        R                  " SUS9nU H$  nUR                  5       =U R                   U'   nUs  $    [        R                  " X5      $ )z(Pluggable version of get_command_class()bdist_wheelr   )r  distutils.commands)r=   r7   )cmdclasscommand.bdist_wheelr  r   r   r   r   get_command_class)r   r   r  epsrF   r  s         r8   r  Distribution.get_command_classA  s|    mm#==)) m#8##*>WMB02	9DMM'"XO  !224AAr:   c                    [         R                  " SS9 HG  nUR                  U R                  ;  d  M  UR	                  5       nX R                  UR                  '   MI     [
        R                  " U 5      $ Nr  r   )r   r   r7   r  r   r   print_commandsr   rF   r  s      r8   r  Distribution.print_commandsS  sW    ''.BCBwwdmm+779)1bgg& D ++D11r:   c                    [         R                  " SS9 HG  nUR                  U R                  ;  d  M  UR	                  5       nX R                  UR                  '   MI     [
        R                  " U 5      $ r  )r   r   r7   r  r   r   get_command_listr  s      r8   r  Distribution.get_command_listZ  sW    ''.BCBwwdmm+779)1bgg& D --d33r:   c                    UR                  5        H7  u  p#[        U SU-   S5      nU(       a
  U" U5        M&  U R                  X#5        M9     g)a  Add items to distribution that are named in keyword arguments

For example, 'dist.include(py_modules=["x"])' would add 'x' to
the distribution's 'py_modules' attribute, if it was not already
there.

Currently, this method only supports inclusion for attributes that are
lists or tuples.  If you need to add support for adding to other
attributes in this or a subclass, you can add an '_include_X' method,
where 'X' is the name of the attribute.  The method will be called with
the value passed to 'include()'.  So, 'dist.include(foo={"bar":"baz"})'
will try to call 'dist._include_foo({"bar":"baz"})', which can then
handle whatever special inclusion logic is needed.
	_include_N)rd   r   _include_misc)r   r   r   r   includes        r8   r  Distribution.includea  s@     KKMDAdK!OT:G
""1( "r:   c                D   US-   nU R                   (       aA  U R                    Vs/ s H$  o3U:w  d  M
  UR                  U5      (       a  M"  UPM&     snU l         U R                  (       aA  U R                   Vs/ s H$  o3U:w  d  M
  UR                  U5      (       a  M"  UPM&     snU l        U R                  (       aW  U R                   Vs/ s H9  nUR                  U:w  d  M  UR                  R                  U5      (       a  M7  UPM;     snU l        ggs  snf s  snf s  snf )z9Remove packages, modules, and extensions in named packagerR   N)packagesr   
py_modulesext_modulesr7   r   packagepfxps       r8   exclude_packageDistribution.exclude_packagew  s     m====(aLcAR=DM ????*a7l1<<PSCT?DO  )) )A66W$ -.VV->->s-C ) D 

 s4   	DD
D7	DDD	D!DDc                v    US-   nU R                  5        H   nX1:X  d  UR                  U5      (       d  M     g   g)z<Return true if 'exclude_package(package)' would do somethingrR   TF)iter_distribution_namesr   r  s       r8   rT   Distribution.has_contents_for  s;     m--/A|q||C00 0 r:   c           	     h   [        U[        5      (       d  [        U S[         SU< S35      e [	        X5      nUb#  [        U[        5      (       d  [        US-   5      eU(       a%  [        XU Vs/ s H  oUU;  d  M
  UPM     sn5        gg! [
         a  n[        U S35      UeSnAff = fs  snf )zAHandle 'exclude()' for list/tuple attrs without a special handler: setting must be of type <rK   r>   : No such distribution settingN4: this setting cannot be changed via include/exclude)rL   r3   r&   rN   r   r4   r5  )r   r7   r<   oldrG   items         r8   _exclude_miscDistribution._exclude_misc  s    %++%&34G3HPUyXYZ 	V$%C ?:c9#=#=%MM  D# K#$U9J# KL   	V%.L&MNTUU	V !Ls#   B 2	B/?B/
B,B''B,c                   [        U[        5      (       d  [        U S[         SU< S35      e [	        X5      nUc  [        XU5        g[        U[        5      (       d  [        US-   5      eU Vs/ s H  oUU;  d  M
  UPM     nn[        X[        U5      U-   5        g! [
         a  n[        U S35      UeSnAff = fs  snf )zAHandle 'include()' for list/tuple attrs without a special handlerr  rK   r>   r  Nr  )rL   r3   r&   rN   r   r4   r5  r`   )r   r7   r<   r  rG   r  news          r8   r  Distribution._include_misc  s     %++%&34G3HPUyXYZ 	V$%C ;D&C++%MM  %*=ED_4EC=DS	C0  	V%.L&MNTUU	V >s#   B  2	C?C 
B>*B99B>c                    UR                  5        H7  u  p#[        U SU-   S5      nU(       a
  U" U5        M&  U R                  X#5        M9     g)a  Remove items from distribution that are named in keyword arguments

For example, 'dist.exclude(py_modules=["x"])' would remove 'x' from
the distribution's 'py_modules' attribute.  Excluding packages uses
the 'exclude_package()' method, so all of the package's contained
packages, modules, and extensions are also excluded.

Currently, this method only supports exclusion from attributes that are
lists or tuples.  If you need to add support for excluding from other
attributes in this or a subclass, you can add an '_exclude_X' method,
where 'X' is the name of the attribute.  The method will be called with
the value passed to 'exclude()'.  So, 'dist.exclude(foo={"bar":"baz"})'
will try to call 'dist._exclude_foo({"bar":"baz"})', which can then
handle whatever special exclusion logic is needed.
	_exclude_N)rd   r   r  )r   r   r   r   excludes        r8   r  Distribution.exclude  s@      KKMDAdK!OT:G
""1( "r:   c                    [        U[        5      (       d  [        S[         SU< S35      e[	        [        U R                  U5      5        g )Nz#packages: setting must be of type <rK   r>   )rL   r3   r&   rN   r`   r   r  )r   r  s     r8   _exclude_packagesDistribution._exclude_packages  sJ    (I..%56I5J'RZQ]]^_  	S%%x01r:   c                   U R                   R                  U l        U R                   R                  U l        US   nU R                  S5      nX4;   a-  XC   u  pVXC	 SS KnUR                  US5      US S& US   nX4;   a  M-  [        R                  " XU5      nU R                  U5      n	[        U	SS 5      (       a  SU4U R                  U5      S'   Ub  / $ U$ )Nr   aliasesTr   command_consumes_argumentscommand lineargs)
	__class__global_optionsr4  r0  shlexr   r   _parse_command_optsr  r   )
r   r8  r  r   r  _srcr@  r  nargs	cmd_classs
             r8   r   Distribution._parse_command_opts  s    "nn;; NN77 q'&&y1 !*KD {{5$/D!H1gG   11$E **73	9:DAA5CU4KD  )&1 	r:   c           	        0 nU R                   R                  5        H  u  p#UR                  5        H  u  nu  pVUS:w  a  M  UR                  SS5      nUS:X  av  U R                  U5      nU R                  R                  5       nUR                  [        US0 5      5        UR                  5        H  u  pX:X  d  M  U	nSn  O   [        S5      eUS:X  a  SnXaR                  U0 5      U'   M     M     U$ )	a@  Return a '{cmd: {opt:val}}' map of all command-line options

Option names are all long, but do not include the leading '--', and
contain dashes rather than underscores.  If the option doesn't take
an argument (e.g. '--quiet'), the 'val' is 'None'.

Note that options provided by config files are intentionally excluded.
r  rE  rD  r   r4  NzShouldn't be able to get herer   )
r3  rd   r
  get_command_objr4  copyupdater   rC   r   )r   dcmdoptsr=  r?  r>  cmdobjrh  negposs              r8   get_cmdline_options Distribution.get_cmdline_options  s     /1--335IC#'::<Zc.(kk#s+!8!11#6F"//446GNN76>2#FG$+MMO:"%C"&C!	 %4 --LMMAXC-0S"%c*+ $0 62 r:   c              #  J  #    U R                   =(       d    S Sh  vN   U R                  =(       d    S Sh  vN   U R                  =(       d    S HH  n[        U[        5      (       a  Uu  p#OUR
                  nUR                  S5      (       a  USS nUv   MJ     g N Nh7f)z@Yield all packages, modules, and extension names in distributionr   Nmodulei)r  r  r  rL   tupler7   r  )r   extr7   
_buildinfos       r8   r  $Distribution.iter_distribution_names  s      ==&B&&??(b((##)r)C#u%%#& jxx}}X&&CRyJ *	 	'(s    B#BB#B!A'B#!B#c                L   SSK nU R                  (       a  [        R                  " X5      $ [	        UR
                  [        R                  5      (       d  [        R                  " X5      $ UR
                  R                  R                  5       S;   a  [        R                  " X5      $ UR
                  R                  nUR
                  R                  SS9   [        R                  " X5      UR
                  R                  US9  $ ! UR
                  R                  US9  f = f)zIf there were any non-global "display-only" options
(--help-commands or the metadata display options) on the command
line, display the requested info and return true; else return
false.
r   N)r  utf8r  r  )r$  help_commandsr   handle_display_optionsrL   stdoutioTextIOWrapperr  rU  reconfigure)r   option_orderr$  r  s       r8   r  #Distribution.handle_display_options-  s     	 77KK #**b&6&677 77KK ::$$&*;; 77KK ::&&

0	6 77KJJ""H"5CJJ""H"5s   D D#c                D   > U R                  5         [        TU ]	  U5        g rp   )r   superrun_command)r   r   r  s     r8   r  Distribution.run_commandI  s     	G$r:   )r   r   r   r   r  r   r  r   r   r4  r   r  r  r   r   r   rp   )r   zMutableMapping[str, Any] | NonereturnNone)r
  r  )T)r   r   r   rt   r
  zIterator[str])r  r   r   rt   r
  r   )r=  r   r;  r   r
  r   )r;  r   r
  rt   )r6  Iterable[StrPath] | None)NF)r6  r  ry  rt   r
  r  )r  r   r
  zlist[metadata.Distribution])r   r   r
  ztype[distutils.cmd.Command])r  r   r
  r  )r  r   r
  rt   )r7   r   r<   r+   r
  r  )r  r+   r
  r  )r
  z dict[str, dict[str, str | None]])4r5   
__module____qualname____firstlineno____doc__r   r`   r   __annotations__r   r   r   staticmethodr   r   r   r   r   classmethodr   r  rA  r1  r2  rO  rY  rj  rv  r}  r  r  r  r  r  r  r  r  r  r  r  rT   r  r  r  r  r  r  r  r  r  __static_attributes____classcell__)r  s   @r8   r*   r*      s   +\ *6*$% 	'# "!"@+Q  D&
&PC( 8<
 
15
	
 
& 7 7tM5^((K
+5Z
$ /3%*'+' #' 
	',1$ " "0**B$24),*	M"1*).26%N 68% %r:   c                      [         R                  " S5      R                  n S U  5       n1 [        R
                  R                  kUk$ ! [         R                   a    / n N6f = f)N
setuptoolsc              3  8   #    U  H  oR                   v   M     g 7frp   r6   )r   rF   s     r8   r   '_setuptools_commands.<locals>.<genexpr>V  s     ="ggs   )r   distributionr   PackageNotFoundErrorrV   r   __all__)r   r  s     r8   r]  r]  Q  sa    ,,\:GG== .Y&&--- (( s   )A	 	A"!A"c                      \ rS rSrSrSrg)rx   i]  znClass for warning about deprecations in dist in
setuptools. Not ignored by default, unlike DeprecationWarning.r   N)r5   r  r  r  r  r  r   r:   r8   rx   rx   ]  s    Fr:   rx   )r7   r   r
  r   )rE   r   r<   r+   r
  r  )rE   r   r<   r,   r
  r  )r
  zset[str])h
__future__r   	functoolsr  ra   r   r  r   r$  collections.abcr   r   r   r   r   pathlibr	   typingr
   r   r   more_itertoolsr   r   packaging.markersr   r   packaging.specifiersr   r   packaging.versionr   rJ   r   r   r   r   rE  
_importlibr   _normalizationr   _pathr   r   configr   r   	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)   r  r  r`   r3   r   r+   r  rN   r   r,   r9   rH   rP   r^   re   rc   rh   rv   ry   r~   r   r   r   r   r*   r   corecacher]  rx   r   r:   r8   <module>r;     s   "  	   	 	 
 H H   , , 5 3 ? %  ! <   + & & ! C      ! F 4 $+ 
4K	 U38_d3i78	9 83 !&sDcNHSM'I!J Y JK
8	W522,@ <!).."="=>M\%= \%~ . .F9 Fr:   