
    vKg(                       % 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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#  SSK$J%r%  SSK&J'r'  SSK!J(r(  SSK)J*r*J+r+  SSK,J-r-  SSK.J/r/  SSK0J1r1J2r2  S SK3r4S SK5r4S SK6r4S SK7r4S SK8r4S SK9J:r:  S SK;J<r<J=r=  S SK>J?r?  S SK@JArA  \(       a  S SKBJCrC  S SKDJErF  S/rG\H\I4rJ \\H\KS4   \I\K   4   rLS\MS'   SrN\\K\O\K\4   \\K   4   rPS\MS'    S1S  jrQS! rRS2S" jrSS# rTS$ rUS% rVS& rWS' rXS( rYS3S) jrZS* r[S+ r\S, r]S- r^\(       a  S SK6JEr_  O\/" \4R                  R                  5      r_ " S. S\_5      rE " S/ S0\25      rag)4    )annotationsN)IterableMutableMappingSequence)iglob)Path)TYPE_CHECKINGAnyUnion)	partitionunique_everseen)InvalidMarkerMarker)InvalidSpecifierSpecifierSet)Version   )_entry_points_reqscommand)metadata)StrPath)
_StrOrIter)pyprojecttomlsetupcfg)ConfigDiscovery)get_unpatched)InformationOnlySetuptoolsDeprecationWarning)DEBUG)DistutilsOptionErrorDistutilsSetupError)translate_longopt)	strtobool)	TypeAlias)Distributionr&   .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.)        )due_datezmodule z has no attribute )r   emit	_sequenceAttributeError__name__names    O/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/setuptools/dist.py__getattr__r6   G   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)valuer4   groupz/ must be importable 'module:attrs' string (got ))r   
EntryPointextras	TypeError
ValueErrorr1   AssertionErrorr"   )distattrr9   epes        r5   check_importablerE   R   sZ      u4tD99}9z>>B !FJER
	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)	
