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.9/site-packages/setuptools/config/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/config/__pycache__/setupcfg.cpython-39.opt-2.pyc
a

��ed�@sddlZddlZddlZddlmZddlmZddlmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZmZmZmZddlmZddlmZmZdd	lmZdd
lmZmZddlm Z ddl!m"Z"m#Z#dd
l$m%Z%ddl&m'Z'er�ddl(m)Z)ddl*m+Z+edede
ffZ,ede,fZ-ededd�Z.d;ee/d�dd�Z0dedd�dd�Z1d<dee
ee2edd �d!d"�Z3e.e4d#�d$d%�Z5ede/d&�d'd(�Z6d=de-ed)d*�d+d,�Z7e4e4e8d-�d.d/�Z9Gd0d1�d1ee.�Z:Gd2d3�d3e:d4�Z;Gd5d6�d6e:d�Z<Gd7d8�d8e%�Z=Gd9d:�d:e%�Z>dS)>�N)�defaultdict)�partial��wraps)�
TYPE_CHECKING�Callable�Any�Dict�Generic�Iterable�List�Optional�Set�Tuple�TypeVar�Union�)�StrPath)�	FileError�OptionError)�default_environment)�InvalidRequirement�Requirement)�SpecifierSet)�InvalidVersion�Version)�SetuptoolsDeprecationWarning�)�expand)�DistributionMetadata��Distribution�str�Target)r!r)�boundF)�filepath�returncCs8ddlm}|�}|r|��ng}t||||�}t|�S)Nrr )�setuptools.distr!Zfind_config_files�_apply�configuration_to_dict)r%Zfind_others�ignore_option_errorsr!�dist�	filenames�handlers�r.�>/usr/lib/python3.9/site-packages/setuptools/config/setupcfg.py�read_configuration9s
r0r!)r+r%r&cCst||�|��|S�N)r(Z_finalize_requires)r+r%r.r.r/�apply_configurationSs
r2r.)�
ConfigHandler.)r+r%�other_filesr*r&c	Cs�ddlm}tj�|�}tj�|�s4td|�d���t��}t�tj�	|��g|�|�}z4|j
||d�t||j|d�}|�
�Wt�|�nt�|�0|S)Nr)�
_DistributionzConfiguration file z does not exist.)r,)r*)r'r5�os�path�abspath�isfiler�getcwd�chdir�dirnameZparse_config_files�parse_configuration�command_optionsZ_finalize_license_files)r+r%r4r*r5Zcurrent_directoryr,r-r.r.r/r(\s�
r()�
target_obj�keycCs*d|��}t�t||�}t|||�}|�S)NZget_)�	functoolsr�getattr)r?r@Zgetter_nameZby_attribute�getterr.r.r/�_get_optionzs
rD)r-r&cCs<tt�}|D]*}|jD]}t|j|�}|||j|<qq|Sr1)r�dict�set_optionsrDr?�section_prefix)r-Zconfig_dictZhandler�option�valuer.r.r/r)�s
r))�ConfigMetadataHandler�ConfigOptionsHandler)�distributionr>r&cCs�t�|��f}t||||�}|��|js0|j|_t|j||||j|j�}|��|j�	|j|j�Wd�n1sv0Y||fSr1)
r�EnsurePackagesDiscoveredrK�parse�package_dirrJ�metadata�src_root�_referenced_files�update)rLr>r*�ensure_discovered�options�metar.r.r/r=�s.���"r=)�label�
orig_value�parsedc
s�d|vst��dkrdSt���}z,t�d�}|j|vrLtj|�dd�WnVty�}z>t�fdd�|D��r�tj	|�dd�}t|�|�WYd}~n
d}~00dS)N�
rr)Zfield�reqc3s|]}�d�|�VqdS)rN��
startswith)�.0Zmarker�rYr.r/�	<genexpr>��z8_warn_accidental_env_marker_misconfig.<locals>.<genexpr>)
�len�
marker_env�keysr�name�_AmbiguousMarker�emitr�any�message)rWrXrYZmarkersr[Zex�msgr.r_r/�%_warn_accidental_env_marker_misconfig�s

rkc@s�eZdZUeed<iZeeefed<eee	j
d�dd�Zeed�dd��Z
ed	d
��Zdd�Zed)dd��Zedd��Zedd��Zedd��Zed�dd�Zed�dd�Zedd��Zedd��Zed*d d!��Zd"d#�Zdd$�d%d&�Zd'd(�ZdS)+r3rG�aliases)r?rUrTcCs4||_||_t|�|��|_g|_||_t�|_dSr1)	r*r?rE�_section_options�sectionsrFrT�setrR��selfr?rUr*rTr.r.r/�__init__�szConfigHandler.__init__)rUccs>|��D]0\}}|�|j�\}}}|r(q|�d�|fVqdS)N�.)�items�	partitionrG�lstrip)�clsrUZ	full_namerIZpre�seprer.r.r/rms
zConfigHandler._section_optionscCstd|jj��dS)Nz!%s must provide .parsers property)�NotImplementedError�	__class__�__name__�rqr.r.r/�parserss
�zConfigHandler.parsersc	
Cs�|j}|j�||�}zt||�}Wn.tyP}zt|�|�WYd}~n
d}~00|rZdSz|j�|dd��|�}Wntf|jy�YdS0t	�
|j|�}t|d||�}||�|j�
|�dS)NcSs|Sr1r.)�xr.r.r/�<lambda>&raz+ConfigHandler.__setitem__.<locals>.<lambda>zset_%s)r?rl�getrB�AttributeError�KeyErrorr}�	Exceptionr*rAr�__setattr__rF�append)	rqZoption_namerIr?Z
current_value�erYZ
simple_setter�setterr.r.r/�__setitem__s  zConfigHandler.__setitem__�,cCs8t|t�r|Sd|vr |��}n
|�|�}dd�|D�S)NrZcSsg|]}|��r|���qSr.��strip)r^�chunkr.r.r/�
<listcomp>Braz-ConfigHandler._parse_list.<locals>.<listcomp>)�
isinstance�list�
splitlines�split)rwrI�	separatorr.r.r/�_parse_list0s



