K iUdZddlmZddlZddlZddlZddlZddlZddlZddl Z ddl m Z m Z ddl mZddlmZmZmZmZmZmZmZmZddlmZmZdd lmZdd lmZdd lm Z m!Z!m"Z"m#Z#dd l$m%Z%m&Z&dd l'm(Z(m)Z)m*Z*erddl+m,Z,ddl-m.Z.ddl/m0Z0eddZ1e2ee3e4ee4dfe4e5fe3e4ee4dfe4ffZ6de7d<ejpdZ9ddZ:GddZ;GddZWarning: '{fieldname}' should be a list, got type '{typename}') isinstancestrlisttype__name__formatlocalsrwarning)value fieldnametypenamemsgs `/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py _ensure_listr4>sg%  Lt $;''Ncjj$68$ CU  Lc  eZdZUdZgdZded<dZded<gdZded <eDcgc]}t|d c}}}Z d ed <d diZ ded<dOdPdZ dZ dQdRdZ dZdZdOdZdZdZdZdSdZ dT dUdZdZdSdZdSdZd Zd!ZdVd"Ze dW dXd#Ze dYd$ZdWdZd&ZdOd'Ze d[ d\d(Ze d[ d]d)Z d[ d^d*Ze jBfd_d+Z"dSd,Z#d`d-Z$dad.Z%dad/Z&dad0Z'dad1Z(dad2Z)dad3Z*dad4Z+dad5Z,e-rndSd6Z.d%ed7<d8ed9<d8ed:<d8ed;<d8ed<<d8ed=<d8ed><d8ed?<d8ed@<d8edA<d8edB<d8edC<d8edD<d8edE<d8edF<dGedH<dGedI<dGedJ<dKedL<dKedM<dKedN<yycc}}}w)b DistributionaThe core of the Distutils. Most of the work hiding behind 'setup' is really done within a Distribution instance, which farms the work out to the Distutils commands specified on the command line. Setup scripts will almost never instantiate Distribution directly, unless the 'setup()' function is totally inadequate to their needs. However, it is conceivable that a setup script might wish to subclass Distribution for some specialized purpose, and then pass the subclass to 'setup()' as the 'distclass' keyword argument. If so, it is necessary to respect the expectations that 'setup' has of Distribution. See the code for 'setup()', in core.py, for details. ))verbosevzrun verbosely (default)r)quietqz!run quietly (turns verbosity off))zdry-runnzdon't actually do anything)helphzshow detailed help message)z no-user-cfgNz-ignore pydistutils.cfg in your home directoryzClassVar[_OptionsList]global_optionszCommon commands: (see '--help-commands' for more) setup.py build will build the package underneath 'build/' setup.py install will install the package z ClassVar[str] common_usage))z help-commandsNzlist all available commands)nameNzprint package name)versionVzprint package version)fullnameNzprint -)authorNzprint the author's name) author-emailNz print the author's email address) maintainerNzprint the maintainer's name)zmaintainer-emailNz$print the maintainer's email address)contactNz7print the maintainer's name if known, else the author's)z contact-emailNz@print the maintainer's email address if known, else the author's)urlNzprint the URL for this package)licenseNz print the license of the package)licenceNzalias for --license) descriptionNzprint the package description)zlong-descriptionNz"print the long package description) platformsNzprint the list of platforms) classifiersNzprint the list of classifiers)keywordsNzprint the list of keywords)providesNz+print the list of packages/modules provided)requiresNz+print the list of packages/modules required) obsoletesNz0print the list of packages/modules made obsoletedisplay_optionsrzClassVar[list[str]]display_option_namesr:r8zClassVar[dict[str, str]] negative_optNc d|_d|_d|_|jD]}t ||dt |_|j jD](}d|z}t ||t|j |*i|_ d|_ d|_ d|_ i|_ g|_d|_i|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_d|_i|_i|_|r7|j=d}|K|d=|j?D]5\}}|jA|}|j?D] \} } d| f|| <7d|vr"|d|d <|d=d } tCjD| |j?D]\} } tG|j d | zr t|j d | z| ?tG|j | rt |j | | mtG|| rt || | d | } tCjD| d|_$|jLtK|j|_ |jD]#} | jMd sn| dk(sd|_$n|jOy)a0Construct a new Distribution instance: initialize all the attributes of a Distribution, and then use 'attrs' (a dictionary mapping attribute names to values) to assign some of those attributes their "real" values. (Any attributes not mentioned in 'attrs' will be assigned to some null value: 0, None, an empty list or dictionary, etc.) Most importantly, initialize the 'command_obj' attribute to the empty dictionary; this will be filled in with real command objects by 'parse_command_line()'. TFget_Noptionsz setup scriptrKrJz:'licence' distribution option is deprecated; use 'license'set_zUnknown distribution option: -z --no-user-cfg)(r8dry_runr=rTsetattrDistributionMetadatametadata_METHOD_BASENAMESgetattrcmdclasscommand_packages script_name script_argscommand_options dist_filespackages package_data package_dir py_modules librariesheaders ext_modules ext_package include_dirs extra_pathscripts data_filespassword command_objhave_rungetitemsget_option_dictwarningswarnhasattr want_user_cfgr) startswithfinalize_options)selfattrsattrbasename method_namerYcommand cmd_optionsopt_dictoptvalr2keyargs r3__init__zDistribution.__init__s   -- 'D D$ & '-.  77 LH 8+K D+wt}}k'J K L35 9= ;?-1GI79  24    02*,  ii *G")$,3MMO>(G[#33GS)7(= >> E!#(#3i )$R c""KKM 'S4==&3,78GDMM6C<8=T]]C0DMM34T3'D#s+9#ACMM#& '""    '#D$4$45D '' ~~c*/)).D&   r5cb|jj|}|ix}|j|<|S)zGet the option dictionary for a given command. If that command's option dictionary hasn't been created yet, then create it and return the new dictionary; otherwise, return the existing option dictionary. )rfrw)rrdicts r3ryzDistribution.get_option_dict7s9 ##''0 <35 5D4''0 r5cddlm}|#t|jj }||j ||z|dz}|s|j |dzy|D]}|jj |}||j |d|dz9|j |d|dz||}|jd D]}|j |dz|zy) Nr)pformat zno commands known yetzno option dict for 'z ' commandzoption dict for ' ' command: )pprintrsortedrfkeysannouncerwsplit) rheadercommandsindentrcmd_nameroutlines r3dump_option_dictszDistribution.dump_option_dictsBs"  d22779:H   MM&6/ *d]F MM&#:: ;   8H++//9H f)=hZy'QQR f):8*J'OOPh'IIdO8DMM&4-$"678 8r5ct|jDcgc]-}tjj |s#t |/}}t r/|jdjdj||Scc}w)aFind as many configuration files as should be processed for this platform, and return a list of filenames in the order in which they should be parsed. The filenames returned are guaranteed to exist (modulo nasty race conditions). There are multiple possible config files: - distutils.cfg in the Distutils installation directory (i.e. where the top-level Distutils __inst__.py file lives) - a file in the user's home directory named .pydistutils.cfg on Unix and pydistutils.cfg on Windows/Mac; may be disabled with the ``--no-user-cfg`` option - setup.cfg in the current directory - a file named by an environment variable zusing config files: {}z, ) r _gen_pathsospathisfiler(rrr,join)rrfiless r3find_config_fileszDistribution.find_config_files\se '+'8QtBGGNN4 > ? ? @ @ ? ?s6BD1)D-8D1%+D% D1D"D1%D.*D1cddlm}tjtjk7rgd}ng}t |}||j }tr|jd|}|D]}tr|jd||j|d|jD]a}|j|}|j|}|D]8} | dk7s | |vs|j|| } | jd d } || f|| <:c|jd |j vr|j d j#D]f\} \} } |j$j| } | rt'|| t)|  n(| d vrt'|| t)| n t'|| | hyy#t*$r} t-| d} ~ wwxYw) Nr) ConfigParser) z install-basezinstall-platbasez install-libzinstall-platlibzinstall-purelibzinstall-headerszinstall-scriptsz install-datarz exec-prefixhomeuserrootz"Distribution.parse_config_files():z reading zutf-8encodingr+r[_global)r8r\) configparserrrr base_prefix frozensetrrrreadsectionsrYryrwreplacerrfrxrUr]r ValueErrorr)r filenamesrignore_optionsparserrsectionrYrrr_srcaliasr2s r3parse_config_fileszDistribution.parse_config_filess- :: (N  N">2  ..0I  MM> ?! H 8*56 KK7K 3!??, 8 ..1//8"8Cj(S-F$jj#6!kk#s3)13 8  8 OO ! * t++ +$($8$8$B$H$H$J 4 [dC))--c24e3-?@ 66c9S>:c3/ 4 ,"4.s334s2AF88 G G  Gc|j}g|_t||jz}|j |j |j ddi|j|j|}|j}tjjtjd|jzz |j|ry|r|j!||}|y|r|j"r5|j%|t'|jdk(|jy|js t)dy ) aParse the setup script's command line, taken from the 'script_args' instance attribute (which defaults to 'sys.argv[1:]' -- see 'setup()' in core.py). This list is first processed for "global options" -- options that set attributes of the Distribution instance. Then, it is alternately scanned for Distutils commands and options for that command. Each new command terminates the options for the previous command. The allowed options for a command are determined by the 'user_options' attribute of the command class -- thus, we have to be able to load command classes in order to parse the command line. Any error in that 'options' attribute raises DistutilsGetoptError; any error on the command-line raises DistutilsArgError. If no Distutils commands were found on the command line, raises DistutilsArgError. Return true if command-line was successfully parsed and we should carry on with executing commands; false if no errors but we shouldn't execute commands (currently, this only happens if user asks for help). rKrJ)argsobject NrrSrzno commands suppliedT)_get_toplevel_optionsrrrSset_negative_aliasesrU set_aliasesgetoptreget_option_orderlogging getLoggersetLevelWARNr8handle_display_options_parse_command_optsr= _show_helplenr)rtoplevel_optionsrr option_orders r3parse_command_linezDistribution.parse_command_lines/. 557 -0D0DDE##D$5$56Iy12}}$"2"24}@..0 $$W\\B4E%EF  & &| 4 ++FD9D| 99 OODMM(:a(?$--   }}#$:; ;r5c"|jdgzS)zReturn the non-display options recognized at the top level. This includes options that are recognized *only* at the top level as well as options recognized for commands. )zcommand-packages=Nz0list of packages that provide distutils commands)r?rs r3rz"Distribution._get_toplevel_options s! "" &   r5cddlm}|d}tj|st d|d|j j | |j|}t||std|dt|drt|jtsd }t||z|j }t|d r+|j#}|j%|j t|d r0t|j&trt)|j&}ng}|j+|j,|jz|z|j/||j1|d d\}} t| d r"| j2r|j5|d|gyt|d rwt|j&tr]d} |j&D]I\} } } }t| |j7| s$d } t9|r|9td|d| d| ry|j;|}t=| j?D] \}}d|f||<|S#t$r}t|d}~wwxYw)aParse the command-line options for a single command. 'parser' must be a FancyGetopt instance; 'args' must be the list of arguments, starting with the current command (whose options we are about to parse). Returns a new version of 'args' with the next command at the front of the list; will be the empty list if there are no more commands on the command line. Returns None if the user asked for help on this command. rr zinvalid command name ''Nzcommand class z must subclass Command user_optionszIcommand class %s must provide 'user_options' attribute (a list of tuples)rU help_optionsrr=Frzinvalid help function z for help option 'z-': must be a callable object (function, etc.)z command line) distutils.cmdr! command_rematch SystemExitrappendget_command_classrr issubclassrr|r'rr)rUcopyupdaterfix_help_optionsset_option_tabler?rrr=r get_attr_namecallableryvarsrx)rrrr!r cmd_classr2rUroptshelp_option_found help_option_short_descfuncrrAr/s r3rz Distribution._parse_command_optss *q'(5gYa@A A W%  )..w7I )W-%  +AB  I~ .91148> &cIo6 6(( 9n -',,.L    6 6 7 9n -*  " "D3 ,I,B,BCLL    )"8"8 8< G  ##L1}}T!"X. t 4 TYY OOFEYKO P  9n -*  " "D3 !" 4=4J4J 0 VUD4!5!5k!BC()%~14TH33#((5/*PP$))E*+%L&'# (#"r5ct|dz|D]S}|jj|}|s|j|} |j}td|d|dd|Uy#t $rd}Y&wxYw)zZPrint a subset of the list of all commands -- used by 'print_commands()'. :(no description available)rGet a list of (command, description) tuples. The list is divided into "standard commands" (listed in distutils.command.__all__) and "extra commands" (mentioned in self.cmdclass, but not a standard command). The descriptions come from the command class attribute 'description'. rNr) r!rr"rrbrrwrrLrr) rrr#r$rr%rvrrLs r3get_command_listzDistribution.get_command_lists ! ((00 \")-););)=S#FAR#SS .0 *CMM%%c*E..s3 ;#//  IIsK( ) * T" ;:  ;s B. B. B33 CCc|j}t|tsS|d}|jdDcgc]}|dk7s |j }}d|vr|j dd||_|Scc}w)z9Return a list of packages from which commands are loaded.rXrzdistutils.commandr)rcr'r)rrinsert)rpkgspkgs r3get_command_packagesz!Distribution.get_command_packages,sr$$$%|+/::c?HCcRiCIIKHDH"$. A23$(D ! Is A2A2c x|jj|}|r|S|jD]I}|d|}|} t|tj |} t||}||j|<|cStd|d#t $rYfwxYw#t$rtd|d|d|dwxYw)aoReturn the class that implements the Distutils command named by 'command'. First we check the 'cmdclass' dictionary; if the command is mentioned there, we fetch the class object from the dictionary and return it. Otherwise we load the command module ("distutils.command." + command) and fetch the command class from the module. The loaded class is also stored in 'cmdclass' to speed future calls to 'get_command_class()'. Raises DistutilsModuleError if the expected module could not be found, or if that module does not define the expected class. rzinvalid command 'z ' (no class 'z ' in module 'z')r) rbrwr- __import__rr ImportErrorrarr)rrrpkgname module_name klass_namemodules r3rzDistribution.get_command_class8s !!'* L002 G$IQwi0K J ;'[1  3 &+DMM' "L% (#%6wiq#ABB   " *'y j\WbVccef sB  B BBB9cyNr&rrcreates r3get_command_objzDistribution.get_command_obj^r5cyr6r&r7s r3r9zDistribution.get_command_objbsr5boolcF|jj|}|s|rtr|jd|d|j |}||x}|j|<d|j |<|j j|}|r|j|||S)aReturn the command object for 'command'. Normally this object is cached on a previous call to 'get_command_obj()'; if no command object for 'command' is in the cache, then we either create and return it (if 'create' is true) or return None. z*Distribution.get_command_obj(): creating 'z' command objectF)rurwrrrrvrf_set_command_options)rrr8cmd_objrrYs r3r9zDistribution.get_command_objfs ""&&w/6 !!( )9; **73E27+ =Gd&&w/%*DMM' "**..w7G))'7;r5c |j}||j|}tr|jd|d|j D]\}\}}tr|jd|d|d|d |j Dcgc] }t |}} |j} t|t} || vr| rt|| |t| nL||vr| rt||t|n/t||rt|||ntd|d |d |d ycc}w#t$rg}YwxYw#t$ri} YwxYw#t$r} t| d} ~ wwxYw) aySet 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'). Nz setting options for 'rz z = z (from )z error in z : command 'z' has no such option 'r)get_command_nameryrrrxboolean_optionsrrrUr'r(r]rr|rr) rru option_dict command_namersourcer/o bool_optsneg_opt is_stringr2s r3r>z!Distribution._set_command_optionss#335  ..|L M'2'8'8': 0 #FOVU VHCwgfXQGH ;F;V;VWa.q1W W %22 0&uc2 W$Ki>N:NOy(YK51AB[&1K7.#F8;|nDZ[aZbbcd+ 0X!   "   0*3// 0sO:D/D*D/ E*A=E*D// D=<D= E E E* E%%E*cyr6r&rrreinit_subcommandss r3reinitialize_commandz!Distribution.reinitialize_commandr:r5cyr6r&rLs r3rNz!Distribution.reinitialize_commandsr5cNddlm}t||s|}|j|}n|j }|j s|S|j d|_d|j|<|j||r'|jD]}|j|||S)aReinitializes a command to the state it was in when first returned by 'get_command_obj()': ie., initialized but not yet finalized. This provides the opportunity to sneak option values in programmatically, overriding or supplementing user-supplied values from the config files and command line. You'll have to re-finalize the command object (by calling 'finalize_options()' or 'ensure_finalized()') before using it for real. 'command' should be a command name (string) or command object. If 'reinit_subcommands' is true, also reinitializes the command's sub-commands, as declared by the 'sub_commands' class attribute (if it has one). See the "install" command for an example. Only reinitializes the sub-commands that actually matter, ie. those whose test predicates return true. Returns the reinitialized command object. rr F) rr!r'r9rB finalizedinitialize_optionsrvr>get_sub_commandsrN)rrrMr!rEsubs r3rNz!Distribution.reinitialize_commands* *'7+"L**<8G"335L  N""$!&+ l# !!'* //1 C))#/AB Cr5c0tj||yr6r)rr2levels r3rzDistribution.announces sr5cH|jD]}|j|y)zRun each command that was seen on the setup script command line. Uses the list of commands found and cache of command objects created by 'get_command_obj()'. N)r run_command)rrs r3 run_commandszDistribution.run_commandss% == "C   S ! "r5c|jj|rytjd||j |}|j |j d|j|<y)aDo whatever it takes to run a command (including nothing at all, if the command has already been run). Specifically: if we have already created and run the command named by 'command', return silently without doing anything. If the command named by 'command' doesn't even have a command object yet, create one. Then invoke 'run()' on that command object (or an existing one). Nz running %sT)rvrwrinfor9ensure_finalizedrun)rrr?s r3rXzDistribution.run_commandsZ ==  W %  w'&&w/  " !% gr5cVt|jxs|jxsgdkDSNr)rrhrkrs r3has_pure_moduleszDistribution.has_pure_moduless$4==9DOO9r:Q>>r5cN|jxrt|jdkDSr_)rnrrs r3has_ext_moduleszDistribution.has_ext_moduless#=C(8(8$9A$==r5cN|jxrt|jdkDSr_)rlrrs r3has_c_librarieszDistribution.has_c_librariess~~9#dnn"5"99r5cF|jxs|jSr6)r`rbrs r3 has_moduleszDistribution.has_modules s$$&@$*>*>*@@r5cN|jxrt|jdkDSr_)rmrrs r3 has_headerszDistribution.has_headers||5DLL 1A 55r5cN|jxrt|jdkDSr_)rrrrs r3 has_scriptszDistribution.has_scriptsrir5cN|jxrt|jdkDSr_)rsrrs r3has_data_fileszDistribution.has_data_filess;3t#7!#;;r5cn|jxr$|j xr|j Sr6)r`rbrdrs r3is_purezDistribution.is_pures;  ! ! # +((** +((** r5cr|jj|_|jj|_|jj|_|jj|_|jj |_|jj |_|jj|_|jj|_|jj|_ |jj|_ |jj|_ |jj|_ |jj|_ |jj|_|jj|_|jj |_|jj"|_|jj$|_|jj&|_|jj(|_|jj*|_yr6)r_get_name get_version get_fullname get_authorget_author_emailget_maintainerget_maintainer_email get_contactget_contact_emailget_url get_license get_licenceget_descriptionget_long_description get_keywords get_platformsget_classifiersget_download_url get_requires get_provides get_obsoletesrs r3rzDistribution._&sy MM22DM#}}88D  $ : :D "mm66DO$(MM$B$BD !"&--">">D (, (J(JD %#}}88D %)]]%D%DD "==00DL#}}88D #}}88D #'==#@#@D (, (J(JD % $ : :D !%!rNrINFOrrYrXr`rbrdrfrhrkrmrorr).0xrs000r3r7r7Ms *.N*#L-/O+8*911$%!A$1- /6y-AL*A [ z 84.?&@4HAF  `D 4WY1+KS1+f%#N;"R2< $CL48$1 $2 :(0T7<04 =B 6: :?($( (X*1"&(?>:A66<  =0""%%&&$$**((..%%++ !!%%%%))..335522,,,,--]i1sF r7c*eZdZdZdZ d$ d%dZd&dZd'dZd(dZdZ d)d Z d)d Z d)d Z e d*d Zd+d Zd+dZd+dZd+dZd+dZd+dZd+dZd+dZeZd+dZd+dZd,dZd-dZd.dZd-dZd,dZd-dZd+dZ d,dZ!d/dZ"d,d Z#d/d!Z$d,d"Z%d/d#Z&y)0r^z]Dummy class to hold the distribution meta-data: name, version, author, and so forth. )rArBrErrGrrIrJrLrrOrMrDrHrrN download_urlrPrQrRNc,||jt|yd|_d|_d|_d|_d|_d|_d|_d|_ d|_ d|_ d|_ d|_ d|_d|_d|_d|_d|_yr6) read_pkg_fileopenrArBrErrGrrIrJrLrrOrMrNrrPrQrR)rrs r3rzDistributionMetadata.__init__rs     tDz *$(DI'+DL&*DK,0D *.DO04D !#'DH'+DL+/D 04D !48DM59DN7;D ,0D 48DM48DM59DNr5clt|dfd }fd}d}|d|_|d|_|d|_|d|_d|_|d |_d|_|d |_|d |_ d vr|d |_ nd|_ |d |_ |d|_dvr|djd|_ |d|_|d|_|dk(r(|d|_|d|_|d|_yd|_d|_d|_y)z-Reads the metadata values from a file object.rAc"|}|r|dk7r|SyNUNKNOWNr&)rAr/r2s r3 _read_fieldz7DistributionMetadata.read_pkg_file.._read_fieldsIE)+ r5c8j|d}|gk(ry|Sr6)get_all)rAvaluesr2s r3 _read_listz6DistributionMetadata.read_pkg_file.._read_lists"[[t,F|Mr5zmetadata-versionrBsummaryrENrFz home-pagerJz download-urlrLrOrplatform classifier1.1rQrPrR)rAr(r str | None)rrArBrLrErGrrrIrJrrrrOrMrNrQrPrR)rfilerrmetadata_versionr2s @r3rz"DistributionMetadata.read_pkg_files<%    12' "9- &y1!(+ '7 ${+"9- S +N ;D  $D  +M :&y1  ' 399#>DM#J/%l3 u $&z2DM&z2DM' 4DN DM DM!DNr5cttjj|ddd5}|j |dddy#1swYyxYw)z.Write the PKG-INFO file into the release tree.zPKG-INFOwzUTF-8rN)rrrrwrite_pkg_file)rbase_dirpkg_infos r3write_pkg_infoz#DistributionMetadata.write_pkg_infosF  GGLL: .g  *     ) * * *s AAc0d}|js0|js$|js|js |jrd}j d|dj d|j dj d|jdfd}|d|j|d |j|d |j|d |j|d |j|d |j|dt|jxsd|ddj|j!|j#d|j%|j#d|j'|j#d|j)|j#d|j+|j#d|j-y)z0Write the PKG-INFO format data to a file object.z1.0rzMetadata-Version: rzName: z Version: c:|rj|d|dyyNz: rwrite)rrrs r3 maybe_writez8DistributionMetadata.write_pkg_file..maybe_writes$ fXRuB/0r5Summaryz Home-pageAuthorz Author-emailLicensez Download-URL DescriptionrXKeywordsrPlatform ClassifierRequiresProvides ObsoletesN)rPrQrRrNrrrqrrr}rzrxryr{rr~rr _write_listrrrrr)rrrBrs ` r3rz#DistributionMetadata.write_pkg_files MM}}~~  G 'y34 VDMMO,B/0 Yt//12"56 1 It3356K0Hd..01ND$:$:$<=It//12ND$5$56M=1J1J1L1RPR#STJ):):)< => z4+=+=+?@ |T-A-A-CD z4+<+<+>? z4+<+<+>? {D,>,>,@Ar5cL|xsg}|D]}|j|d|dyrr)rrrArr/s r3rz DistributionMetadata._write_lists32 -E JJ$r%+ , -r5c"|jxsdSr)rArs r3rqzDistributionMetadata.get_namesyy%I%r5c"|jxsdS)Nz0.0.0)rBrs r3rrz DistributionMetadata.get_versions||&w&r5c^|j|j|jSr6) _fullnamerqrrrs r3rsz!DistributionMetadata.get_fullnames"~~dmmot/?/?/ABBr5cndjt|jddt|dS)a  >>> DistributionMetadata._fullname('setup.tools', '1.0-2') 'setup_tools-1.0.post2' >>> DistributionMetadata._fullname('setup-tools', '1.2post2') 'setup_tools-1.2.post2' >>> DistributionMetadata._fullname('setup-tools', '1.0-r2') 'setup_tools-1.0.post2' >>> DistributionMetadata._fullname('setup.tools', '1.0.post') 'setup_tools-1.0.post0' >>> DistributionMetadata._fullname('setup.tools', '1.0+ubuntu-1') 'setup_tools-1.0+ubuntu.1' z{}-{}r[rF)strip_trailing_zero)r,rrr)rArBs r3rzDistributionMetadata._fullnames4~~ d # + +C 5 e D  r5c|jSr6)rErs r3rtzDistributionMetadata.get_authors {{r5c|jSr6)rrs r3ruz%DistributionMetadata.get_author_email   r5c|jSr6)rGrs r3rvz#DistributionMetadata.get_maintainers r5c|jSr6)rrs r3rwz)DistributionMetadata.get_maintainer_email$$$r5c6|jxs |jSr6)rGrErs r3rxz DistributionMetadata.get_contacts-$++-r5c6|jxs |jSr6)rrrs r3ryz&DistributionMetadata.get_contact_emails$$9(9(99r5c|jSr6)rIrs r3rzzDistributionMetadata.get_url"s xxr5c|jSr6)rJrs r3r{z DistributionMetadata.get_license%s ||r5c|jSr6)rLrs r3r}z$DistributionMetadata.get_description*sr5c|jSr6)rrs r3r~z)DistributionMetadata.get_long_description-rr5c"|jxsgSr6)rOrs r3rz!DistributionMetadata.get_keywords0}}""r5c&t|d|_y)NrO)r4rOrr/s r3 set_keywordsz!DistributionMetadata.set_keywords3s$UJ7 r5c|jSr6)rMrs r3rz"DistributionMetadata.get_platforms6s ~~r5c&t|d|_y)NrM)r4rMrs r3 set_platformsz"DistributionMetadata.set_platforms9s%e[9r5c"|jxsgSr6)rNrs r3rz$DistributionMetadata.get_classifiers<s%2%r5c&t|d|_y)NrN)r4rNrs r3set_classifiersz$DistributionMetadata.set_classifiers?s'}=r5c|jSr6)rrs r3rz%DistributionMetadata.get_download_urlBrr5c"|jxsgSr6)rQrs r3rz!DistributionMetadata.get_requiresFrr5cpddl}|D]}|jj|t||_yr_)distutils.versionpredicateversionpredicateVersionPredicater)rQrr/rr9s r3 set_requiresz!DistributionMetadata.set_requiresIs3) ;A  & & 7 7 : ;U  r5c"|jxsgSr6)rPrs r3rz!DistributionMetadata.get_providesPrr5c|Dcgc]}|j}}|D]!}ddl}|jj|#||_ycc}wr_)rrrsplit_provisionrP)rr/r9rs r3 set_providesz!DistributionMetadata.set_providesSsO$)*q** :A -  & & 6 6q 9 : +sA c"|jxsgSr6)rRrs r3rz"DistributionMetadata.get_obsoletes[s~~##r5cpddl}|D]}|jj|t||_yr_)rrrr)rRrs r3 set_obsoletesz"DistributionMetadata.set_obsoletes^s3) ;A  & & 7 7 : ;er5r6)rz:str | bytes | os.PathLike[str] | os.PathLike[bytes] | Nonerr)rzIO[str]rr)rzstr | os.PathLike[str]rr)rzSupportsWrite[str]rr)rr()rAr(rBr(rr()rr)rstr | list[str])r/str | Iterable[str]rr)rzstr | list[str] | None)r/z Iterable[str]rr)'r+rrrr`rrrrrrqrrrs staticmethodrrtrurvrwrxryrzr{r|r}r~rrrrrrrrrrrrrr&r5r3r^r^Us2RV:N: :22"h*%BN-&'C  $!%.:K %#8:&>!#$#$%r5r^c2|Dcgc]}|dd c}Scc}w)zConvert a 4-tuple 'help_options' list as found in various command classes to the 3-tuple form required by FancyGetopt. rr&)rYrs r3rrfs!( (C!H (( (s )r/rrr)>r __future__rrrrrrerrzcollections.abcrremailrtypingrrr r r r r rpackaging.utilsrr_logrdebugrerrorsrrrr fancy_getoptrrutilrrr _typeshedrtyping_extensionsrrr!r"r)tupler(rr$rcompilerr4r7r^rr&r5r3rs #  4#   D 999'+ Ky 1  %U39%sC/ 0%U39=Ms8R2S ST iRZZ4 5  E.E.P N%N%b)r5