isinstancer0   joinr>   r?   r1   r@   r"   _sequence_type_reprrA   rB   r9   rD   s       r5   assert_string_listrM   \   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SU-  -   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 validz1Distribution contains no modules or packages for znamespace package %r.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)	rM   has_contents_forr"   
rpartition	distutilslogwarnr   r/   )rA   rB   r9   ns_packagesnspparent_sep_childs           r5   	check_nspr[   j   s    Kt;/$$S))%C(3./   #~~c2ff/MM;	 	%))=JJ	
 r7   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itemsr>   r?   r1   r"   rL   s       r5   check_extrasrb      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_namerY   markermsgs         r5   r`   r`      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)rj   ms     r5   re   re      s    vAJJLr7   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"   rA   rB   r9   s      r5   assert_boolrs      s-    E{e!TH,J5)ST"UVV r7   c                ^    U(       d  [         R                  U S35        g [        U S35      e)Nz is ignored.z is invalid.)DistDeprecationWarningr/   r"   rr   s      r5   invalid_unless_falserv      s/    ##tfL$9:
l3
44r7   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   rf   rI   setr>   r?   r"   rA   rB   r9   errorrk   s        r5   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   r1   r"   ry   s        r5   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"   rL   s       r5   check_entry_pointsr      s2    ,5! ,!!$!+,s    
4/4c                *   [        U[        5      (       d  [        SR                  U5      5      eUR	                  5        HP  u  p4[        U[
        5      (       d  [        SR                  X5      5      e[        U SR                  U5      U5        MR     g)z@Verify that value is a dictionary of package names to glob listszT{!r} must be a dictionary mapping package names to lists of string wildcard patternsz,keys of {!r} dict must be strings (got {!r})zvalues of {!r} dictN)rI   dictr"   formatra   strrM   )rA   rB   r9   kvs        r5   check_package_datar      s    eT""!''-vd|
 	
 !S!!%>EEdN  	4!6!=!=d!CQG r7   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matchrS   rT   rU   )rA   rB   r9   pkgnames       r5   check_packagesr      s7    xx00MM8 r7   c                    ^  \ rS rSr% SrS \\S S \\S.rS\S'   S.S/S	 jjr	S
 r
S r\S 5       rS rS rS0S jr\S 5       rS.S jrS1S jrS rS1S jrS.S jrS2S jr  S3     S4S jjr    S5S jrS0S jr\S 5       rS rS rS rS6S jrS r S  r!S0S! jr"S7S" jr#S8S# jr$S9S$ jr%S9S% jr&S0S& jr'S:S' jr(S( r)S;S) jr*S* r+S+ r,S0U 4S, jjr-S-r.U =r/$ )<r&      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 rm    r   r7   r5   <lambda>Distribution.<lambda>   s    r7   c                     g rm   r   r   r7   r5   r   r   #  s    r7   c                     g rm   r   r   r7   r5   r   r   $  s    r7   )long_description_content_typeproject_urlsprovides_extraslicense_filelicense_filesinstall_requiresextras_requirez	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 R/                  U R                  R0                  5      U R                  l        U R3                  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
setdefaultr4   rx   _DISTUTILS_UNSUPPORTED_METADATAra   _Distribution__init___referenced_filesr   set_defaults_set_metadata_defaults_normalize_versionversion_finalize_requires)selfattrshave_package_datarC   metadata_onlyr   r   
dist_attrss           r5   r   Distribution.__init__-  sS   #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
 ,/5+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 )Nr4   z&Required package metadata is missing: )r   r   getattrr"   )r   requiredkeyprovidedmissingrk   s         r5   _validate_metadataDistribution._validate_metadataM  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   ra   r   r   r   get)r   r   optiondefaults       r5   r   #Distribution._set_metadata_defaultsZ  sD      $CCIIKOF**699VWY3OP  Lr7   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   )siczNormalizing 'z' to '')	rG   r   rI   numbersNumberr   r   r   r/   )r   r   
normalizeds      r5   r   Distribution._normalize_versiond  sp    gw~~..'lG%%N)*
   =	
|1!MNr7   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_requiresNrd   r   )
r   r   r   _normalize_requiresr   r   keyssplitr   r   )r   rg   s     r5   r   Distribution._finalize_requirest  s    
 4*D11,0,@,@DMM)  ")-)>)>&'+':':$,,113C(+5MM11<<UC	 4 r7   c                   [        U SS5      =(       d    / n[        U SS5      =(       d    0 n[        [        [        [        R
                  " U5      5      5      U l        UR                  5        VVs0 sH<  u  p4U[        [        [        [        R
                  " U=(       d    / 5      5      5      _M>     snnU l        gs  snnf )zAMake sure requirement-related attributes exist and are normalizedr   Nr   )	r   r]   mapr   r   rf   r   ra   r   )r   r   r   r   r   s        r5   r    Distribution._normalize_requires  s    "4);TBHb '7>D" $Sekk:J.K%L M@N@T@T@V