zConfigHandler._parse_listcCsRd}i}|�|�D]:}|�|�\}}}||kr<td|����|��||��<q|S)N�=z&Unable to parse option value to dict: )r�rurr�)rwrIr��result�liner@rx�valr.r.r/�_parse_dictDszConfigHandler._parse_dictcCs|��}|dvS)N)�1�trueZyes)�lower�rwrIr.r.r/�_parse_boolUszConfigHandler._parse_boolcs�fdd�}|S)Ncs d}|�|�rtd�����|S)N�file:zCOnly strings are accepted for the {0} field, files are not accepted)r]�
ValueError�format)rIZexclude_directive�r@r.r/�parserks
��z3ConfigHandler._exclude_files_parser.<locals>.parserr.)rwr@r�r.r�r/�_exclude_files_parser_s	z#ConfigHandler._exclude_files_parser��root_dircCs\d}t|t�s|S|�|�s |S|t|�d�}dd�|�d�D�}|j�|�t�||�S)Nr�cSsg|]}|���qSr.r�)r^r7r.r.r/r��raz-ConfigHandler._parse_file.<locals>.<listcomp>r�)	r�r"r]rbr�rRrSrZ
read_files)rqrIr�Zinclude_directive�specZ	filepathsr.r.r/�_parse_filevs


zConfigHandler._parse_filecCs:d}|�|�s|S|�|d�}|�|jj�t�|||�S)Nzattr:�)r]�replacerSrTrOrZ	read_attr)rqrIrOr�Zattr_directiveZ	attr_descr.r.r/�_parse_attr�s

