403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.7/site-packages/setuptools/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.7/site-packages/setuptools/__pycache__/config.cpython-37.opt-2.pyc
B

�aqZ�@sddlZddlZddlZddlZddlZddlZddlZddlmZddlm	Z	ddlm
Z
ddlmZddl
Z
ddlmZmZddlmZmZddlmZGd	d
�d
�Ze
jdd��Zddd�Zdd�Zdd�Zddd�ZGdd�d�ZGdd�de�ZGdd�de�ZdS)�N)�defaultdict)�partial)�wraps)�iglob)�DistutilsOptionError�DistutilsFileError)�Version�InvalidVersion)�SpecifierSetc@seZdZdd�Zdd�ZdS)�StaticModulec	CsLtj�|�}t|j��}|��}WdQRXt�|�}t|��	t
��|`dS)N)�	importlib�util�	find_spec�open�origin�read�ast�parse�vars�update�locals�self)r�name�specZstrm�src�module�r�5/usr/lib/python3.7/site-packages/setuptools/config.py�__init__s
zStaticModule.__init__c
sVyt�fdd�|jjD��Stk
rP}ztdjft���|�Wdd}~XYnXdS)Nc3sH|]@}t|tj�r|jD](}t|tj�r|j�krt�|j�VqqdS)N)�
isinstancerZAssignZtargets�Name�idZliteral_eval�value)�.0Z	statement�target)�attrrr�	<genexpr>$s
z+StaticModule.__getattr__.<locals>.<genexpr>z#{self.name} has no attribute {attr})�nextrZbody�	Exception�AttributeError�formatr)rr%�er)r%r�__getattr__!s
zStaticModule.__getattr__N)�__name__�
__module__�__qualname__rr,rrrrrsrc	cs,ztj�d|�dVWdtj�|�XdS)Nr)�sys�path�insert�remove)r1rrr�
patch_path0s
r4Fc		Cs�ddlm}m}tj�|�}tj�|�s4td|��t��}t�	tj�
|��zJ|�}|rb|��ng}||krx|�|�|j
||d�t||j|d�}Wdt�	|�Xt|�S)Nr)�Distribution�
_Distributionz%Configuration file %s does not exist.)�	filenames)�ignore_option_errors)Zsetuptools.distr5r6�osr1�abspath�isfiler�getcwd�chdir�dirnameZfind_config_files�appendZparse_config_files�parse_configuration�command_options�configuration_to_dict)	�filepathZfind_othersr8r5r6Zcurrent_directoryZdistr7�handlersrrr�read_configuration<s 
rEcCs.djft��}t�t||�}t|||�}|�S)Nz	get_{key})r*r�	functoolsr�getattr)�
target_obj�keyZgetter_nameZby_attribute�getterrrr�_get_optionisrKcCsDtt�}x6|D].}x(|jD]}t|j|�}|||j|<qWqW|S)N)r�dict�set_optionsrKrH�section_prefix)rDZconfig_dictZhandler�optionr"rrrrBus
rBcCs6t|||�}|��t|j|||j�}|��||fS)N)�ConfigOptionsHandlerr�ConfigMetadataHandler�metadata�package_dir)ZdistributionrAr8�options�metarrrr@�sr@c@s�eZdZdZiZd&dd�Zedd��Zdd�Ze	d'd
d��Z
e	d(dd
��Ze	dd��Ze	dd��Z
e	dd��Ze	dd��Zedd��Zedd��Ze	d)dd��Ze	dd��Ze	d*dd��Zd d!�Zd"d#�Zd$d%�ZdS)+�
ConfigHandlerNFcCsbi}|j}x:|��D].\}}|�|�s(q|�|d��d�}|||<qW||_||_||_g|_dS)N��.)	rN�items�
startswith�replace�stripr8rH�sectionsrM)rrHrTr8r]rN�section_name�section_optionsrrrr�s
zConfigHandler.__init__cCstd|jj��dS)Nz!%s must provide .parsers property)�NotImplementedError�	__class__r-)rrrr�parsers�szConfigHandler.parsersc	Cs�t�}|j}|j�||�}t|||�}||kr6t|��|r>dSd}|j�|�}|r�y||�}Wn tk
r~d}|jsz�YnX|r�dSt|d|d�}|dkr�t	|||�n||�|j
�|�dS)NFTzset_%s)�tuplerH�aliases�getrG�KeyErrorrbr(r8�setattrrMr?)	rZoption_namer"�unknownrHZ
current_valueZskip_option�parser�setterrrr�__setitem__�s0zConfigHandler.__setitem__�,cCs8t|t�r|Sd|kr |��}n
|�|�}dd�|D�S)N�
cSsg|]}|��r|���qSr)r\)r#�chunkrrr�
<listcomp>sz-ConfigHandler._parse_list.<locals>.<listcomp>)r�list�
splitlines�split)�clsr"�	separatorrrr�_parse_list�s



zConfigHandler._parse_listc	snd}|j�|d�}g}xR|D]J�t�fdd�|D��r\|�tdd�ttj����D���q|���qW|S)N)�*�?�[�]�{�})rtc3s|]}|�kVqdS)Nr)r#�char)r"rrr&sz1ConfigHandler._parse_list_glob.<locals>.<genexpr>css |]}tj�|t���VqdS)N)r9r1�relpathr<)r#r1rrrr&s)	ru�any�extend�sortedrr9r1r:r?)rsr"rtZglob_characters�valuesZexpanded_valuesr)r"r�_parse_list_globs

zConfigHandler._parse_list_globcCsTd}i}xF|�|�D]8}|�|�\}}}||kr<td|��|��||��<qW|S)N�=z(Unable to parse option value to dict: %s)ru�	partitionrr\)rsr"rt�result�linerI�sep�valrrr�_parse_dict s
zConfigHandler._parse_dictcCs|��}|dkS)N)�1�trueZyes)�lower)rsr"rrr�_parse_bool3szConfigHandler._parse_boolcs�fdd�}|S)Ncs d}|�|�rtd�����|S)Nzfile:zCOnly strings are accepted for the {0} field, files are not accepted)rZ�
ValueErrorr*)r"Zexclude_directive)rIrrriIs
z3ConfigHandler._exclude_files_parser.<locals>.parserr)rsrIrir)rIr�_exclude_files_parser=s	z#ConfigHandler._exclude_files_parsercs\d}t|t�s|S|�|�s |S|t|�d�}dd�|�d�D�}d��fdd�|D��S)Nzfile:css|]}tj�|���VqdS)N)r9r1r:r\)r#r1rrrr&ksz,ConfigHandler._parse_file.<locals>.<genexpr>rlrmc3s.|]&}��|�stj�|�r��|�VqdS)TN)�
_assert_localr9r1r;�
_read_file)r#r1)rsrrr&ms)r�strrZ�lenrr�join)rsr"Zinclude_directiverZ	filepathsr)rsr�_parse_fileTs


zConfigHandler._parse_filecCs|�t���std|��dS)Nz#`file:` directive can not access %s)rZr9r<r)rCrrrr�rszConfigHandler._assert_localc	Cs"tj|dd��
}|��SQRXdS)Nzutf-8)�encoding)�iorr)rC�frrrr�wszConfigHandler._read_filec	Csd}|�|�s|S|�|d����d�}|��}d�|�}|p@d}t��}|r�|d|kr�||d}|�dd�}	t	|	�dkr�tj
�t��|	d�}|	d}q�|}nd|kr�tj
�t��|d�}t|��4ytt
|�|�Stk
r�t�|�}
YnXWdQRXt|
|�S)Nzattr:rWrXrr�/�)rZr[r\rr�popr�r9r<�rsplitr�r1r4rGrr(r�
import_module)rsr"rSZattr_directiveZ
attrs_pathZ	attr_nameZmodule_name�parent_pathZcustom_path�partsrrrr�_parse_attr|s0



zConfigHandler._parse_attrcs�fdd�}|S)Ncs|}x�D]}||�}q
W|S)Nr)r"�parsed�method)�
parse_methodsrrr�s
z1ConfigHandler._get_parser_compound.<locals>.parser)rsr�rr)r�r�_get_parser_compound�s
z"ConfigHandler._get_parser_compoundcCs:i}|pdd�}x$|��D]\}\}}||�||<qW|S)NcSs|S)Nr)r�rrr�<lambda>��z6ConfigHandler._parse_section_to_dict.<locals>.<lambda>)rY)rsr_Z
values_parserr"rI�_r�rrr�_parse_section_to_dict�s

z$ConfigHandler._parse_section_to_dictc	Cs@x:|��D].\}\}}y|||<Wq
tk
r6Yq
Xq
WdS)N)rYrf)rr_rr�r"rrr�
parse_section�s
zConfigHandler.parse_sectioncCsfx`|j��D]R\}}d}|r$d|}t|d|�dd�d�}|dkrVtd|j|f��||�qWdS)NrWz_%szparse_section%srX�__z0Unsupported distribution option section: [%s.%s])r]rYrGr[rrN)rr^r_Zmethod_postfixZsection_parser_methodrrrr�szConfigHandler.parsecst�����fdd��}|S)Ncst�����||�S)N)�warnings�warn)�args�kwargs)�func�msg�
warning_classrr�config_handler�sz@ConfigHandler._deprecated_config_handler.<locals>.config_handler)r)rr�r�r�r�r)r�r�r�r�_deprecated_config_handler�sz(ConfigHandler._deprecated_config_handler)F)rl)rl)N)N)r-r.r/rNrdr�propertyrbrk�classmethodrur�r�r�r�r��staticmethodr�r�r�r�r�r�rr�rrrrrV�s.
&
-rVcsHeZdZdZddddd�ZdZd�fd	d
�	Zedd��Zd
d�Z	�Z
S)rQrRZurl�description�classifiers�	platforms)Z	home_pageZsummaryZ
classifier�platformFNcstt|��|||�||_dS)N)�superrQrrS)rrHrTr8rS)rarrrs