@VAtCU[[b1233@V
 
s   2AB>c                $   U R                   R                  nU(       a  UO/ nU R                   R                  nU(       a  X2;  a  UR                  U5        Uc  Uc  / SQn[	        [        U R                  U5      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*)r   r   r   appendr]   r   _expand_patterns)r   r   patternsr   s       r5   _finalize_license_files$Distribution._finalize_license_files  st    *.--*E*E/<m"#'==#=#=L8OOL) \%9 JH&*D11(;<'
#r7   c                    S U  5       $ )z
>>> list(Distribution._expand_patterns(['LICENSE']))
['LICENSE']
>>> list(Distribution._expand_patterns(['pyproject.toml', 'LIC*']))
['pyproject.toml', 'LICENSE']
c              3     #    U H`  n[        [        U5      5       HE  nUR                  S 5      (       a  M  [        R                  R                  U5      (       d  MA  Uv   MG     Mb     g7f)~N)sortedr   endswithospathisfile).0patternr   s      r5   	<genexpr>0Distribution._expand_patterns.<locals>.<genexpr>  sR      
#uW~.==%  +-''..*> D. #s   0A)"A)A)r   )r   s    r5   r   Distribution._expand_patterns  s    
#
 	
r7   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}r2   global)verbosedry_runr   )configparserr   sysr   base_prefix	frozensetfind_config_filesr    announcer   optionxformopenr   locals	read_filesectionsoptionsget_option_dictr   warn_dash_deprecationmake_option_lowercaser   command_optionsra   negative_optr$   setattrr?   r!   )r   	filenamesr   ignore_optionsparserfilenamereadersectionr  opt_dictoptvalsrcaliasrD   s                  r5   _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44SBC44SBC%-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                X   US;   a  U$ UR                  SS5      n[        [        R                  " [        R
                  R                  U R                  5       5      5      nUR                  S5      (       d  US:w  a  X$;  a  U$ SU;   a   [        R                  " SSU< SU< S	3S
SS9  U$ )N)zoptions.extras_requirezoptions.data_files-_r  r   zInvalid dash-separated optionsz)
                Usage of dash-separated zZ will not be supported in future
                versions. Please use the underscore name z instead.
                !userguide/declarative_config.htmlr+      r  rP   r.   )replacer]   r^   chainrS   r   __all___setuptools_commands
startswithr   r/   )r   r  r  underscore_optcommandss        r5   r  "Distribution.warn_dash_deprecation  s     
 
 JS#.OO!!))))+
 ""9--:%'!!#:(--0)), 0::H9K L =%	 r7   c                     [         R                  " S5      R                  nU Vs1 sH  o"R                  iM     sn$ s  snf ! [         R                   a    / s $ f = f)N