zConfigHandler._parse_attrcs�fdd�}|S)Ncs|}�D]}||�}q|Sr1r.)rIrY�method��
parse_methodsr.r/rN�s
z1ConfigHandler._get_parser_compound.<locals>.parser.)rwr�rNr.r�r/�_get_parser_compound�s
z"ConfigHandler._get_parser_compoundcCs,i}|��D]\}\}}|||�||<q|Sr1)rt)rw�section_options�
values_parserrIr@�_r�r.r.r/�_parse_section_to_dict_with_key�s
z-ConfigHandler._parse_section_to_dict_with_keyNcs$�r�fdd�ndd�}|�||�S)Ncs�|�Sr1r.�r��v�r�r.r/r�raz6ConfigHandler._parse_section_to_dict.<locals>.<lambda>cSs|Sr1r.r�r.r.r/r�ra�r�)rwr�r�r�r.r�r/�_parse_section_to_dict�s
z$ConfigHandler._parse_section_to_dictc	CsL|��D]>\}\}}t�t��|||<Wd�q1s<0YqdSr1)rt�
contextlib�suppressr�)rqr�rer�rIr.r.r/�
parse_section�szConfigHandler.parse_section)r&cCsh|j��D]X\}}d}|r"d|}t|d|�dd�d�}|durZtd|j�d|�d���||�q
dS)Nr�z_%szparse_section%srs�__z*Unsupported distribution option section: [�])rnrtrBr�rrG)rqZsection_namer�Zmethod_postfixZsection_parser_methodr.r.r/rN�s$����zConfigHandler.parsecst�����fdd��}|S)Ncs.��dd�tjd�fi����|i|��S)N�
stacklevelrz Deprecated config in `setup.cfg`)�
setdefault�_DeprecatedConfigrg)�args�kwargs��func�kwrjr.r/�config_handler�sz@ConfigHandler._deprecated_config_handler.<locals>.config_handlerr)rqr�rjr�r�r.r�r/�_deprecated_config_handler�sz(ConfigHandler._deprecated_config_handler)r�)N)r{�
__module__�__qualname__r"�__annotations__rlr	r#�AllCommandOptionsrrMrr�classmethodrm�propertyr}r�r�r�r�r�rr�r�r�r�r�r�rNr�r.r.r.r/r3�s<
	�


	



r3csdeZdZdZddddd�ZdZdejfd	ee	e
jee
ed
��fdd�
Zed
d��Zdd�Z�ZS)rJrP�url�description�classifiers�	platforms)Z	home_pageZsummaryZ
classifier�platformFNr)r?rUr*rTrOr�cs"t��||||�||_||_dSr1)�superrrrOr�)rqr?rUr*rTrOr��rzr.r/rrs	zConfigMetadataHandler.__init__cCsL|j}t|j|jd�}|j}|j}|||||�||�|d�||||j|d�S)Nr��license)r��keywordsZprovidesZ	obsoletesr�r�Z
license_filesr�Zlong_description�versionZproject_urls)r�rr�r�r�r�r��_parse_version)rq�
parse_listZ
parse_file�
parse_dictZexclude_files_parserr.r.r/r}$s 
�zConfigMetadataHandler.parsersc
Cs�|�||j�}||krj|��}zt|�Wn:tyd}z"td|�d|���|�WYd}~n
d}~00|St�|�||j	|j��S)NzVersion loaded from z does not comply with PEP 440: )
r�r�r�rrrrr�r�rO)rqrIr�r�r.r.r/r�:s���z$ConfigMetadataHandler._parse_version)r{r�r�rGrlZstrict_moder6�curdirr��boolrrMr
rErrrr�r}r��
__classcell__r.r.r�r/rJs(���

rJrcs�eZdZdZdeeejd��fdd�Ze	dd��Z
dd	�Zeed
�dd�Z
ed
d��Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Z�ZS)!rKrUr!)r?rUr*rTcs$t��||||�|j|_i|_dSr1)r�rrrQr�rOrpr�r.r/rrWszConfigOptionsHandler.__init__cCs|j|dd�S)N�;)r�)r�r�r.r.r/�_parse_list_semicolonbsz*ConfigOptionsHandler._parse_list_semicoloncCs|j||jd�S)Nr�)r�r�)rqrIr.r.r/�_parse_file_in_rootfsz(ConfigOptionsHandler._parse_file_in_root)rWrIcCs*|�|�|��}t|||�dd�|D�S)NcSsg|]}|�d�s|�qS)�#r\)r^r�r.r.r/r�orazAConfigOptionsHandler._parse_requirements_list.<locals>.<listcomp>)r�r�rk)rqrWrIrYr.r.r/�_parse_requirements_listisz-ConfigOptionsHandler._parse_requirements_listcCsT|j}|j}|j}|j}|||||||�|d�t|jd�|j|j|j|j	|t
|d�S)NzeThe namespace_packages parameter is deprecated, consider using implicit namespaces instead (PEP 420).�install_requires)Zzip_safeZinclude_package_datarOZscriptsZeager_resourcesZdependency_linksZnamespace_packagesr�Zsetup_requiresZ
tests_requireZpackages�entry_pointsZ
py_modulesZpython_requires�cmdclass)r�r�r��_parse_cmdclassr�rr�r��_parse_packagesr�r)rqr�Z
parse_boolr�Zparse_cmdclassr.r.r/r}qs2���zConfigOptionsHandler.parserscCs|jj}t�|�|�||j�Sr1)rTrOrr�r�r�)rqrIrOr.r.r/r��sz$ConfigOptionsHandler._parse_cmdclasscCsbddg}|��}||vr"|�|�S|�|j�di��}|j||dk|j|jd�tj	fi|��S)Nzfind:zfind_namespace:z
packages.findr)Z
namespacesr�Zfill_package_dir)
r�r��parse_section_packages__findrnr�rSr�rOrZ
find_packages)rqrIZfind_directivesZ
trimmed_value�find_kwargsr.r.r/r��s
�
�z$ConfigOptionsHandler._parse_packagescsR|�||j�}gd��t�fdd�|��D��}|�d�}|durN|d|d<|S)N)�whereZincludeZexcludecs$g|]\}}|�vr|r||f�qSr.r.)r^�kr��Z
valid_keysr.r/r��szEConfigOptionsHandler.parse_section_packages__find.<locals>.<listcomp>r�r)r�r�rErtr�)rqr�Zsection_datar�r�r.r�r/r��s�
z1ConfigOptionsHandler.parse_section_packages__findcCs|�||j�}||d<dS)Nr�)r�r��rqr�rYr.r.r/�parse_section_entry_points�sz/ConfigOptionsHandler.parse_section_entry_pointscCs|�||j�}t�|�Sr1)r�r�rZcanonic_package_data)rqr��package_datar.r.r/�_parse_package_data�sz(ConfigOptionsHandler._parse_package_datacCs|�|�|d<dS)Nr��r��rqr�r.r.r/�parse_section_package_data�sz/ConfigOptionsHandler.parse_section_package_datacCs|�|�|d<dS)NZexclude_package_datar�r�r.r.r/�"parse_section_exclude_package_data�sz7ConfigOptionsHandler.parse_section_exclude_package_datacs ��|�fdd��}|�d<dS)Ncs��d|�d�|�S)Nzextras_require[r�)r�)r�r�r|r.r/r�razCConfigOptionsHandler.parse_section_extras_require.<locals>.<lambda>Zextras_requirer�r�r.r|r/�parse_section_extras_require�s