zConfigMetadataHandler.__init__cCs^|j}|j}|j}|j}||||�|dt�||�||�|d�|�|d�dt�||||j|d�
S)Nz[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)rur�r�r�r��DeprecationWarningr��_parse_version)r�
parse_listZ
parse_file�
parse_dictZexclude_files_parserrrrrbs.
zConfigMetadataHandler.parserscCs�|�|�}||krV|��}yt|�Wn*tk
rPd}t|jft����YnX|S|�||j�}t	|�rr|�}t
|t�s�t|d�r�d�
tt|��}nd|}|S)NzCVersion loaded from {value} does not comply with PEP 440: {version}�__iter__rXz%s)r�r\rr	rr*rr�rS�callablerr��hasattrr��map)rr"r�Ztmplrrrr�?s"


z$ConfigMetadataHandler._parse_version)FN)r-r.r/rNrdZstrict_moderr�rbr��
__classcell__rr)rarrQs"rQc@sdeZdZdZedd��Zdd�Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Zdd�Zdd�Z
dd�ZdS)rPrTcCsN|j}t|jdd�}|j}|j}|j}|||||||||||j|j|t|d�S)N�;)rt)Zzip_safeZinclude_package_datarSZscriptsZeager_resourcesZdependency_linksZnamespace_packagesZinstall_requiresZsetup_requiresZ
tests_requireZpackages�entry_pointsZ
py_modulesZpython_requiresZcmdclass)rurr�r��_parse_cmdclass�_parse_packagesr�r
)rr�Zparse_list_semicolonZ
parse_boolr�Zparse_cmdclassrrrrbis(zConfigOptionsHandler.parserscs$dd���fdd�|�|���D�S)NcSs8|�d�}||dd�}|d|�}t|�}t||�S)NrXr�)�rfind�
__import__rG)Zqualified_class_name�idx�
class_nameZpkg_namerrrr�
resolve_class�s

