Files
wg-backend-django/acer-env/lib/python3.10/site-packages/setuptools/__pycache__/config.cpython-310.pyc

263 lines
20 KiB
Plaintext
Raw Normal View History

2022-11-30 15:58:16 +07:00
o
<00>ԄcqZ<00>@sddlZddlZddlZddlZddlZddlZddlZddlmZddlm Z ddlm
Z
ddl m Z ddl Z ddlmZmZddlmZmZddlmZGd d
<EFBFBD>d
<EFBFBD>Ze jd d <0C><00>Zddd<0F>Zdd<11>Zdd<13>Zddd<15>ZGdd<17>d<17>ZGdd<19>de<1D>ZGdd<1B>de<1D>ZdS)<1E>N)<01> defaultdict)<01>partial<61><01>wraps)<01>iglob)<02>DistutilsOptionError<6F>DistutilsFileError)<02>Version<6F>InvalidVersion)<01> SpecifierSetc@s eZdZdZdd<03>Zdd<05>ZdS)<07> StaticModulez0
Attempt to load the module by the name
cCs`tj<01>|<01>}t|j<04><01> }|<03><05>}Wd<00>n1swYt<06>|<04>}t|<00><01> t
<EFBFBD><00>|` dS<00>N) <0C> importlib<69>util<69> find_spec<65>open<65>origin<69>read<61>ast<73>parse<73>vars<72>update<74>locals<6C>self)r<00>name<6D>spec<65>strm<72>src<72>module<6C>r<00>d/home/infidel/Sync/Project/ocp-wg-backend/acer-env/lib/python3.10/site-packages/setuptools/config.py<70>__init__s  
<1C>
zStaticModule.__init__c
sNzt<00>fdd<02>|jjD<00><01>WSty&}z tdjdit<06><00><01><01>|<02>d}~ww)Nc3sJ<00>|] }t|tj<02>r|jD]}t|tj<04>r |j<05>kr t<01>|j<07>Vq qdSr )<08>
isinstancer<00>Assign<67>targets<74>Name<6D>id<69> literal_eval<61>value)<03>.0<EFBFBD> statement<6E>target<65><01>attrrr <00> <genexpr>#s<02>
<02><04>
<02><02>
 <0C>z+StaticModule.__getattr__.<locals>.<genexpr>z#{self.name} has no attribute {attr}r)<07>nextr<00>body<64> Exception<6F>AttributeError<6F>formatr)rr-<00>err,r <00> __getattr__!s 
<EFBFBD><02><02><08><02>zStaticModule.__getattr__N)<06>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__r!r5rrrr r s r c cs8<00>ztj<01>d|<00>dVWtj<01>|<00>dStj<01>|<00>w)zH
Add path to front of sys.path for the duration of the context.
rN)<04>sys<79>path<74>insert<72>remove)r;rrr <00>
patch_path0s
<02>r>Fc Cs<>ddlm}m}tj<04>|<00>}tj<04>|<00>std|<00><01>t<03><08>}t<03> tj<04>
|<00><01>z-|<03>}|r1|<06> <0B>ng}||vr<|<07> |<00>|j ||d<04>t||j|d<05>}Wt<03> |<05>t|<08>St<03> |<05>w)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)<02> Distribution<6F> _Distributionz%Configuration file %s does not exist.)<01> filenames)<01>ignore_option_errors)<11>setuptools.distr?r@<00>osr;<00>abspath<74>isfiler<00>getcwd<77>chdir<69>dirname<6D>find_config_files<65>append<6E>parse_config_files<65>parse_configuration<6F>command_options<6E>configuration_to_dict) <09>filepath<74> find_othersrBr?r@<00>current_directory<72>distrA<00>handlersrrr <00>read_configuration<s$   
<08>
 <0C>rUcCs2djdit<01><00><01>}t<02>t||<01>}t|||<03>}|<04>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}Nr)r3r<00> functoolsr<00>getattr)<05>