setuptools)r   distributionr   r4   PackageNotFoundError)r   r   rC   s      r5   r!  !Distribution._setuptools_commands$  sQ    	#00>KKL&23lGGl333,, 	I	s   $A =A A AAc           
         US:w  d  UR                  5       (       a  U$ UR                  5       n[        R                  " SSU< SU< SU< S3SSS	9  U$ )
Nr   zInvalid uppercase configurationz$
            Usage of uppercase key z in zL will not be supported in
            future versions. Please use lowercase z instead.
            r  r  r  )islowerlowerr   r/   )r   r  r  lowercase_opts       r5   r  "Distribution.make_option_lowercase,  sk    j CKKMMJ		$))-$$'7$wk :33@2C D 9!		
 r7   c           
     ,   UR                  5       nUc  U R                  U5      n[        (       a  U R                  SU-  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 '%s' command:z    z = z (from r;   z	error in z: command 'z' has no such option 'r   )get_command_namer  r    r   ra   boolean_optionsr#   r1   r  rI   r   r	  r$   r   r!   r?   )r   command_objoption_dictcommand_namer   sourcer9   o	bool_optsneg_opt	is_stringrD   s               r5   _set_command_options!Distribution._set_command_options>  si    #335..|<K5MM?,NO'2'8'8':#FOVuOP;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.!<9 + (; X! 	 "    5*1-145s`   EE(E+E&89E83!E8E84E8EE#"E#&E54E58
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    r5   r   8Distribution._get_project_config_files.<locals>.<lambda>q  s    Q'(Ar7   r   r   )r   r   r   curdirr   r]   exists)r   r
  	tomlfilesstandard_project_metadatapartss        r5   _get_project_config_files&Distribution._get_project_config_filesl  s|    	$()C"))EU$V! A9MEU1XIU1XI ## '--//23I##r7   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         g)zHParses configuration files from various levels
and loads configuration.
)r
  )ignore_option_errorsN)	rG  r  r   parse_configurationr  r   apply_configurationr   r   )r   r
  rJ  inifilesrD  r  s         r5   parse_config_filesDistribution.parse_config_filesx  sy     #<<YG  8 4$$&&=Q	
 "H--d>RS " 	!$$&r7   c                    SSK Jn  U" X5      $ )zResolve pre-setup requirementsr   )_fetch_build_eggs)	installerrQ  )r   requiresrQ  s      r5   fetch_build_eggsDistribution.fetch_build_eggs  s     	1 00r7   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    r5   by_order/Distribution.finalize_options.<locals>.by_order  s    4!,,r7   r   c                "    U R                  5       $ rm   )r   )rD   s    r5   r   /Distribution.finalize_options.<locals>.<lambda>  s
    qvvxr7   )r   N)r   r   r^   filterfalse_removedr   r   )r   r:   rZ  definedfilteredloadedrC   s          r5   finalize_optionsDistribution.finalize_options  sY     ;	- ''e4((@'2.BtH /r7   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_doctestsr3   )rC   removeds     r5   r_  Distribution._removed  s     
 ww'!!r7   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   r4   r   )r   rC   r9   s      r5   _finalize_setup_keywords%Distribution._finalize_setup_keywords  sC    ''.HIBD''40E 	$/ Jr7   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.

)rG   rm  r   r   rJ   rB  rC  mkdir	hide_filer   write)r   rm  egg_cache_dirreadme_txt_filenamer@  s        r5   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)rR  rw  )r   reqrw  s      r5   rw  Distribution.fetch_build_egg  s    .t))r7   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:   r4   )cmdclasscommand.bdist_wheelr{  r   r   r   r   get_command_class)r   r   r{  epsrC   r}  s         r5   r  Distribution.get_command_class  s|    mm#==)) m#8##*>WMB02	9DMM'"XO  !224AAr7   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   r4   r}  r   r   print_commandsr   rC   r}  s      r5   r  Distribution.print_commands  sW    ''.BCBwwdmm+779)1bgg& D ++D11r7   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   r4   r}  r   r   get_command_listr  s      r5   r  Distribution.get_command_list  sW    ''.BCBwwdmm+779)1bgg& D --d33r7   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)ra   r   _include_misc)r   r   r   r   includes        r5   r  Distribution.include  s@     KKMDAdK!OT:G
""1( "r7   c                >   US-   nU R                   (       a@  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                  (       a@  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                  (       aV  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 packagerO   N)packagesr"  
py_modulesext_modulesr4   r   packagepfxps       r5   exclude_packageDistribution.exclude_package  s     m====(aLcAR=DM ????*a7l1<<PSCT?DO  )) )A66W$ -.VV->->s-C ) D 

 s4   DD	D6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 somethingrO   TF)iter_distribution_namesr"  r  s       r5   rQ   Distribution.has_contents_for!  s;     m--/A|q||C00 0 r7   c           	     f   [        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[        SU-  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 <rH   r;    %s: No such distribution settingN4: this setting cannot be changed via include/exclude)rI   r0   r"   rK   r   r1   r	  )r   r4   r9   oldrD   items         r5   _exclude_miscDistribution._exclude_misc,  s    %++%&34G3HPUyXYZ 	X$%C ?:c9#=#=%MM  D# K#$U9J# KL   	X%&H4&OPVWW	X !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[        SU-  5      UeSnAff = fs  snf )zAHandle 'include()' for list/tuple attrs without a special handlerr  rH   r;   r  Nr  )rI   r0   r"   rK   r   r1   r	  r]   )r   r4   r9   r  rD   r  news          r5   r  Distribution._include_misc=  s     %++%&34G3HPUyXYZ 	X$%C ;D&C++%MM  %*=ED_4EC=DS	C0  	X%&H4&OPVWW	X >s#   B 2C >C 