�z1ConfigOptionsHandler.parse_section_extras_requirecCs$|�||j�}t�||j�|d<dS)NZ
data_files)r�r�rZcanonic_data_filesr�r�r.r.r/�parse_section_data_files�sz-ConfigOptionsHandler.parse_section_data_files)r{r�r�rGr�r�rrMrrr�r�r�r"r�r�r}r�r�r�r�r�r�r�r�r�r�r.r.r�r/rKTs*�

 rKc@s$eZdZdZdZdZedd��ZdS)rfzAmbiguous requirement marker.z�
    One of the parsed requirements in `{field}` looks like a valid environment marker:

        {req!r}

    Please make sure that the configuration file is correct.
    You can use dangling lines to avoid this problem.
    z'userguide/declarative_config.html#opt-2cKs"d|j��}|j|j|j||d�S)Nz%https://setuptools.pypa.io/en/latest/)Zsee_urlZformat_args)�	_SEE_DOCS�_format�_SUMMARY�_DETAILS)rwr�Zdocsr.r.r/risz_AmbiguousMarker.messageN)r{r�r�r�r�r�r�rir.r.r.r/rf�s
rfc@seZdZdZdS)r�z!userguide/declarative_config.htmlN)r{r�r�r�r.r.r.r/r�sr�)FF)r.F)F)?r�rAr6�collectionsrrr�typingrrrr	r
rrr
rrrr�_pathr�errorsrrZextern.packaging.markersrrcZextern.packaging.requirementsrrZextern.packaging.specifiersrZextern.packaging.versionrr�warningsrr�rZdistutils.distrr'r!ZSingleCommandOptionsr�r#rEr0r2r�r(r"rDr)r=r�rkr3rJrKrfr�r.r.r.r/�<module>sh8������. #M 

Youez - 2016 - github.com/yon3zu
LinuXploit