target_obj<EFBFBD>key<65> getter_name<6D> by_attribute<74>getterrrr <00> _get_optionis r]cCs<tt<01>}|D]}|jD]}t|j|<03>}|||j|<q q|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<00>dict<63> set_optionsr]rX<00>section_prefix)rT<00> config_dict<63>handler<65>optionr(rrr rOus
 <02>rOcCs6t|||<02>}|<03><01>t|j|||j<04>}|<04><01>||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
)<05>ConfigOptionsHandlerr<00>ConfigMetadataHandler<65>metadata<74> package_dir)<05> distributionrNrB<00>options<6E>metarrr rM<00>s <04>rMc@s<>eZdZdZdZ iZ d'dd<05>Zedd<07><00>Zdd <09>Z e
d(d d <0C><01>Z e
d(d d<0E><01>Z e
dd<10><00>Z e
dd<12><00>Ze
dd<14><00>Ze
dd<16><00>Zedd<18><00>Zedd<1A><00>Ze
d)dd<1C><01>Ze
dd<1E><00>Ze
d)dd <20><01>Zd!d"<22>Zd#d$<24>Zd%d&<26>ZdS)*<2A> ConfigHandlerz1Handles metadata supplied in configuration files.NFcCs^i}|j}|<02><01>D]\}}|<06>|<05>sq |<06>|d<01><02>d<02>}|||<q ||_||_||_g|_dS)N<><00>.) r`<00>items<6D>
startswith<EFBFBD>replace<63>striprBrX<00>sectionsr_)rrXrirBrrr`<00> section_name<6D>section_optionsrrr r!<00>s


zConfigHandler.__init__cCstd|jj<00><01>)<02>.Metadata item name to parser function mapping.z!%s must provide .parsers property)<03>NotImplementedError<6F> __class__r6)rrrr <00>parsers<72>s
<04>zConfigHandler.parsersc Cs<>t<00>}|j}|j<02>||<01>}t|||<03>}||urt|<01><01>|rdSd}|j<06>|<01>}|r?z||<02>}Wnty>d}|js<<3C>Ynw|rCdSt|d|d<00>}|durVt |||<02>n||<02>|j
<EFBFBD> |<01>dS)NFTzset_%s) <0C>tuplerX<00>aliases<65>getrW<00>KeyErrorrxr1rB<00>setattrr_rK) r<00> option_namer(<00>unknownrX<00> current_value<75> skip_option<6F>parser<65>setterrrr <00> __setitem__<5F>s4    <04><02>zConfigHandler.__setitem__<5F>,cCs8t|t<01>r|Sd|vr|<01><02>}n|<01>|<02>}dd<03>|D<00>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
<20>
cSsg|]
}|<01><00>r|<01><00><00>qSr)rq)r)<00>chunkrrr <00>
<listcomp>sz-ConfigHandler._parse_list.<locals>.<listcomp>)r"<00>list<73>
splitlines<EFBFBD>split)<03>clsr(<00> separatorrrr <00> _parse_list<73>s


zConfigHandler._parse_listc sjd}|j<00>|d<02>}g}|D]%<25>t<01>fdd<04>|D<00><01>r-|<05>tdd<04>ttj<06><07><00><01>D<00><01><01>q |<05><08><00>q |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
)<06>*<2A>?<3F>[<5B>]<5D>{<7B>}<7D>r<>c3s<00>|]}|<01>vVqdSr r)r)<00>char<61>r(rr r.s<02>z1ConfigHandler._parse_list_glob.<locals>.<genexpr>css"<00>|] }tj<01>|t<00><03><00>VqdSr )rDr;<00>relpathrG<00>r)r;rrr r.s
<02><10>
<EFBFBD>) r<><00>any<6E>extend<6E>sortedrrDr;rErK)r<>r(r<><00>glob_characters<72>values<65>expanded_valuesrr<>r <00>_parse_list_globs
  <0C> zConfigHandler._parse_list_globcCsPd}i}|<00>|<01>D]}|<04>|<02>\}}}||krtd|<00><01>|<07><03>||<05><03><q |S)zPRepresents value as a dict.
:param value:
:rtype: dict
<20>=z(Unable to parse option value to dict: %s)r<><00> partitionrrq)r<>r(r<><00>result<6C>linerY<00>sep<65>valrrr <00> _parse_dict s<04>zConfigHandler._parse_dictcCs|<01><00>}|dvS)zQRepresents value as boolean.
:param value:
:rtype: bool
)<03>1<>true<75>yes)<01>lower)r<>r(rrr <00> _parse_bool3szConfigHandler._parse_boolc<00><00>fdd<02>}|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}|<00>|<01>rtd<02><02><00><01><01>|S)N<>file:zCOnly strings are accepted for the {0} field, files are not accepted)ro<00>
ValueErrorr3)r(<00>exclude_directive<76>rYrr r<>Is
<04>z3ConfigHandler._exclude_files_parser.<locals>.parserr)r<>rYr<>rr<>r <00>_exclude_files_parser=s  z#ConfigHandler._exclude_files_parsercs\d}t|t<01>s |S|<01>|<02>s|S|t|<02>d<02>}dd<04>|<03>d<05>D<00>}d<06><05>fdd<04>|D<00><01>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 <00>|] }tj<01>|<01><03><00>VqdSr )rDr;rErqr<>rrr r.ks<02>z,ConfigHandler._parse_file.<locals>.<genexpr>r<>r<>c3s4<00>|]}<01><00>|<01>s tj<02>|<01>r<02><00>|<01>VqdS)TN)<05> _assert_localrDr;rF<00>
_read_filer<EFBFBD><00>r<>rr r.ls<02><02><02>
<02>
<EFBFBD>)r"<00>strro<00>lenr<6E><00>join)r<>r(<00>include_directiver<00> filepathsrr<>r <00> _parse_fileTs

<08>zConfigHandler._parse_filecCs|<00>t<01><02><00>s td|<00><01>dS)Nz#`file:` directive can not access %s)rorDrGr)rPrrr r<>rs <04>zConfigHandler._assert_localcCs:tj|dd<02><02> }|<01><02>Wd<00>S1swYdS)Nzutf-8)<01>encoding)<03>iorr)rP<00>frrr r<>ws$<24>zConfigHandler._read_filec Cs0d}|<01>|<03>s |S|<01>|d<02><02><02><00>d<03>}|<04><04>}d<03>|<04>}|p d}t<06><07>}|ra|d|vrR||d}|<08>dd<07>} t | <09>dkrOtj
<EFBFBD>t<06><07>| d<00>}| d}n|}nd|vratj
<EFBFBD>t<06><07>|d<00>}t |<07><01>&zt t |<06>|<05>WWd<00>Sty<>t<0F>|<06>}
YnwWd<00>n1s<>wYt |
|<05>S) z<>Represents value as a module attribute.
Examples:
attr: package.attr
attr: package.module.attr
:param str value:
:rtype: str
zattr:rlrmr!r<00>/<2F>N)rorprqr<><00>popr<70>rDrG<00>rsplitr<74>r;r>rWr r1r<00> import_module) r<>r(rg<00>attr_directive<76>
attrs_path<EFBFBD> attr_name<6D> module_name<6D> parent_path<74> custom_path<74>partsrrrr <00> _parse_attr|s8

    

<10> <02><1C>
zConfigHandler._parse_attrcr<>)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|}<01>D]}||<01>}q|Sr r)r(<00>parsed<65>method<6F><01> parse_methodsrr r<00>s
z1ConfigHandler._get_parser_compound.<locals>.parser)r<>r<>rrr<>r <00>_get_parser_compound<6E>s
z"ConfigHandler._get_parser_compoundcCs6i}|pdd<02>}|<01><00>D] \}\}}||<06>||<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 <00><lambda><3E>sz6ConfigHandler._parse_section_to_dict.<locals>.<lambda>)rn)r<>rt<00> values_parserr(rY<00>_r<5F>rrr <00>_parse_section_to_dict<63>s

z$ConfigHandler._parse_section_to_dictc Cs8|<01><00>D]\}\}}z|||<WqtyYqwdS)zQParses configuration file section.
:param dict section_options:
N)rnr|)rrtrr<>r(rrr <00> parse_section<6F>s  <02><04>zConfigHandler.parse_sectioncCsb|j<00><01>D])\}}d}|rd|}t|d|<00>dd<05>d<06>}|dur*td|j|f<00><01>||<02>qdS)zTParses configuration file items from one
or more related sections.
rlz_%szparse_section%srm<00>__Nz0Unsupported distribution option section: [%s.%s])rrrnrWrprr`)rrsrt<00>method_postfix<69>section_parser_methodrrr r<00>s"<04><02><04>
<04>zConfigHandler.parsecst<00><00><01><00><01>fdd<02><08>}|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<00><01><01><02><00>|i|<01><01>Sr )<02>warnings<67>warn)<02>args<67>kwargs<67><03>func<6E>msg<73> warning_classrr <00>config_handler<65>s z@ConfigHandler._deprecated_config_handler.<locals>.config_handlerr)rr<>r<>r<>r<>rr<>r <00>_deprecated_config_handler<65>sz(ConfigHandler._deprecated_config_handler<65>F)r<>r )r6r7r8r9r`rzr!<00>propertyrxr<><00> classmethodr<64>r<>r<>r<>r<>r<><00> staticmethodr<64>r<>r<>r<>r<>r<>rr<>rrrr rk<00>sF

&  





 -
  rkcsLeZdZdZddddd<06>ZdZ d<0F>fd d
<EFBFBD> Zed d <0C><00>Zd d<0E>Z <09>Z
S)rerf<00>url<72> description<6F> classifiers<72> platforms)<04> home_page<67>summary<72>
classifier<EFBFBD>platformFNcstt|<00><02>|||<03>||_dSr )<04>superrer!rg)rrXrirBrg<00>rwrr r!s
<04>
zConfigMetadataHandler.__init__cCs^|j}|j}|j}|j}||||<00>|dt<05>||<00>||<01>|d<02>|<00>|d<03>dt<05>||||j|d<05> S)ruz[The requires parameter is deprecated, please use install_requires for runtime dependencies.<2E>license<73> license_filezDThe license_file parameter is deprecated, use license_files instead.) r<><00>keywords<64>provides<65>requires<65> obsoletesr<73>r<>r<><00> license_filesr<73><00>long_description<6F>version<6F> project_urls)r<>r<>r<>r<>r<><00>DeprecationWarningr<67><00>_parse_version)r<00>
parse_list<EFBFBD>
parse_file<EFBFBD>
parse_dict<EFBFBD>exclude_files_parserrrr rxs4<02>
<02><06>zConfigMetadataHandler.parserscCs<>|<00>|<01>}||kr)|<02><01>}zt|<02>W|Sty(d}t|jdit<06><00><01><01><01>w|<00>||j<08>}t |<02>r7|<02>}t
|t <0B>sOt |d<02>rKd<03> tt |<02><02>}|Sd|}|S)zSParses `version` option value.
:param value:
:rtype: str
zCVersion loaded from {value} does not comply with PEP 440: {version}<7D>__iter__rmz%sNr)r<>rqr r
rr3rr<>rg<00>callabler"r<><00>hasattrr<72><00>map)rr(r<><00>tmplrrr r<>?s(

 <0C><02><02> 

<08>z$ConfigMetadataHandler._parse_version)FN) r6r7r8r`rz<00> strict_moder!r<>rxr<><00> __classcell__rrr<>r res<06><0E>
!rec@sdeZdZdZedd<03><00>Zdd<05>Zdd<07>Zdd <09>Zd
d <0B>Z d d <0A>Z
dd<0F>Z dd<11>Z dd<13>Z dd<15>ZdS)rdricCsN|j}t|jdd<02>}|j}|j}|j}|||||||||||j|j|t|d<03>S)ru<00>;r<>)<0F>zip_safe<66>include_package_datarg<00>scripts<74>eager_resources<65>dependency_links<6B>namespace_packages<65>install_requires<65>setup_requires<65> tests_require<72>packages<65> entry_points<74>
py_modules<EFBFBD>python_requires<65>cmdclass)r<>rr<>r<><00>_parse_cmdclass<73>_parse_packagesr<73>r )rr<><00>parse_list_semicolon<6F>
parse_boolr<EFBFBD><00>parse_cmdclassrrr rxis*<06>zConfigOptionsHandler.parserscs$dd<02><00><00>fdd<04>|<00>|<01><01><01>D<00>S)NcSs8|<00>d<01>}||dd<00>}|d|<01>}t|<03>}t||<02>S)Nrmr<>)<03>rfind<6E>
__import__rW)<05>qualified_class_name<6D>idx<64>
class_name<EFBFBD>pkg_namerrrr <00> resolve_class<73>s
 
