403Webshell
Server IP : 50.21.180.56  /  Your IP : 216.73.216.208
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : ws67922704 ( 67922704)
PHP Version : 8.5.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/usr/lib/python3/dist-packages/setuptools/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/usr/lib/python3/dist-packages/setuptools/config/__pycache__/expand.cpython-313.pyc
�

�h�>����SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKJ	r	J
r
Jr SSKJ
r
 SSKJr SSKJrJr SSKJr SS	KJr SS
KJrJr SSKJrJrJrJr SS
KJr SSK J!r!J"r# SSK$J%r% SSK&J'r' SSK(J)r) \(aSSK*J+r+ SSK,J-r- \"S5r.\"SSS9r/"SS5r0S0S1Sjjr1S0S2Sjjr2S3Sjr3S4Sjr4S5Sjr5S6S7Sjjr6S8S jr7S9S!jr8S:S"jr9S6S;S#jjr:S6S<S$jjr;SSSS%.S=S&jjr<S>S'jr=S?S(jr>S@S)jr?S0SAS*jjr@SBSCS+jjrA"S,S-5rB"S.S/\\.\/45rCg)DaiUtility functions to expand configuration directives or special values
(such glob patterns).

We can split the process of interpreting configuration files into 2 steps:

1. The parsing the file contents from strings to value objects
   that can be understand by Python (for example a string with a comma
   separated list of keywords into an actual Python list of strings).

2. The expansion (or post-processing) of these values according to the
   semantics ``setuptools`` assign to them (for example a configuration field
   with the ``file:`` directive should be expanded from a list of file paths to
   a single string with the contents of those files concatenated)

This module focus on the second step, and therefore allow sharing the expansion
functions among several configuration file formats.

