/usr/lib/python3.9/site-packages/setuptools/__pycache__
NameSizeModeActions
archive_util.cpython-39.opt-1.pyc57800644editdlrm
archive_util.cpython-39.pyc57800644editdlrm
build_meta.cpython-39.opt-1.pyc88670644editdlrm
build_meta.cpython-39.pyc88850644editdlrm
config.cpython-39.opt-1.pyc192290644editdlrm
config.cpython-39.pyc192290644editdlrm
depends.cpython-39.opt-1.pyc52150644editdlrm
depends.cpython-39.pyc52150644editdlrm
dep_util.cpython-39.opt-1.pyc8230644editdlrm
dep_util.cpython-39.pyc8230644editdlrm
dist.cpython-39.opt-1.pyc337520644editdlrm
dist.cpython-39.pyc338330644editdlrm
errors.cpython-39.opt-1.pyc8160644editdlrm
errors.cpython-39.pyc8160644editdlrm
extension.cpython-39.opt-1.pyc19100644editdlrm
extension.cpython-39.pyc19100644editdlrm
glob.cpython-39.opt-1.pyc36310644editdlrm
glob.cpython-39.pyc36600644editdlrm
installer.cpython-39.opt-1.pyc27040644editdlrm
installer.cpython-39.pyc27370644editdlrm
launch.cpython-39.opt-1.pyc8670644editdlrm
launch.cpython-39.pyc8670644editdlrm
lib2to3_ex.cpython-39.opt-1.pyc26690644editdlrm
lib2to3_ex.cpython-39.pyc26690644editdlrm
monkey.cpython-39.opt-1.pyc45790644editdlrm
monkey.cpython-39.pyc45790644editdlrm
msvc.cpython-39.opt-1.pyc432360644editdlrm
msvc.cpython-39.pyc432360644editdlrm
namespaces.cpython-39.opt-1.pyc35660644editdlrm
namespaces.cpython-39.pyc35660644editdlrm
package_index.cpython-39.opt-1.pyc331120644editdlrm
package_index.cpython-39.pyc331120644editdlrm
py34compat.cpython-39.opt-1.pyc4460644editdlrm
py34compat.cpython-39.pyc4460644editdlrm
sandbox.cpython-39.opt-1.pyc157400644editdlrm
sandbox.cpython-39.pyc157400644editdlrm
ssl_support.cpython-39.opt-1.pyc68270644editdlrm
ssl_support.cpython-39.pyc68270644editdlrm
unicode_utils.cpython-39.opt-1.pyc10800644editdlrm
unicode_utils.cpython-39.pyc10800644editdlrm
version.cpython-39.opt-1.pyc2900644editdlrm
version.cpython-39.pyc2900644editdlrm
wheel.cpython-39.opt-1.pyc72360644editdlrm
wheel.cpython-39.pyc72460644editdlrm
windows_support.cpython-39.opt-1.pyc9890644editdlrm
windows_support.cpython-39.pyc9890644editdlrm
_deprecation_warning.cpython-39.opt-1.pyc5160644editdlrm
_deprecation_warning.cpython-39.pyc5160644editdlrm
_imp.cpython-39.opt-1.pyc20510644editdlrm
_imp.cpython-39.pyc20510644editdlrm
__init__.cpython-39.opt-1.pyc85900644editdlrm
__init__.cpython-39.pyc85900644editdlrm
Edit: /usr/lib/python3.9/site-packages/setuptools/__pycache__/config.cpython-39.pyc (19229B)
a ˆåÏhðTã@sddlZddlZddlZddlZddlZddlZddlZddlmZddlm Z ddlm Z ddl Z ddl m Z mZddlmZmZddlmZGdd „d ƒZe jd d „ƒZdd d„Zdd„Zdd„Zddd„ZGdd„dƒZGdd„deƒZGdd„deƒZdS)éN)Ú defaultdict)Úpartial©Úwraps)ÚDistutilsOptionErrorÚDistutilsFileError)Ú LegacyVersionÚparse)Ú SpecifierSetc@s eZdZdZdd„Zdd„ZdS)Ú StaticModulez0 Attempt to load the module by the name cCs`tj |¡}t|jƒ�}| ¡}Wdƒn1s40Yt |¡}t|ƒ  t ƒ¡|` dS©N) Ú importlibÚutilÚ find_specÚopenÚoriginÚreadÚastr ÚvarsÚupdateÚlocalsÚself)rÚnameÚspecZstrmÚsrcÚmodule©rú5/usr/lib/python3.9/site-packages/setuptools/config.pyÚ__init__s   & zStaticModule.__init__c s^zt‡fdd„|jjDƒƒWStyX}z$tdjfitƒ¤Žƒ|‚WYd}~n d}~00dS)Nc3sH|]@}t|tjƒr|jD](}t|tjƒr|jˆkrt |j¡VqqdSr )Ú isinstancerZAssignÚtargetsÚNameÚidZ literal_evalÚvalue)Ú.0Z statementÚtarget©ÚattrrrÚ !s   üz+StaticModule.__getattr__..z#{self.name} has no attribute {attr})ÚnextrÚbodyÚ ExceptionÚAttributeErrorÚformatr)rr'Úerr&rÚ __getattr__s þ ÿþzStaticModule.__getattr__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr/rrrrr sr c cs8z$tj d|¡dVWtj |¡ntj |¡0dS)zH Add path to front of sys.path for the duration of the context. rN)ÚsysÚpathÚinsertÚremove)r5rrrÚ patch_path.sr8Fc Cs¸ddlm}m}tj |¡}tj |¡s4td|ƒ‚t ¡}t  tj  |¡¡zT|ƒ}|rb|  ¡ng}||vrx|  |¡|j ||d�t||j|d�}Wt  |¡n t  |¡0t|ƒS)a,Read given configuration file and returns options from it as a dict. :param str|unicode filepath: Path to configuration file to get options from. :param bool find_others: Whether to search for other configuration files which could be on in various places. :param bool ignore_option_errors: Whether to silently ignore options, values of which could not be resolved (e.g. due to exceptions in directives such as file:, attr:, etc.). If False exceptions are propagated as expected. :rtype: dict r)Ú DistributionÚ _Distributionz%Configuration file %s does not exist.)Ú filenames)Úignore_option_errors)Zsetuptools.distr9r:Úosr5ÚabspathÚisfilerÚgetcwdÚchdirÚdirnameZfind_config_filesÚappendZparse_config_filesÚparse_configurationÚcommand_optionsÚconfiguration_to_dict) ÚfilepathZ find_othersr<r9r:Zcurrent_directoryZdistr;ÚhandlersrrrÚread_configuration:s(  ÿ þrIcCs2djfitƒ¤Ž}t t||¡}t|||ƒ}|ƒS)z  Given a target object and option key, get that option from the target object, either through a get_{key} method or from an attribute directly. z get_{key})r-rÚ functoolsrÚgetattr)Ú target_objÚkeyZ getter_nameZ by_attributeÚgetterrrrÚ _get_optionis rOcCs<ttƒ}|D]*}|jD]}t|j|ƒ}|||j|<qq |S)z»Returns configuration data gathered by given handlers as a dict. :param list[ConfigHandler] handlers: Handlers list, usually from parse_configuration() :rtype: dict )rÚdictÚ set_optionsrOrLÚsection_prefix)rHZ config_dictZhandlerÚoptionr#rrrrFus   rFcCs6t|||ƒ}| ¡t|j|||jƒ}| ¡||fS)aÒPerforms additional parsing of configuration options for a distribution. Returns a list of used option handlers. :param Distribution distribution: :param dict command_options: :param bool ignore_option_errors: Whether to silently ignore options, values of which could not be resolved (e.g. due to exceptions in directives such as file:, attr:, etc.). If False exceptions are propagated as expected. :rtype: list )ÚConfigOptionsHandlerr ÚConfigMetadataHandlerÚmetadataÚ package_dir)Z distributionrEr<ÚoptionsÚmetarrrrD‡sÿþrDc@sÌeZdZdZdZiZd%dd„Zedd„ƒZdd „Z e d&d d „ƒZ e d d„ƒZ e dd„ƒZ e dd„ƒZe dd„ƒZedd„ƒZedd„ƒZe d'dd„ƒZe dd„ƒZe d(dd„ƒZdd „Zd!d"„Zd#d$„ZdS))Ú ConfigHandlerz1Handles metadata supplied in configuration files.NFcCs^i}|j}| ¡D].\}}| |¡s&q| |d¡ d¡}|||<q||_||_||_g|_dS)NÚÚ.) rRÚitemsÚ startswithÚreplaceÚstripr<rLÚsectionsrQ)rrLrXr<rarRÚ section_nameÚsection_optionsrrrr²s  zConfigHandler.__init__cCstd|jjƒ‚dS)ú.Metadata item name to parser function mapping.z!%s must provide .parsers propertyN)ÚNotImplementedErrorÚ __class__r0)rrrrÚparsersÂs ÿzConfigHandler.parsersc CsÄtƒ}|j}|j ||¡}t|||ƒ}||ur6t|ƒ‚|r>dSd}|j |¡}|r~z ||ƒ}Wnty|d}|jsx‚Yn0|r†dSt|d|dƒ}|dur¬t |||ƒn||ƒ|j   |¡dS)NFTzset_%s) ÚtuplerLÚaliasesÚgetrKÚKeyErrorrgr+r<ÚsetattrrQrC) rZ option_namer#ÚunknownrLZ current_valueZ skip_optionÚparserÚsetterrrrÚ __setitem__Ès0    zConfigHandler.__setitem__ú,cCs8t|tƒr|Sd|vr | ¡}n | |¡}dd„|DƒS)z×Represents value as a list. Value is split either by separator (defaults to comma) or by lines. :param value: :param separator: List items separator character. :rtype: list Ú cSsg|]}| ¡r| ¡‘qSr)r`)r$ÚchunkrrrÚ óz-ConfigHandler._parse_list..)rÚlistÚ splitlinesÚsplit)Úclsr#Ú separatorrrrÚ _parse_listîs   zConfigHandler._parse_listcCsPd}i}| |¡D]8}| |¡\}}}||kr:td|ƒ‚| ¡|| ¡<q|S)zPRepresents value as a dict. :param value: :rtype: dict ú=z(Unable to parse option value to dict: %s)r{Ú partitionrr`)ryr#rzÚresultÚlinerMÚsepÚvalrrrÚ _parse_dictsÿzConfigHandler._parse_dictcCs| ¡}|dvS)zQRepresents value as boolean. :param value: :rtype: bool )Ú1ÚtrueZyes)Úlower)ryr#rrrÚ _parse_boolszConfigHandler._parse_boolcs‡fdd„}|S)zßReturns a parser function to make sure field inputs are not files. Parses a value after getting the key so error messages are more informative. :param key: :rtype: callable cs d}| |¡rtd ˆ¡ƒ‚|S)Núfile:zCOnly strings are accepted for the {0} field, files are not accepted)r^Ú ValueErrorr-)r#Zexclude_directive©rMrrrn)s ÿÿz3ConfigHandler._exclude_files_parser..parserr)ryrMrnrr‰rÚ_exclude_files_parsers z#ConfigHandler._exclude_files_parsercs\d}t|tƒs|S| |¡s |S|t|ƒd…}dd„| d¡Dƒ}d ‡fdd„|Dƒ¡S)aORepresents value as a string, allowing including text from nearest files using `file:` directive. Directive is sandboxed and won't reach anything outside directory with setup.py. Examples: file: README.rst, CHANGELOG.md, src/file.txt :param str value: :rtype: str r‡Ncss|]}tj | ¡¡VqdSr )r=r5r>r`©r$r5rrrr(Iruz,ConfigHandler._parse_file..rqrrc3s.|]&}ˆ |¡stj |¡rˆ |¡VqdS)TN)Ú _assert_localr=r5r?Ú _read_filer‹©ryrrr(Js  ý)rÚstrr^ÚlenrxÚjoin)ryr#Zinclude_directiverZ filepathsrrŽrÚ _parse_file2s  þzConfigHandler._parse_filecCs| t ¡¡std|ƒ‚dS)Nz#`file:` directive can not access %s)r^r=r@r)rGrrrrŒQsÿzConfigHandler._assert_localcCs:tj|dd��}| ¡WdƒS1s,0YdS)Nzutf-8)Úencoding)Úiorr)rGÚfrrrr�WszConfigHandler._read_filec Cs4d}| |¡s|S| |d¡ ¡ d¡}| ¡}d |¡}|p@d}t ¡}|rÂ|d|vr¤||d}| dd¡} t | ƒdkržtj  t ¡| d¡}| d}qÂ|}nd|vrÂtj  t ¡|d¡}t |ƒ�Nzt t |ƒ|ƒWWdƒSt�yt |¡} Yn0Wdƒn1�s 0Yt | |ƒS) z·Represents value as a module attribute. Examples: attr: package.attr attr: package.module.attr :param str value: :rtype: str zattr:r[r\rrú/éN)r^r_r`rxÚpopr‘r=r@Úrsplitr�r5r8rKr r+r Ú import_module) ryr#rWZattr_directiveZ attrs_pathZ attr_nameZ module_nameÚ parent_pathZ custom_pathÚpartsrrrrÚ _parse_attr\s0         0zConfigHandler._parse_attrcs‡fdd„}|S)z¹Returns parser function to represents value as a list. Parses a value applying given methods one after another. :param parse_methods: :rtype: callable cs|}ˆD] }||ƒ}q|Sr r)r#ÚparsedÚmethod©Ú parse_methodsrrr “s z1ConfigHandler._get_parser_compound..parser)ryr¡r rr rÚ_get_parser_compoundŠs z"ConfigHandler._get_parser_compoundcCs6i}|pdd„}| ¡D]\}\}}||ƒ||<q|S)zÊParses section options into a dictionary. Optionally applies a given parser to values. :param dict section_options: :param callable values_parser: :rtype: dict cSs|Sr r)r�rrrÚ¨ruz6ConfigHandler._parse_section_to_dict..)r])ryrcZ values_parserr#rMÚ_r�rrrÚ_parse_section_to_dict�s  z$ConfigHandler._parse_section_to_dictc Cs:| ¡D],\}\}}z |||<Wqty2Yq0qdS)zQParses configuration file section. :param dict section_options: N)r]rk)rrcrr¤r#rrrÚ parse_section­s   zConfigHandler.parse_sectioncCsb|j ¡D]R\}}d}|r"d|}t|d| dd¡dƒ}|durTtd|j|fƒ‚||ƒq dS)zTParses configuration file items from one or more related sections. r[z_%szparse_section%sr\Ú__Nz0Unsupported distribution option section: [%s.%s])rar]rKr_rrR)rrbrcZmethod_postfixZsection_parser_methodrrrr ¹s üÿÿzConfigHandler.parsecstˆƒ‡‡‡fdd„ƒ}|S)zé this function will wrap around parameters that are deprecated :param msg: deprecation message :param warning_class: class of warning exception to be raised :param func: function to be wrapped around cst ˆˆ¡ˆ|i|¤ŽSr )ÚwarningsÚwarn)ÚargsÚkwargs©ÚfuncÚmsgÚ warning_classrrÚconfig_handlerØs z@ConfigHandler._deprecated_config_handler..config_handlerr)rr­r®r¯r°rr¬rÚ_deprecated_config_handlerÑsz(ConfigHandler._deprecated_config_handler)F)rq)N)N)r0r1r2r3rRrirÚpropertyrgrpÚ classmethodr{r‚r†rŠr’Ú staticmethodrŒr�r�r¢r¥r¦r r±rrrrrZ¢s<  &        -   rZcsHeZdZdZdddddœZdZd‡fd d „ Zed d „ƒZd d„Z ‡Z S)rUrVÚurlÚ descriptionÚ classifiersÚ platforms)Z home_pageZsummaryZ classifierÚplatformFNcstt|ƒ |||¡||_dSr )ÚsuperrUrrW)rrLrXr<rW©rfrrrñsÿzConfigMetadataHandler.__init__cCs^|j}|j}|j}|j}|||| |dt¡|| ||¡|dƒ| |dƒdt¡||||j|dœ S)rdz[The requires parameter is deprecated, please use install_requires for runtime dependencies.ÚlicenseÚ license_filezDThe license_file parameter is deprecated, use license_files instead.) r¸ÚkeywordsZprovidesZrequiresZ obsoletesr·r¼r½Z license_filesr¶Zlong_descriptionÚversionZ project_urls)r{r’r‚rŠr±ÚDeprecationWarningr¢Ú_parse_version)rÚ parse_listZ parse_fileÚ parse_dictZexclude_files_parserrrrrg÷s4ü üëzConfigMetadataHandler.parserscCs”| |¡}||krF| ¡}tt|ƒtƒrBd}t|jfitƒ¤Žƒ‚|S| ||j ¡}t |ƒrb|ƒ}t|t ƒs�t |dƒrˆd  tt |ƒ¡}nd|}|S)zSParses `version` option value. :param value: :rtype: str zCVersion loaded from {value} does not comply with PEP 440: {version}Ú__iter__r\z%s)r’r`rr rrr-rr�rWÚcallabler�Úhasattrr‘Úmap)rr#r¿ZtmplrrrrÁs  ÿ  z$ConfigMetadataHandler._parse_version)FN) r0r1r2rRriZ strict_moderr²rgrÁÚ __classcell__rrr»rrUàsüÿ rUc@s\eZdZdZedd„ƒZdd„Zdd„Zdd „Zd d „Z d d „Z dd„Z dd„Z dd„Z dS)rTrXcCsN|j}t|jdd�}|j}|j}|||||||||||||||j|j|tdœS)rdú;©rz)Zzip_safeZuse_2to3Zinclude_package_datarWZuse_2to3_fixersZuse_2to3_exclude_fixersZconvert_2to3_doctestsZscriptsZeager_resourcesZdependency_linksZnamespace_packagesZinstall_requiresZsetup_requiresZ tests_requireZpackagesÚ entry_pointsZ py_modulesZpython_requires)r{rr†r‚Ú_parse_packagesr’r )rrÂZparse_list_semicolonZ parse_boolrÃrrrrg?s.îzConfigOptionsHandler.parserscCsnddg}| ¡}||vr"| |¡S||dk}| |j di¡¡}|rTddlm}n ddlm}|fi|¤ŽS)zTParses `packages` option value. :param value: :rtype: list zfind:zfind_namespace:r—z packages.findr)Úfind_namespace_packages)Ú find_packages)r`r{Úparse_section_packages__findrarjZ setuptoolsrÍrÎ)rr#Zfind_directivesZ trimmed_valueZfindnsÚ find_kwargsrÎrrrrÌ\s   ÿ z$ConfigOptionsHandler._parse_packagescsR| ||j¡}gd¢‰t‡fdd„| ¡Dƒƒ}| d¡}|durN|d|d<|S)zœParses `packages.find` configuration file section. To be used in conjunction with _parse_packages(). :param dict section_options: )ÚwhereZincludeZexcludecs$g|]\}}|ˆvr|r||f‘qSrr©r$ÚkÚv©Z valid_keysrrrt‚ruzEConfigOptionsHandler.parse_section_packages__find..rÑNr)r¥r{rPr]rj)rrcZ section_datarÐrÑrrÕrrÏusÿÿ  z1ConfigOptionsHandler.parse_section_packages__findcCs| ||j¡}||d<dS)z`Parses `entry_points` configuration file section. :param dict section_options: rËN)r¥r{©rrcržrrrÚparse_section_entry_pointsŠsz/ConfigOptionsHandler.parse_section_entry_pointscCs.| ||j¡}| d¡}|r*||d<|d=|S)NÚ*r[)r¥r{rj)rrcržÚrootrrrÚ_parse_package_data’s  z(ConfigOptionsHandler._parse_package_datacCs| |¡|d<dS)z`Parses `package_data` configuration file section. :param dict section_options: Z package_dataN©rÚ©rrcrrrÚparse_section_package_dataœsz/ConfigOptionsHandler.parse_section_package_datacCs| |¡|d<dS)zhParses `exclude_package_data` configuration file section. :param dict section_options: Zexclude_package_dataNrÛrÜrrrÚ"parse_section_exclude_package_data£sÿz7ConfigOptionsHandler.parse_section_exclude_package_datacCs"t|jdd�}| ||¡|d<dS)zbParses `extras_require` configuration file section. :param dict section_options: rÉrÊZextras_requireN)rr{r¥)rrcrÂrrrÚparse_section_extras_require«sÿz1ConfigOptionsHandler.parse_section_extras_requirecCs(| ||j¡}dd„| ¡Dƒ|d<dS)z^Parses `data_files` configuration file section. :param dict section_options: cSsg|]\}}||f‘qSrrrÒrrrrtºruzAConfigOptionsHandler.parse_section_data_files..Z data_filesN)r¥r{r]rÖrrrÚparse_section_data_files´sz-ConfigOptionsHandler.parse_section_data_filesN)r0r1r2rRr²rgrÌrÏr×rÚrÝrÞrßràrrrrrT;s   rT)FF)F)rr”r=r4r¨rJr Ú collectionsrrrÚ contextlibZdistutils.errorsrrZ#setuptools.extern.packaging.versionrr Z&setuptools.extern.packaging.specifiersr r Úcontextmanagerr8rIrOrFrDrZrUrTrrrrÚs6     ÿ / ÿ @[