B=)B88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)ra   r   r  )r   r   r   r   excludes        r5   r  Distribution.excludeR  s@      KKMDAdK!OT:G
""1( "r7   c                    [        U[        5      (       d  [        S[         SU< S35      e[	        [        U R                  U5      5        g )Nz#packages: setting must be of type <rH   r;   )rI   r0   r"   rK   r]   r   r  )r   r  s     r5   _exclude_packagesDistribution._exclude_packagesi  sJ    (I..%56I5J'RZQ]]^_  	S%%x01r7   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_optionsr  r  shlexr   r   _parse_command_optsr  r   )
r   r  r  r   r  _srcr  r  nargs	cmd_classs
             r5   r   Distribution._parse_command_optsp  s    "nn;; NN77 q'&&y1 !*KD {{5$/D!H1gG   11$E **73	9:DAA5CU4KD  )&1 	r7   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  r  r  r   r  NzShouldn't be able to get herer   )
r  ra   r  get_command_objr  copyupdater   r@   r   )r   dcmdoptsr  r  r  cmdobjr9  negposs              r5   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 r7   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  rI   tupler4   r   )r   extr4   
_buildinfos       r5   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_optionsrI   stdoutioTextIOWrapperr   r-  reconfigure)r   option_orderr   r   s       r5   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 rm   )r   superrun_command)r   r   r  s     r5   r  Distribution.run_command  s     	G$r7   )r   r   r   r   r  r   r  r   r   r  r   r  r  r   r   r   rm   )r   zMutableMapping[str, Any] | NonereturnNone)r  r  )r  r   r  r   r  r   )r
  Iterable[StrPath] | None)NF)r
  r  rJ  rq   r  r  )rS  r   r  z!list[_pkg_resources_Distribution])r   r   r  ztype[distutils.cmd.Command])r  r   r  r  )r  r   r  rq   )r4   r   r9   r'   r  r  )r  r'   r  r  )r  z dict[str, dict[str, str | None]])0r2   
__module____qualname____firstlineno____doc__r   r]   r   __annotations__r   r   r   staticmethodr   r   r   r   r   r  r  r!  r  r;  rG  rN  rT  rc  r_  rj  rt  rw  r  r  r  r  r  rQ   r  r  r  r  r  r  r  r  r  __static_attributes____classcell__)r  s   @r5   r&   r&      sT   +\ *6$% '# "!"@+Q  D&

& 
 
M5^ D$,5\
$ /3%*'+' #' 
	'*1"1	*1$ " "0**B$24),*	M"1*).26%N 68% %r7   c                      \ rS rSrSrSrg)ru   i  znClass for warning about deprecations in dist in
setuptools. Not ignored by default, unlike DeprecationWarning.r   N)r2   r  r  r  r  r  r   r7   r5   ru   ru     s    Fr7   ru   )r4   r   r  r
   )rB   r   r9   r'   r  r  )rB   r   r9   r(   r  r  )b
__future__r   r  r^   r   r   r   r   collections.abcr   r   r   globr   pathlibr   typingr	   r
   r   more_itertoolsr   r   packaging.markersr   r   packaging.specifiersr   r   packaging.versionr   rG   r   r   r   r  
_importlibr   _pathr   r   configr   r   	discoveryr   monkeyr   warningsr   r   distutils.cmdrS   distutils.commanddistutils.coredistutils.distdistutils.logdistutils.debugr    distutils.errorsr!   r"   distutils.fancy_getoptr#   distutils.utilr$   typing_extensionsr%   pkg_resourcesr&   _pkg_resources_Distributionr   r  r]   r0   r   r'   r  rK   r   r(   r6   rE   rM   r[   rb   r`   re   rs   rv   r{   r}   r   r   r   r   coreru   r   r7   r5   <module>r     sh   " 	   	 	 
 > >   , , 5 3 ? % 
 !   + & ! C      ! F 4 $+I 
4K	 U38_d3i78	9 83 !&sDcNHSM'I!J Y JK
:	W522,H <!).."="=>Mr%= r%jF9 Fr7   