**PRIVATE MODULE**: API reserved for setuptools internal usage only.
�)�annotationsN)�Iterable�Iterator�Mapping)�ConfigParser)�iglob)�
ModuleSpec�all_suffixes)�chain)�Path)�
ModuleType�
TracebackType)�
TYPE_CHECKING�Any�Callable�TypeVar�)�_static)�StrPath�	same_path)�find_package_path)�SetuptoolsWarning)�DistutilsOptionError)�Self)�Distribution�_K�_V_coT)�	covariantc�6�\rSrSrSrSSjrS	SjrS
SjrSrg)�StaticModule�5z>Proxy to a module object that avoids executing arbitrary code.c���[R"[R"UR5R55n[
U5R[55 U?	g�N)
�ast�parse�pathlibr�origin�
read_bytes�vars�update�locals�self)r,�name�spec�modules    �:/usr/lib/python3/dist-packages/setuptools/config/expand.py�__init__�StaticModule.__init__8s?�����7�<�<����4�?�?�A�B���T�
���&�(�#��I�c#�f^# �URRH�m[T[R5(a U4SjTR
5Shv�N MB[T[R5(dMcTR(dMvTRTR4v� M� gNY7f)Nc3�>># �UHoTR4v� M g7fr#)�value)�.0�target�	statements  �r0�	<genexpr>�1StaticModule._find_assignments.<locals>.<genexpr>@s����V�DU�&�Y�_�_�5�DU�s�)	r/�body�
isinstancer$�Assign�targets�	AnnAssignr6r8)r,r9s @r0�_find_assignments�StaticModule._find_assignments=sp�������)�)�I��)�S�Z�Z�0�0�V�I�DU�DU�V�V�V��I�s�}�}�5�5�)�/�/�/� �'�'����9�9�	*�V�s�AB1�B/�#B1�=B1� B1c�^�[U4SjUR555$![a n[URST35UeSnAff=f)zHAttempt to load an attribute "statically", via :func:`ast.literal_eval`.c3�># �UHPup[U[R5(dM&URT:XdM8[R"U5v� MR g7fr#)r=r$�Name�id�literal_eval)r7r8r6�attrs   �r0r:�+StaticModule.__getattr__.<locals>.<genexpr>GsI�����%=�M�F��f�c�h�h�/�(�4:�I�I��4E�(�� � ��'�'�%=�s�%A�A�Az has no attribute N)�nextrA�	Exception�AttributeErrorr-)r,rH�es ` r0�__getattr__�StaticModule.__getattr__Ds]���	P���%)�%;�%;�%=���
��
�	P� �D�I�I�;�.@���!G�H�a�O��	P�s�"&�
A�A�A�N)r-�strr.r	�return�None)rRz!Iterator[tuple[ast.AST, ast.AST]])rHrQ)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r1rArN�__static_attributes__rPr3r0r r 5s��H��
:�	Pr3r c�^^�1Skn/nT=(d [R"5mUH�m[U4SjU55(ak[RR	[RRTT55nUR
[U4Sj[USS9555 M�[RRTT5R[RS5nURU5 M� U$)z�Expand the list of glob patterns, but preserving relative paths.

:param list[str] patterns: List of glob patterns
:param str root_dir: Path to which globs should be relative
                     (current directory by default)
:rtype: list
>�*�?�[�]�{�}c3�,># �UH	oT;v� M g7fr#rP)r7�charr6s  �r0r:� glob_relative.<locals>.<genexpr>_s����9���u�}��s�c3�># �UHCn[RRUT5R[RS5v� ME g7f)�/N)�os�path�relpath�replace�sep�r7rg�root_dirs  �r0r:rccs;����� @���G�G�O�O�D�(�3�;�;�B�F�F�C�H�H� @�s�AAT)�	recursivere)
rf�getcwd�anyrg�abspath�join�extend�sortedrrhrirj�append)�patternsrl�glob_characters�expanded_values�	glob_pathrgr6s `    @r0�
glob_relativeryPs����5�O��O��&�2�9�9�;�H����9��9�9�9�����������X�u�(E�F�I��"�"��� %�i�4� @���
��7�7�?�?�5�(�3�;�;�B�F�F�C�H�D��"�"�4�(��"�r3c��^�SSKJn [RR	T=(d [R
"55mU4SjU"U55nSR
U4Sj[U555$)z�Return the content of the files concatenated using ``
`` as str

    This function is sandboxed and won't reach anything outside ``root_dir``

    (By default ``root_dir`` is the current directory).
    r)�always_iterablec3�d># �UH%n[RRTU5v� M' g7fr#�rfrgrqrks  �r0r:�read_files.<locals>.<genexpr>}s%����V�;U�4�"�'�'�,�,�x��.�.�;U�s�-0�
c3�`># �UH#n[UT5(dM[U5v� M% g7fr#)�
_assert_local�
_read_filerks  �r0r:r~~s,�����6�D���x�(�	�
�4���6�s�.�.)�more_itertoolsr{rfrgrprnrq�_filter_existing_files)�	filepathsrlr{�
_filepathss `  r0�
read_filesr�qsW���/��w�w���x�6�2�9�9�;�7�H�V�?�9�;U�V�J��9�9��*�:�6���r3c#�# �UHHn[RRU5(aUv� M-[R"SU<S35 MJ g7f)NzFile z cannot be found)rfrg�isfiler�emit)r�rgs  r0r�r��s?�����
�7�7�>�>�$����J��"�"�U�4�(�2B�#C�D�	�s�AAc�l�[USS9nUR5sSSS5 $!,(df   g=f)Nzutf-8)�encoding)�open�read)�filepath�fs  r0r�r��s#��	
�h��	)�Q��v�v�x�
*�	)�	)�s�%�
3c���[[RRU55[[RRU55R;aSU<SU<S3n[U5eg)NzCannot access z (or anything outside �)T)rrfrgrp�parentsr)r�rl�msgs   r0r�r��sW���B�G�G�O�O�H�%�&�d�2�7�7�?�?�8�3L�.M�.U�.U�U��x�l�*@���A�N��"�3�'�'�r3c��U=(d [R"5nUR5RS5nUR	5nSRU5nU=(d Sn[
XQU5n[XV5n[[XW5U5n[R"U5$![a [Xu5n	[X�5s$f=f)a�Reads the value of an attribute from a module.

This function will try to read the attributed statically first
(via :func:`ast.literal_eval`), and only evaluate the module if it fails.

Examples:
    read_attr("package.attr")
    read_attr("package.module.attr")

:param str attr_desc: Dot-separated string describing how to reach the
    attribute (see examples above)
:param dict[str, str] package_dir: Mapping of package names to their
    location in disk (represented by paths relative to ``root_dir``).
:param str root_dir: Path to directory containing all the packages in
    ``package_dir`` (current directory by default).
:rtype: str
�.r1)rfrn�strip�split�poprq�_find_module�
_find_spec�getattrr r�attempt_conversionrK�
_load_spec)
�	attr_desc�package_dirrl�
attrs_path�	attr_name�module_namergr.r6r/s
          r0�	read_attrr��s���,�&�2�9�9�;�H����"�(�(��-�J���� �I��(�(�:�&�K��+��K���(�;�D��k�(�D�*���[�7��C���)�)�%�0�0���*��D�.���v�)�)�*�s�*B-�- C�Cc��[RRX5nU=(d [RRU5nUc[	U5eU$r#)�	importlib�util�spec_from_file_location�	find_spec�ModuleNotFoundError)r��module_pathr.s   r0r�r��sD���>�>�1�1�+�K�D��8�9�>�>�+�+�K�8�D��|�!�+�.�.��Kr3c�&�[USU5nU[R;a[RU$[RRU5nU[RU'URceURRU5 U$)NrT)r��sys�modulesr�r��module_from_spec�loader�exec_module)r.r�r-r/s    r0r�r��st���4��[�1�D��s�{�{���{�{�4� � �
�^�^�
,�
,�T�
2�F��C�K�K����;�;�"�"�"��K�K���F�#��Mr3c�^�[X=(d 0U5m[R"U4Sj[555n[	SU5S5$)a�Find the path to the module named ``module_name``,
considering the ``package_dir`` in the build configuration and ``root_dir``.

>>> tmp = getfixture('tmpdir')
>>> _ = tmp.ensure("a/b/c.py")
>>> _ = tmp.ensure("a/b/d/__init__.py")
>>> r = lambda x: x.replace(str(tmp), "tmp").replace(os.sep, "/")
>>> r(_find_module("a.b.c", None, tmp))
'tmp/a/b/c.py'
>>> r(_find_module("f.g.h", {"": "1", "f": "2", "f.g": "3", "f.g.h": "a/b/d"}, tmp))
'tmp/a/b/d/__init__.py'
c3�v># �UH.nTU3[RRTSU354v� M0 g7f)r1Nr})r7�ext�
path_starts  �r0r:�_find_module.<locals>.<genexpr>�s<����%�!�C�
�<��u�	�r�w�w�|�|�J�(�3�%�8H�I�J�!�s�69c3�r# �UH-n[RRU5(dM)Uv� M/ g7fr#)rfrgr�)r7�xs  r0r:r��s!���<�J�q�"�'�'�.�.��*;���J�s�(7�	7N)rr�
from_iterabler
rJ)r�r�rl�
candidatesr�s    @r0r�r��sJ���#�;�0A�r�8�L�J��$�$�%��>�%��J��<�J�<�d�C�Cr3c���U=(d [R"5nURS5nXS-SnUSUn[XQU5n[	[XV5U5n[
Xt5$)z@Given a qualified class name, return the associated class objectr��N)rfrn�rfindr�r�r�r�)�qualified_class_namer�rl�idx�
class_name�pkg_namergr/s        r0�
resolve_classr��sf���&�2�9�9�;�H�
�
$�
$�S�
)�C�%�A�g�i�0�J�#�D�S�)�H���x�8�D�
�
�8�2�H�
=�F��6�&�&r3c
�n�UR5VVs0sHup4U[XAU5_M snn$s snnf)zGiven a dictionary mapping command names to strings for qualified class
names, apply :func:`resolve_class` to the dict values.
)�itemsr�)�valuesr�rl�k�vs     r0�cmdclassr��s2��DJ�<�<�>�R�>�4�1�A�}�Q�X�6�6�>�R�R��Rs�1)�
namespaces�fill_package_dirrlc�^
�SSKJnJn SSKJn U(dSSKJn OSSKJn U=(d [RnURSS/5n/n	Uc0OUn[U"U"U555m
[T
5S:Xa1[U
4S	jSU455(aURS
T
S5 T
H�n
[X*5nUR"U40UD6nU	R!U5 U(dM;UR#S
5U
:XaMR[R$R'X�5(aMxUR)U"X�55 M� U	$)a�Works similarly to :func:`setuptools.find_packages`, but with all
arguments given as keyword arguments. Moreover, ``where`` can be given
as a list (the results will be simply concatenated).

When the additional keyword argument ``namespaces`` is ``True``, it will
behave like :func:`setuptools.find_namespace_packages`` (i.e. include
implicit namespaces as per :pep:`420`).

The ``where`` argument will be considered relative to ``root_dir`` (or the current
working directory when ``root_dir`` is not given).

If the ``fill_package_dir`` argument is passed, this function will consider it as a
similar data structure to the ``package_dir`` configuration parameter add fill-in
any missing package location.

:rtype: list
r)r{�unique_everseen)�construct_package_dir)�
PackageFinder)�PEP420PackageFinder�wherer�r�c3�L># �UHn[TSU5(+v� M g7f)rN)�
_same_path)r7r��searchs  �r0r:� find_packages.<locals>.<genexpr>1s"����V�o��J�v�a�y�!�$<� <� <�o�s�!$�)r�r{r��setuptools.discoveryr�r�r�rf�curdirr��list�len�all�
setdefault�
_nest_path�findrr�getrg�samefiler*)r�r�rl�kwargsr{r�r�r�r��packagesrg�package_path�pkgsr�s             @r0�
find_packagesr�	s���0@�:��6�M��$�2�9�9�H��J�J�w���&�E��H�-�5�r�;K��
�/�/�%�"8�9�
:�F�
�6�{�a��C�V�s�H�o�V�V�V��#�#�B��q�	�2���!�(�1���!�!�,�9�&�9��������4�� � ��$��,����0@�0@��0X�0X��#�#�$9�$�$E�F���Or3c��US;aUO[RRX5n[RRU5$)N>r�r�)rfrgrq�normpath)�parentrgs  r0r�r�@s2���Y�&�6�B�G�G�L�L��,F�D�
�7�7���D�!�!r3c���[U5(aU"5OUn[U[5(aU$[US5(aSR	[[U55$U$)zXWhen getting the version directly from an attribute,
it should be normalised to string.
�__iter__r�)�callabler=rQ�hasattrrq�map)r6�_values  r0�versionr�EsR��!����U�W�U�F��&�#����
��v�z�"�"��x�x��C��(�)�)��X�r3c�:�SU;aURS5US'U$)Nr[r�)r�)�package_datas r0�canonic_package_datar�Rs%��
�l��'�+�+�C�0��R���r3c	��[U[5(aU$UR5VVs/sHup#U[X154PM snn$s snnf)z�For compatibility with ``setup.py``, ``data_files`` should be a list
of pairs instead of a dict.

This function also expands glob patterns.
)r=r�r�ry)�
data_filesrl�destrus    r0�canonic_data_filesr�XsS���*�d�#�#���)�.�.�0��0�N�D�
�}�X�0�1�0����s�Ac	��[SSS9n[UlURX5 UR	5VVs0sHup4U[UR	55_M! nnnUR
URS5 U$s snnf)a+Given the contents of entry-points file,
process it into a 2-level dictionary (``dict[str, dict[str, str]]``).
The first level keys are entry-point groups, the second level keys are
entry-point names, and the second level values are references to objects
(that correspond to the entry-point value).
N)�=)�default_section�
delimiters)rrQ�optionxform�read_stringr��dictr�r�)�text�text_source�parserr�r��groupss      r0�entry_pointsriso���$�6�
B�F��F��
���t�)�-3�\�\�^�
<�^�T�Q�a��a�g�g�i�� �^�F�
<�
�J�J�v�%�%�t�,��M��=s�&Bc�f�\rSrSrSrSSjrSrSSjrS
SjrSSjr	\
SSj5rS	rg
)�EnsurePackagesDiscoveredi{a�Some expand functions require all the packages to already be discovered before
they run, e.g. :func:`read_attr`, :func:`resolve_class`, :func:`cmdclass`.

Therefore in some cases we will need to run autodiscovery during the evaluation of
the configuration. However, it is better to postpone calling package discovery as
much as possible, because some parameters can influence it (e.g. ``package_dir``),
and those might not have been processed yet.
c��XlSUlg)NF)�_dist�_called)r,�distributions  r0r1�!EnsurePackagesDiscovered.__init__�s��!�
���r3c�h�UR(d!SUlURRSS9 gg)zBTrigger the automatic package discovery, if it is still necessary.TF)r-N)rr�set_defaults�r,s r0�__call__�!EnsurePackagesDiscovered.__call__�s*���|�|��D�L��J�J�#�#��#�/�r3c��U$r#rPrs r0�	__enter__�"EnsurePackagesDiscovered.__enter__�s���r3c�p�UR(a%URRR5 ggr#)rrr
�analyse_name)r,�exc_type�	exc_value�	tracebacks    r0�__exit__�!EnsurePackagesDiscovered.__exit__�s&���<�<��J�J�#�#�0�0�2�r3c�J�U"5 URRnUc0$U$r#)rr�)r,�pkg_dirs  r0�_get_package_dir�)EnsurePackagesDiscovered._get_package_dir�s%�����*�*�(�(���_�r�1�'�1r3c�,�[UR5$)zCProxy to ``package_dir`` that may trigger auto-discovery when used.)�LazyMappingProxyrrs r0r��$EnsurePackagesDiscovered.package_dir�s�� �� 5� 5�6�6r3)rrN)rrrRrS)rRr)rztype[BaseException] | NonerzBaseException | NonerzTracebackType | None)rRzMapping[str, str])
rTrUrVrWrXr1rrrr�propertyr�rYrPr3r0rr{sP����0��3�,�3�(�3�(�	3�2�
�7��7r3rc�J�\rSrSrSrS
SjrSSjrSSjrS
SjrSSjr	Sr
g	)ri�a]Mapping proxy that delays resolving the target object, until really needed.

>>> def obtain_mapping():
...     print("Running expensive function!")
...     return {"key": "value", "other key": "other value"}
>>> mapping = LazyMappingProxy(obtain_mapping)
>>> mapping["key"]
Running expensive function!
'value'
>>> mapping["other key"]
'other value'
c��XlSUlgr#��_obtainr�)r,�obtain_mapping_values  r0r1�LazyMappingProxy.__init__�s��+��15��r3c�^�URcUR5UlUR$r#)r�r#rs r0�_target�LazyMappingProxy._target�s#���;�;���,�,�.�D�K��{�{�r3c�(�UR5U$r#)r')r,�keys  r0�__getitem__�LazyMappingProxy.__getitem__�s���|�|�~�c�"�"r3c�4�[UR55$r#)r�r'rs r0�__len__�LazyMappingProxy.__len__�s���4�<�<�>�"�"r3c�4�[UR55$r#)�iterr'rs r0r��LazyMappingProxy.__iter__�s���D�L�L�N�#�#r3r"N)r$z Callable[[], Mapping[_K, _V_co]]rRrS)rRzMapping[_K, _V_co])r*rrRr)rR�int)rRzIterator[_K])rTrUrVrWrXr1r'r+r.r�rYrPr3r0rr�s ���6��
#�#�$r3rr#)ruz
Iterable[str]rl�StrPath | NonerR�	list[str])r�zStrPath | Iterable[StrPath]rlr4rRrQ)r�zIterable[StrPath]rRzIterator[StrPath])r�zbytes | StrPathrRrQ)r�rrlrQ)NN)r�rQr��Mapping[str, str] | Nonerlr4rRr)r�rQr�r4rRr	)r.r	r�rQrRr
)r�rQr�r6rlrrRz
str | None)r�rQr�r6rlr4rRr)r�zdict[str, str]r�r6rlr4rRzdict[str, Callable])r�zdict[str, str] | Nonerlr4rRr5)r�rrgrrRrQ)r6z$Callable | Iterable[str | int] | strrRrQ)r�r�rRr�)r�zlist | dictrlr4rRzlist[tuple[str, list[str]]])zentry-points)r�rQr�rQrRzdict[str, dict[str, str]])DrX�
__future__rr$r�rfr&r��collections.abcrrr�configparserr�globr�importlib.machineryr	r
�	itertoolsrr�typesr
r�typingrrrrr�r�_pathrrr��	discoveryr�warningsr�distutils.errorsr�typing_extensionsr�setuptools.distrrrr ryr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrPr3r0�<module>rEs;���(#�
��	��
�7�7�%��8���+�8�8��4�)�(�1��&�,��T�]����4�(��P�P�89=����'5����DHL��*��6D����(E��
�-1�#�%*��%*�)�%*��%*�	�	%*�P��D��D�#;�D�GN�D��D�2-1�#�
'��
'�)�
'��
'��	
'�$-1�#�S��S�)�S��S��	S��.2�#�	4�,�4��	4��
4�n"�

��9=����'5�� ��$#1��

������$(7�(7�V$�w�r�5�y�)�$r3

Youez - 2016 - github.com/yon3zu
LinuXploit