/opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__
NameSizeModeActions
archive_util.cpython-37.opt-1.pyc56760644editdlrm
archive_util.cpython-37.pyc56760644editdlrm
build_meta.cpython-37.opt-1.pyc88280644editdlrm
build_meta.cpython-37.pyc88620644editdlrm
config.cpython-37.opt-1.pyc205920644editdlrm
config.cpython-37.pyc205920644editdlrm
depends.cpython-37.opt-1.pyc51250644editdlrm
depends.cpython-37.pyc51250644editdlrm
dep_util.cpython-37.opt-1.pyc8300644editdlrm
dep_util.cpython-37.pyc8300644editdlrm
dist.cpython-37.opt-1.pyc363370644editdlrm
dist.cpython-37.pyc364180644editdlrm
errors.cpython-37.opt-1.pyc8210644editdlrm
errors.cpython-37.pyc8210644editdlrm
extension.cpython-37.opt-1.pyc18930644editdlrm
extension.cpython-37.pyc18930644editdlrm
glob.cpython-37.opt-1.pyc36020644editdlrm
glob.cpython-37.pyc36520644editdlrm
installer.cpython-37.opt-1.pyc26710644editdlrm
installer.cpython-37.pyc27200644editdlrm
launch.cpython-37.opt-1.pyc8500644editdlrm
launch.cpython-37.pyc8500644editdlrm
monkey.cpython-37.opt-1.pyc45480644editdlrm
monkey.cpython-37.pyc45480644editdlrm
msvc.cpython-37.opt-1.pyc426220644editdlrm
msvc.cpython-37.pyc426220644editdlrm
namespaces.cpython-37.opt-1.pyc35150644editdlrm
namespaces.cpython-37.pyc35150644editdlrm
package_index.cpython-37.opt-1.pyc321880644editdlrm
package_index.cpython-37.pyc321880644editdlrm
py34compat.cpython-37.opt-1.pyc4550644editdlrm
py34compat.cpython-37.pyc4550644editdlrm
sandbox.cpython-37.opt-1.pyc153920644editdlrm
sandbox.cpython-37.pyc153920644editdlrm
unicode_utils.cpython-37.opt-1.pyc10770644editdlrm
unicode_utils.cpython-37.pyc10770644editdlrm
version.cpython-37.opt-1.pyc3010644editdlrm
version.cpython-37.pyc3010644editdlrm
wheel.cpython-37.opt-1.pyc70670644editdlrm
wheel.cpython-37.pyc70930644editdlrm
windows_support.cpython-37.opt-1.pyc9840644editdlrm
windows_support.cpython-37.pyc9840644editdlrm
_deprecation_warning.cpython-37.opt-1.pyc5210644editdlrm
_deprecation_warning.cpython-37.pyc5210644editdlrm
_imp.cpython-37.opt-1.pyc20590644editdlrm
_imp.cpython-37.pyc20590644editdlrm
__init__.cpython-37.opt-1.pyc85930644editdlrm
__init__.cpython-37.pyc85930644editdlrm
Edit: /opt/alt/python37/lib/python3.7/site-packages/setuptools/__pycache__/config.cpython-37.pyc (20592B)
B ~ReSZ@sddlZddlZddlZddlZddlZddlZddlZddlmZddlm Z ddlm Z ddl m Z ddl Z ddlmZmZddlmZmZddlmZGd d d Ze jd d ZdddZddZddZdddZGdddZGdddeZGdddeZdS)N) defaultdict)partial)wraps)iglob)DistutilsOptionErrorDistutilsFileError) LegacyVersionparse) SpecifierSetc@s eZdZdZddZddZdS) StaticModulez0 Attempt to load the module by the name c CsLtj|}t|j}|}WdQRXt|}t| t |` dS)N) importlibutil find_specopenoriginreadastr varsupdatelocalsself)rnamespecZstrmsrcmodulerB/opt/alt/python37/lib/python3.7/site-packages/setuptools/config.py__init__s    zStaticModule.__init__c sVytfdd|jjDStk rP}ztdjft|Wdd}~XYnXdS)Nc3sH|]@}t|tjr|jD](}t|tjr|jkrt|jVqqdS)N) isinstancerZAssignZtargetsNameidZ literal_evalvalue).0Z statementtarget)attrrr $s  z+StaticModule.__getattr__..z#{self.name} has no attribute {attr})nextrZbody ExceptionAttributeErrorformatr)rr$er)r$r __getattr__!s zStaticModule.__getattr__N)__name__ __module__ __qualname____doc__rr+rrrrr sr c cs,ztjd|dVWdtj|XdS)zH Add path to front of sys.path for the duration of the context. rN)syspathinsertremove)r1rrr patch_path0s r4Fc Csddlm}m}tj|}tj|s4td|t}t tj |zJ|}|rb| ng}||krx| ||j ||dt||j|d}Wdt |Xt|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_errorsN)Zsetuptools.distr5r6osr1abspathisfilergetcwdchdirdirnameZfind_config_filesappendZparse_config_filesparse_configurationcommand_optionsconfiguration_to_dict) filepathZ find_othersr8r5r6Zcurrent_directoryZdistr7handlersrrrread_configuration<s      rEcCs.djft}tt||}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 functoolsrgetattr) target_objkeyZ getter_nameZ by_attributegetterrrr _get_optionis rKcCsDtt}x6|D].}x(|jD]}t|j|}|||j|<qWqW|S)zReturns configuration data gathered by given handlers as a dict. :param list[ConfigHandler] handlers: Handlers list, usually from parse_configuration() :rtype: dict )rdict set_optionsrKrHsection_prefix)rDZ config_dictZhandlerZoptionr!rrrrBus    rBcCs6t|||}|t|j|||j}|||fS)aPerforms 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 ConfigMetadataHandlermetadata package_dir)Z distributionrAr8optionsmetarrrr@s r@c@seZdZdZdZiZd'ddZeddZdd Z e d(d d Z e d)d dZ e ddZ e ddZe ddZe ddZeddZeddZe d*ddZe ddZe d+dd Zd!d"Zd#d$Zd%d&ZdS), ConfigHandlerz1Handles metadata supplied in configuration files.NFcCsbi}|j}x:|D].\}}||s(q||dd}|||<qW||_||_||_g|_dS)N.) rNitems startswithreplacestripr8rHsectionsrM)rrHrSr8r\rN section_namesection_optionsrrrrs  zConfigHandler.__init__cCstd|jjdS)z.Metadata item name to parser function mapping.z!%s must provide .parsers propertyN)NotImplementedError __class__r,)rrrrparsersszConfigHandler.parsersc Cst}|j}|j||}t|||}||kr6t||r>dSd}|j|}|ry ||}Wn tk r~d}|jszYnX|rdSt|d|d}|dkrt |||n|||j |dS)NFTzset_%s) tuplerHaliasesgetrGKeyErrorrar'r8setattrrMr?) rZ option_namer!unknownrHZ current_valueZ skip_optionparsersetterrrr __setitem__s0   zConfigHandler.__setitem__,cCs8t|tr|Sd|kr |}n ||}dd|DS)zRepresents 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 sz-ConfigHandler._parse_list..)rlist splitlinessplit)clsr! separatorrrr _parse_lists   zConfigHandler._parse_listc snd}|j|d}g}xR|D]Jtfdd|Dr\|tddttjDq|qW|S)aEquivalent to _parse_list() but expands any glob patterns using glob(). However, unlike with glob() calls, the results remain relative paths. :param value: :param separator: List items separator character. :rtype: list )*?[]{})rsc3s|]}|kVqdS)Nr)r"char)r!rrr%sz1ConfigHandler._parse_list_glob..css |]}tj|tVqdS)N)r9r1relpathr<)r"r1rrrr%s) rtanyextendsortedrr9r1r:r?)rrr!rsZglob_charactersvaluesZexpanded_valuesr)r!r_parse_list_globs  zConfigHandler._parse_list_globcCsTd}i}xF||D]8}||\}}}||kr.parserr)rrrIrhr)rIr_exclude_files_parser=s z#ConfigHandler._exclude_files_parsercs\d}t|ts|S||s |S|t|d}dd|dD}dfdd|DS)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 zfile:Ncss|]}tj|VqdS)N)r9r1r:r[)r"r1rrrr%ksz,ConfigHandler._parse_file..rkrlc3s.|]&}|stj|r|VqdS)TN) _assert_localr9r1r; _read_file)r"r1)rrrrr%ms)rstrrYlenrqjoin)rrr!Zinclude_directiverZ filepathsr)rrr _parse_fileTs   zConfigHandler._parse_filecCs|tstd|dS)Nz#`file:` directive can not access %s)rYr9r<r)rCrrrrrszConfigHandler._assert_localc Cs"tj|dd }|SQRXdS)Nzutf-8)encoding)iorr)rCfrrrrwszConfigHandler._read_filec Csd}||s|S||dd}|}d|}|p@d}t}|r|d|kr||d}|dd} t | dkrtj t| d}| d}q|}nd|krtj t|d}t |4yt t ||Stk rt|} YnXWdQRXt | |S) zRepresents value as a module attribute. Examples: attr: package.attr attr: package.module.attr :param str value: :rtype: str zattr:rVrWrr/N)rYrZr[rqpoprr9r<rsplitrr1r4rGr r'r import_module) rrr!rRZattr_directiveZ attrs_pathZ attr_nameZ module_name parent_pathZ custom_pathpartsrrrr _parse_attr|s0         zConfigHandler._parse_attrcsfdd}|S)zReturns parser function to represents value as a list. Parses a value applying given methods one after another. :param parse_methods: :rtype: callable cs|}xD] }||}q W|S)Nr)r!parsedmethod) parse_methodsrrr s  z1ConfigHandler._get_parser_compound..parser)rrrr r)rr_get_parser_compounds z"ConfigHandler._get_parser_compoundcCs:i}|pdd}x$|D]\}\}}||||<qW|S)zParses section options into a dictionary. Optionally applies a given parser to values. :param dict section_options: :param callable values_parser: :rtype: dict cSs|S)Nr)rrrrz6ConfigHandler._parse_section_to_dict..)rX)rrr^Z values_parserr!rI_rrrr_parse_section_to_dicts  z$ConfigHandler._parse_section_to_dictc Cs@x:|D].\}\}}y |||<Wq tk r6Yq Xq WdS)zQParses configuration file section. :param dict section_options: N)rXre)rr^rrr!rrr parse_sections  zConfigHandler.parse_sectioncCsfx`|jD]R\}}d}|r$d|}t|d|ddd}|dkrVtd|j|f||q WdS)zTParses configuration file items from one or more related sections. rVz_%szparse_section%srW__Nz0Unsupported distribution option section: [%s.%s])r\rXrGrZrrN)rr]r^Zmethod_postfixZsection_parser_methodrrrr szConfigHandler.parsecstfdd}|S)zthis 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||S)N)warningswarn)argskwargs)funcmsg warning_classrrconfig_handlers z@ConfigHandler._deprecated_config_handler..config_handler)r)rrrrrr)rrrr_deprecated_config_handlersz(ConfigHandler._deprecated_config_handler)F)rk)rk)N)N)r,r-r.r/rNrcrpropertyrarj classmethodrtrrrrr staticmethodrrrrrrr rrrrrrUs0  &        -   rUcsHeZdZdZdddddZdZdfd d Zed d Zd dZ Z S)rPrQZurl description classifiers platforms)Z home_pageZsummaryZ classifierplatformFNcstt||||||_dS)N)superrPrrR)rrHrSr8rR)r`rrrs  zConfigMetadataHandler.__init__cCs^|j}|j}|j}|j}|||||dt|||||d||ddt||||j|d S)z.Metadata item name to parser function mapping.z[The requires parameter is deprecated, please use install_requires for runtime dependencies.license license_filezDThe license_file parameter is deprecated, use license_files instead.) rkeywordsZprovidesZrequiresZ obsoletesrrrZ license_filesrZlong_descriptionversionZ project_urls)rtrrrrDeprecationWarningr_parse_version)r parse_listZ parse_file parse_dictZexclude_files_parserrrrras. zConfigMetadataHandler.parserscCs||}||krB|}tt|tr>d}t|jft|S|||j }t |r^|}t|t st |drd tt |}nd|}|S)zSParses `version` option value. :param value: :rtype: str zCVersion loaded from {value} does not comply with PEP 440: {version}__iter__rWz%s)rr[rr rrr)rrrRcallablerhasattrrmap)rr!rZtmplrrrr?s   z$ConfigMetadataHandler._parse_version)FN) r,r-r.rNrcZ strict_moderrrar __classcell__rr)r`rrPs "rPc@sdeZdZdZeddZddZddZdd Zd d Z d d Z ddZ ddZ ddZ ddZdS)rOrScCsN|j}t|jdd}|j}|j}|j}|||||||||||j|j|t|dS)z.Metadata item name to parser function mapping.;)rs)Zzip_safeZinclude_package_datarRZscriptsZeager_resourcesZdependency_linksZnamespace_packagesZinstall_requiresZsetup_requiresZ tests_requireZpackages entry_pointsZ py_modulesZpython_requiresZcmdclass)rtrrr_parse_cmdclass_parse_packagesrr )rrZparse_list_semicolonZ parse_boolrZparse_cmdclassrrrrags(zConfigOptionsHandler.parserscs$ddfdd||DS)NcSs8|d}||dd}|d|}t|}t||S)NrWr)rfind __import__rG)Zqualified_class_nameidx class_nameZpkg_namerrrr resolve_classs   z;ConfigOptionsHandler._parse_cmdclass..resolve_classcsi|]\}}||qSrr)r"kv)rrr sz8ConfigOptionsHandler._parse_cmdclass..)rrX)rr!r)rrrs z$ConfigOptionsHandler._parse_cmdclasscCsjddg}|}||kr"||S||dk}||jdi}|rTddlm}n ddlm}|f|S)zTParses `packages` option value. :param value: :rtype: list zfind:zfind_namespace:rz packages.findr)find_namespace_packages) find_packages)r[rtparse_section_packages__findr\rdZ setuptoolsrr)rr!Zfind_directivesZ trimmed_valueZfindns find_kwargsrrrrrs   z$ConfigOptionsHandler._parse_packagescsT|||j}dddgtfdd|D}|d}|dk rP|d|d<|S)zParses `packages.find` configuration file section. To be used in conjunction with _parse_packages(). :param dict section_options: whereZincludeZexcludecs$g|]\}}|kr|r||fqSrr)r"rr) valid_keysrrrnszEConfigOptionsHandler.parse_section_packages__find..Nr)rrtrLrXrd)rr^Z section_datarrr)rrrs   z1ConfigOptionsHandler.parse_section_packages__findcCs|||j}||d<dS)z`Parses `entry_points` configuration file section. :param dict section_options: rN)rrt)rr^rrrrparse_section_entry_pointssz/ConfigOptionsHandler.parse_section_entry_pointscCs.|||j}|d}|r*||d<|d=|S)NrurV)rrtrd)rr^rrootrrr_parse_package_datas  z(ConfigOptionsHandler._parse_package_datacCs|||d<dS)z`Parses `package_data` configuration file section. :param dict section_options: Z package_dataN)r)rr^rrrparse_section_package_datasz/ConfigOptionsHandler.parse_section_package_datacCs|||d<dS)zhParses `exclude_package_data` configuration file section. :param dict section_options: Zexclude_package_dataN)r)rr^rrr"parse_section_exclude_package_datasz7ConfigOptionsHandler.parse_section_exclude_package_datacCs"t|jdd}||||d<dS)zbParses `extras_require` configuration file section. :param dict section_options: r)rsZextras_requireN)rrtr)rr^rrrrparse_section_extras_requiresz1ConfigOptionsHandler.parse_section_extras_requirecCs(|||j}dd|D|d<dS)z^Parses `data_files` configuration file section. :param dict section_options: cSsg|]\}}||fqSrr)r"rrrrrrnszAConfigOptionsHandler.parse_section_data_files..Z data_filesN)rrrX)rr^rrrrparse_section_data_filessz-ConfigOptionsHandler.parse_section_data_filesN)r,r-r.rNrrarrrrrrrrrrrrrrOcs    rO)FF)F) rrr9r0rrFr collectionsrrrZglobr contextlibZdistutils.errorsrrZ#setuptools.extern.packaging.versionrr Z&setuptools.extern.packaging.specifiersr r contextmanagerr4rErKrBr@rUrPrOrrrrs2      -  c_