z;ConfigOptionsHandler._parse_cmdclass.<locals>.resolve_classcsi|]\}}�|�|�qSrr)r#�k�v)r�rr�
<dictcomp>�sz8ConfigOptionsHandler._parse_cmdclass.<locals>.<dictcomp>)r�rY)rr"r)r�rr��s	z$ConfigOptionsHandler._parse_cmdclasscCsjddg}|��}||kr"|�|�S||dk}|�|j�di��}|rTddlm}nddlm}|f|�S)Nzfind:zfind_namespace:r�z
packages.findr)�find_namespace_packages)�
find_packages)r\ru�parse_section_packages__findr]reZ
setuptoolsr�r�)rr"Zfind_directivesZ
trimmed_valueZfindns�find_kwargsr�rrrr��s
z$ConfigOptionsHandler._parse_packagescsT|�||j�}dddg�t�fdd�|��D��}|�d�}|dk	rP|d|d<|S)N�whereZincludeZexcludecs$g|]\}}|�kr|r||f�qSrr)r#r�r�)�
valid_keysrrro�szEConfigOptionsHandler.parse_section_packages__find.<locals>.<listcomp>r)r�rurLrYre)rr_Zsection_datar�r�r)r�rr��s

z1ConfigOptionsHandler.parse_section_packages__findcCs|�||j�}||d<dS)Nr�)r�ru)rr_r�rrr�parse_section_entry_points�sz/ConfigOptionsHandler.parse_section_entry_pointscCs.|�||j�}|�d�}|r*||d<|d=|S)NrvrW)r�rure)rr_r��rootrrr�_parse_package_data�s
z(ConfigOptionsHandler._parse_package_datacCs|�|�|d<dS)NZpackage_data)r�)rr_rrr�parse_section_package_data�sz/ConfigOptionsHandler.parse_section_package_datacCs|�|�|d<dS)NZexclude_package_data)r�)rr_rrr�"parse_section_exclude_package_data�sz7ConfigOptionsHandler.parse_section_exclude_package_datacCs"t|jdd�}|�||�|d<dS)Nr�)rtZextras_require)rrur�)rr_r�rrr�parse_section_extras_require�sz1ConfigOptionsHandler.parse_section_extras_requirecCs(|�||j�}dd�|��D�|d<dS)NcSsg|]\}}||f�qSrr)r#r�r�rrrro�szAConfigOptionsHandler.parse_section_data_files.<locals>.<listcomp>Z
data_files)r�r�rY)rr_r�rrr�parse_section_data_files�sz-ConfigOptionsHandler.parse_section_data_filesN)r-r.r/rNr�rbr�r�r�r�r�r�r�r�r�rrrrrPes

rP)FF)F) rr�r9r0r�rFr�collectionsrrrZglobr�
contextlibZdistutils.errorsrrZ#setuptools.extern.packaging.versionrr	Z&setuptools.extern.packaging.specifiersr
r�contextmanagerr4rErKrBr@rVrQrPrrrr�<module>s2
-
ca

Youez - 2016 - github.com/yon3zu
LinuXploit