z;ConfigOptionsHandler._parse_cmdclass.<locals>.resolve_classcsi|] \}}|<01>|<02><01>qSrr<00>r)<00>k<>v<>r"rr <00>
<dictcomp><3E>sz8ConfigOptionsHandler._parse_cmdclass.<locals>.<dictcomp>)r<>rn)rr(rr&r r<00>s z$ConfigOptionsHandler._parse_cmdclasscCsnddg}|<01><00>}||vr|<00>|<01>S||dk}|<00>|j<03>di<00><02>}|r*ddlm}nddlm}|d i|<05><01>S)
zTParses `packages` option value.
:param value:
:rtype: list
zfind:zfind_namespace:r<>z packages.findr)<01>find_namespace_packages)<01> find_packagesNr)rqr<><00>parse_section_packages__findrrr{<00>
setuptoolsr(r))rr(<00>find_directives<65> trimmed_value<75>findns<6E> find_kwargsr)rrr r<00>s
  <04> z$ConfigOptionsHandler._parse_packagescsR|<00>||j<01>}gd<01><01>t<02>fdd<03>|<02><03>D<00><01>}|<03>d<04>}|dur'|d|d<|S)z<>Parses `packages.find` configuration file section.
To be used in conjunction with _parse_packages().
:param dict section_options:
)<03>where<72>include<64>excludecs$g|]\}}|<01>vr|r||f<02>qSrrr#<00><01>
valid_keysrr r<><00>s$zEConfigOptionsHandler.parse_section_packages__find.<locals>.<listcomp>r0Nr)r<>r<>r^rnr{)rrt<00> section_datar/r0rr3r r*<00>s<04>
 z1ConfigOptionsHandler.parse_section_packages__findcCs|<00>||j<01>}||d<dS)z`Parses `entry_points` configuration file section.
:param dict section_options:
rN)r<>r<><00>rrtr<>rrr <00>parse_section_entry_points<74>s z/ConfigOptionsHandler.parse_section_entry_pointscCs.|<00>||j<01>}|<02>d<01>}|r||d<|d=|S)Nr<4E>rl)r<>r<>r{)rrtr<><00>rootrrr <00>_parse_package_data<74>s 
z(ConfigOptionsHandler._parse_package_datacC<00>|<00>|<01>|d<dS)z`Parses `package_data` configuration file section.
:param dict section_options:
<20> package_dataN<61>r9<00>rrtrrr <00>parse_section_package_data<74><00>z/ConfigOptionsHandler.parse_section_package_datacCr:)zhParses `exclude_package_data` configuration file section.
:param dict section_options:
<20>exclude_package_dataNr<r=rrr <00>"parse_section_exclude_package_data<74>r?z7ConfigOptionsHandler.parse_section_exclude_package_datacCs"t|jdd<02>}|<00>||<02>|d<dS)zbParses `extras_require` configuration file section.
:param dict section_options:
rr<><00>extras_requireN)rr<>r<>)rrtr<>rrr <00>parse_section_extras_require<72>s <0C>z1ConfigOptionsHandler.parse_section_extras_requirecCs(|<00>||j<01>}dd<02>|<02><02>D<00>|d<dS)z^Parses `data_files` configuration file section.
:param dict section_options:
cSsg|]\}}||f<02>qSrrr#rrr r<><00>szAConfigOptionsHandler.parse_section_data_files.<locals>.<listcomp><3E>
data_filesN)r<>r<>rnr6rrr <00>parse_section_data_files<65>sz-ConfigOptionsHandler.parse_section_data_filesN)r6r7r8r`r<>rxrrr*r7r9r>rArCrErrrr rdes
 

rd)FFr<46>) rr<>rDr:r<>rVr<00> collectionsrrr<00>globr<00>
contextlib<EFBFBD>distutils.errorsrr<00>#setuptools.extern.packaging.versionr r
<00>&setuptools.extern.packaging.specifiersr r <00>contextmanagerr>rUr]rOrMrkrerdrrrr <00><module>s6     

-
ca