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_sdist.cpython-313.pyc
�

�hh��	�p�SrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
Jr SSKJr SSK
Jr SSKrSSKrSSKJrJr SSKJr SSKJr SS	KJr SS
KJr SSKJr SSKJ r  S
SK!J"r" SSK#r#SSK$J%r% SSS/SS/0S\RLROSS5/4/S.r(S\(<S3r)\"S\RLROSS5/\RLROSS5/S9r*\*RV\*RX-r-\R\S5r/Sr0Sr1S r2S!r3\RhRk\3"5S"S#9r6\RhRoS$S%S#9r8\RhRo\#RrRuS&5(+S'S#9r;S(r<S)r="S*S+5r>S,r?"S-S.5r@S/rAS0rBg)1zsdist tests�N��cleandoc)�Path)�mock)�Command�SetuptoolsDeprecationWarning)�metadata)�manifest_maker)�sdist)�Distribution)�	Extension)�
fail_on_ascii�)�	Filenames)�	run_setup�
sdist_testz0.0z*.txt�data�d�e.dat)�name�version�packages�package_data�
data_filesz&from setuptools import setup

setup(**z)
�sdist_test.fzf.c�f.h�r�sources�dependsc#�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  �=/usr/lib/python3/dist-packages/setuptools/tests/test_sdist.py�quietr*6sT��� �Z�Z����
��[�[�]�B�K�K�M��C�J��
�8�
�!+���
�C�J�����
�C�J�s�AB� A;�$B�;B�Bc���[U[5(d/UR[RRS5S5$UR[RS5$)N�ascii�/�/)�
isinstance�str�replace�os�sep�encode��paths r)�posixr7AsB���d�C� � ��|�|�B�F�F�M�M�'�2�D�9�9��|�|�B�F�F�C�(�(�c���[U[5(a[R"SU5$UR	S5n[R"SU5nURS5nU$![a U$f=f)N�NFD�utf-8)r/r0�unicodedata�	normalize�decoder4�UnicodeErrorr5s r)�	decomposer@Isu���$�����$�$�U�D�1�1�
��{�{�7�#���$�$�U�D�1���{�{�7�#���K���
���K�
�s�9A)�)
A7�6A7c�p�[US5nUR5sSSS5 $!,(df   g=f)N�rb)�open�read)�filename�fps  r)�read_all_bytesrGUs#��	
�h��	���w�w�y�
�	�	�s�'�
5c���[R"[RS9up[R
"U5 [R"U5 g![a gf=f)N)�suffixT)�tempfile�mkstempr�latin_1r2�close�remove�	Exception)�descrEs  r)�latin1_failrQZsH���!�)�)��1B�1B�C���
�����
�	�	�(�������s�AA�
A �A z)System does not support latin-1 filenames)�reasonz%os.environ.get('PYTEST_XDIST_WORKER')zpytest-dev/pytest-xdist#843�
setuptoolsz/the test is not supported with stdlib distutilsc�:�[US5R5 U$)N�wb)rCrMr5s r)�touchrVss����t������Kr8c��[R"X5 U$![[4a [R
"S5 gf=f)Nzsymlink not supported in OS)r2�symlink�OSError�NotImplementedError�pytest�skip)�src�dsts  r)�symlink_or_skip_testr_xsA���
�
�
�3���J��
�(�)�����1�2���s��&A�Ac��\rSrSr\R
"SS9S5rSrSrSr	Sr
S	rS
rSr
SS
SSS.r\\R R#S\R%55S55rSrSrSrSrSrSr\S5r\S5r\S5r\S5r\ S5r!\\ S55r"\#S5r$\ \S 55r%S!S"S#S$S%.r&\R R#S&\&R%55\R ROS'5S(55r(S)r)S*r*S+r+\R RYS,5S-5r-S.r.g/)0�
TestSdistTest�T)�autousec#�# �US-nUR5 US-R[SS9 US-nUR5 US-nUR5 SHn[X$-5 M [US-5 [Hn[X-5 M UR5 Uv� SSS5 g!,(df   g=f7f)	N�project_root�setup.pyr;��encodingrr)z__init__.py�a.txt�b.txt�c.rstr)�mkdir�
write_text�SETUP_PYrV�EXTENSION_SOURCES�as_cwd)�self�tmpdir�test_pkg�data_folder�fnames     r)�
source_dir�TestSdistTest.source_dir�s�����.�(������	�*�	�(�(��G�(�D��L�(�������s�l������@�E��(�"�#�@�
�k�G�#�$�'�E��&�.�!�'��]�]�_��L��_�_�s�B%C�'B5�,	C�5
C�?Cc�`�URRn[RR	SS5U;de[RR	SS5U;de[RR	SS5U;de[RR	SS5U;deg)Nrrirjrkrr)�filelist�filesr2r6�join)rq�cmd�manifests   r)�assert_package_data_in_manifest�-TestSdistTest.assert_package_data_in_manifest�s����<�<�%�%���w�w�|�|�L�'�2�h�>�>�>��w�w�|�|�L�'�2�h�>�>�>��w�w�|�|�L�'�2�(�B�B�B��w�w�|�|�C��)�X�5�5�5r8c���0[ES[/0En[U5nSUl[	U5nUR5 [
5 UR5 SSS5 U$!,(df   U$=f)N�ext_modulesrf)�SETUP_ATTRS�	EXTENSIONr�script_namer�ensure_finalizedr*�run�rq�setup_attrs�distr|s    r)�setup_with_extension�"TestSdistTest.setup_with_extension�se��A��A�m�i�[�A���K�(��%����D�k������
�W��G�G�I���
��W��
�s�	A$�$
A3c���[[5nSUl[U5nUR	5 [5 UR
5 SSS5 URU5 g!,(df   N =f)z�Regression test for pull request #4: ensures that files listed in
package_data are included in the manifest even if they're not added to
version control.
rfN)rr�r�rr�r*r�r~)rqr�r|s   r)�test_package_data_in_sdist�(TestSdistTest.test_package_data_in_sdist�sV���K�(��%����D�k������
�W��G�G�I��	
�,�,�S�1��W�s�A'�'
A5c��0[ESS0EnUS(de[U5nSUl[U5nUR	5 [5 UR
5 SSS5 URU5 g!,(df   N =f)z=
Ensure package_data and include_package_data work
together.
�include_package_dataTrrfN)r�rr�rr�r*r�r~r�s    r)�3test_package_data_and_include_package_data_in_sdist�ATestSdistTest.test_package_data_and_include_package_data_in_sdist�sw��
D��C�&<�d�C���>�*�*�*��K�(��%����D�k������
�W��G�G�I��	
�,�,�S�1��W�s�A;�;
B	c��UR5nURU5 URRn[H
nX2;aM
e g)zu
Ensure that the files listed in Extension.sources and Extension.depends
are automatically included in the manifest.
N)r�r~ryrzro)rqr|r}r6s    r)�test_extension_sources_in_sdist�-TestSdistTest.test_extension_sources_in_sdist�sE��
�'�'�)���,�,�S�1��<�<�%�%��%�D��#�#�#�&r8c���[Hn[R"U5 M UR5nUR	U5 UR
Rn[H
nX;aM
e g)z�
Similar to test_extension_sources_in_sdist but the referenced files don't exist.
Missing files should not be included in distribution (with no error raised).
N)ror2rNr�r~ryrz)rqr6r|r}s    r)�test_missing_extension_sources�,TestSdistTest.test_missing_extension_sources�s\��
&�D��I�I�d�O�&��'�'�)���,�,�S�1��<�<�%�%��%�D��'�'�'�&r8c���/n[H|n[RRU5up4US-U-n[R"X%5 [[RR
U5U5 URU5 M~ UR5nURU5 URRn[H
nX';aM
e UH
nX';aM
e g)z�
Similar to test_extension_sources_in_sdist but the referenced files are
instead symbolic links to project-local files. Referenced file paths
should be included. Symlink targets themselves should NOT be included.
z_target.N)ror2r6�splitext�renamer_�basename�appendr�r~ryrz)rq�	symlinkedr6�base�ext�targetr|r}s        r)� test_symlinked_extension_sources�.TestSdistTest.test_symlinked_extension_sources�s����	�%�D����(�(��.�I�D��J�&��,�F��I�I�d�#� ����!1�!1�&�!9�4�@����V�$�
&��'�'�)���,�,�S�1��<�<�%�%��%�D��#�#�#�&��D��'�'�'�r8c�|�[RR[RRSS55$)Nrr)r2r6�abspathr{�r8r)�<lambda>�TestSdistTest.<lambda>s!���G�G�O�O�B�G�G�L�L��u�=�>r8c�F�[RRSSSS5$)Nr�..r�r2r6r{r�r8r)r�r�s���G�G�L�L��t�\�5�Ar8c�B�[RRSS5$)Nrzthis_file_does_not_exist.hr�r�r8r)r�r�s���G�G�L�L��'C�Dr8c�h�[[[RR	SS55S5$)Nr�zoutside_of_project_root.hz	symlink.h)r_rVr2r6r{r�r8r)r�r�s%�� ��b�g�g�l�l�4�)D�E�F��
r8)zmust be relativezcan't have `..` segmentsz
doesn't existzmust be inside the project rootrRc���URU"5n[S/U/S9n0[ESU/0En[U5nSUl[U5nUR
5 [5 UR[R5 UR5 SSS5 SSS5 URU5 URRnX8;deURV	V
Vs/sH-up�nU	S:XdMU
[R:XdM$X;;dM+UPM/ nn
n	n[!U5S:XdeUunX;deg!,(df   N�=f!,(df   N�=fs snn
n	f)a�
Due to backwards compatibility reasons, `Extension.depends` should accept
invalid/weird paths, but then ignore them when building a sdist.

This test verifies that the source distribution is still built
successfully with such paths, but that instead of adding these paths to
the manifest, we emit an informational message, notifying the user that
the invalid path won't be automatically included.
rrr�rfN�rootr)�_INVALID_PATHSr
r�rr�rr�r*�at_level�logging�INFOr�r~ryrz�
record_tuples�len)
rqrR�caplog�invalid_path�	extensionr�r�r|r}�logger�level�message�expected_messages
             r)�test_invalid_extension_depends�,TestSdistTest.test_invalid_extension_dependssJ���*�*�6�2�4�����!�N�
�	�
B��A�m�i�[�A���K�(��%����D�k������
�W�f�o�o�g�l�l�3��G�G�I�4�W�	
�,�,�S�1��<�<�%�%���+�+�+�-3�,@�,@�
�,@�(����&� �
��W�\�\�)�	
�
!�+�
�,@�	�
��#�$��)�)�)�.��	��)�)�)�%4�3��W�W��
s<�% E
�D9�E
�$
E�5E�E�E�9
E	�E
�

Ec�p^�SSKJn [R"5m"U4SjSU5n0[ESS0EnUS(de[U5nSUl[U5nUR5 S	U0Ul	S	U0URl	URRS	5U:XdeS
n[5 [R"[US9 UR!5 SSS5 SSS5 TR#5 UR%U5 g!,(df   N8=f!,(df   NA=f)
zY
Ensure projects defining custom build_py don't break
when creating sdists (issue #2849)
r)�build_pyc�0>^�\rSrSrSrUU4SjrSrU=r$)�9TestSdistTest.test_custom_build_py.<locals>.CustomBuildPyiIz@
Some projects have custom commands inheriting from `distutils`
c�.>�T"5 [TU]5$r!)�super�get_data_files)rq�	__class__�using_custom_command_guards ��r)r��HTestSdistTest.test_custom_build_py.<locals>.CustomBuildPy.get_data_filesNs���*�,��w�-�/�/r8r�)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r��__static_attributes__�
__classcell__)r�r�s@�r)�
CustomBuildPyr�Is���
�
0�
0r8r�r�Trrfr�zsetuptools instead of distutils)�matchN)�distutils.command.build_pyr�r�Mockr�rr�rr��cmdclass�distribution�get_command_classr*r[�warnsrr��
assert_calledr~)rq�OrigBuildPyr�r�r�r|�msgr�s       @r)�test_custom_build_py�"TestSdistTest.test_custom_build_py@s����
	G�%)�Y�Y�[�"�	0�K�	0�D��C�&<�d�C���>�*�*�*��K�(��%����D�k������#�M�2���%/��$?����!����1�1�*�=��N�N�N�/��
�W�f�l�l�#?�s�K��G�G�I�L�W�	#�0�0�2��,�,�S�1�	L�K��W�W�s$�9D'�D�$D'�
D$	� D'�'
D5c�
�[[5nSUl[U5nUR	5 [5 UR
5 SSS5 URRnSU;deg!,(df   N-=f�N�foo.pyrf)	rr�r�rr�r*r�ryrz�rqr�r|r}s    r)�test_setup_py_exists�"TestSdistTest.test_setup_py_existsfsc���K�(��#����D�k������
�W��G�G�I���<�<�%�%���X�%�%�%�	�W�s�A4�4
Bc�~�[[5nSUl[U5nUR	5 [
RRS5(a[
R"S5 [5 UR5 SSS5 URRnSU;deg!,(df   N-=fr�)
rr�r�rr�r2r6�existsrNr*r�ryrzr�s    r)�test_setup_py_missing�#TestSdistTest.test_setup_py_missingrs����K�(��#����D�k������
�7�7�>�>�*�%�%��I�I�j�!�
�W��G�G�I���<�<�%�%����)�)�)�	�W�s�6B.�.
B<c�v�[SSSS9nURS5 SSS5 [[5nSUl[U5nUR
5 [5 UR5 SSS5 URRnSU;deg!,(df   N�=f!,(df   N>=f)N�MANIFEST.in�wr;rgzexclude setup.pyr�rf)rC�writerr�r�rr�r*r�ryrz)rq�
manifest_filer�r|r}s     r)�test_setup_py_excluded�$TestSdistTest.test_setup_py_excluded�s���
�-��w�
7�=���� 2�3�8��K�(��#����D�k������
�W��G�G�I���<�<�%�%����)�)�)�8�
7���W�s�B�!B*�
B'�*
B8c��[US-5 [US-5 [[5nSUl[	U5nUR5 [
5 UR5 SSS5 [SURR5nSU;dU5eSU;dU5eSU;dU5eg!,(df   NW=f)z~
Make sure default files (README.*, etc.) are added in a case-sensitive
way to avoid problems with packages built on Windows.
z
readme.rstz	SETUP.cfgzsetup.PYNc�"�UR5$r!)�lower)�xs r)r��>TestSdistTest.test_defaults_case_sensitivity.<locals>.<lambda>�s
�����r8rfz	setup.cfg)rVrr�r�rr�r*r��mapryrz�rqrvr�r|r}s     r)�test_defaults_case_sensitivity�,TestSdistTest.test_defaults_case_sensitivity�s���	�j�<�'�(�
�j�;�&�'��K�(��&����D�k������
�W��G�G�I���*�C�L�L�,>�,>�?���8�+�5�X�5�+���)�3�8�3�)��(�*�4�H�4�*��W�s�B:�:
Cc��SSSSSSSS.nSSSS.n0UEUER5HAupE[X5RRSSS9 [X5R	USS9 MC UR5nUR
U5 URRVs1sH"owR[RS	5iM$ nnUH6n	[RRU	5(deX�;aM0X�45e UH6n	[RRU	5(deX�;aM0X�45e gs snf)
NzJglobal-include LICEN[CS]E* COPYING* NOTICE* AUTHORS*
global-include *.txt
�)r�zBtest/.venv/lib/python3.9/site-packages/bar-2.dist-info/AUTHORS.rstzDsrc/.nox/py/lib/python3.12/site-packages/bar-2.dist-info/COPYING.txtzEdoc/.tox/default/lib/python3.11/site-packages/foo-4.dist-info/LICENSEz.venv-requirements.txtz.tox-coveragerc.txtz.noxy/coveragerc.txt)zA.tox/release/lib/python3.11/site-packages/foo-4.dist-info/LICENSEz@.nox/py/lib/python3.12/site-packages/bar-2.dist-info/COPYING.txtz=.venv/lib/python3.9/site-packages/bar-2.dist-info/AUTHORS.rstT)�parents�exist_okr;rgr.)�itemsr�parentrlrmr�r~ryrzr1r2r3r6r�)
rqrv�included�excluded�file�contentr|�fr}r6s
          r)�#test_exclude_dev_only_cache_folders�1TestSdistTest.test_exclude_dev_only_cache_folders�sP��)�
SU�TV�UW�&(�#%�$&�
��(RT�PR�MO�
��6��5�H�5�;�;�=�M�D���"�)�)�/�/��t�/�L���"�-�-�g��-�H�>��'�'�)���,�,�S�1�47�L�L�4F�4F�G�4F�q�I�I�b�f�f�c�*�4F��G��D��7�7�>�>�$�'�'�'�'��'�9�$�)9�9�'���D��7�7�>�>�$�'�'�'�'��#�5�d�%5�5�#���	Hs�#)Ec�>�[[5nSUl[U5n[R
R
SS5Ul[R"S5 [R
R
SS5n[U5 [5 UR5 URRU5 UR5 SSS5 [UR5nUR!S5n[#U5U;deg!,(df   NF=f)Nrf�sdist_test.egg-info�SOURCES.txtru
smörbröd.py�UTF-8)rr�r�r
r2r6r{r}rlrVr*r�ryr��write_manifestrGr>r7)rqr��mmrE�contents�
u_contentss      r)�+test_manifest_is_written_with_utf8_encoding�9TestSdistTest.test_manifest_is_written_with_utf8_encoding�s����K�(��%���
�D�
!���g�g�l�l�#8�-�H���
���&�'��7�7�<�<��o�>��	�h���W��F�F�H��K�K���x�(������
"�"�+�+�.���_�_�W�-�
��X��*�,�,�,��W�s�<D�
Dc���[[5nSUl[U5n[R
R
SS5Ul[R"S5 [R
R
S[R5n[U5 [5 UR5 URS5nURR R#U5 UR%5 SSS5 ['UR5nURS5 [)U5U;deWURR ;deg!,(df   Nb=f)Nrfrr�
sdist_testr;r)rr�r�r
r2r6r{r}rlr�utf_8rVr*r�r>ryrzr�rrGr7�rqr�r	rE�
u_filenamer
s      r)�)test_write_manifest_allows_utf8_filenames�7TestSdistTest.test_write_manifest_allows_utf8_filenames�s���K�(��%���
�D�
!���g�g�l�l�#8�-�H���
���&�'��7�7�<�<�
�y���?��	�h���W��F�F�H�!����1�J��K�K���$�$�Z�0������"�"�+�+�.��	���� ��X��(�*�*�*��R�[�[�.�.�.�.�.�!�W�s
� AE�
E!c��[[5nSUl[U5n[R
R
SS5Ul[R"S5 [R
R
S[R5n[5 UR5 URSS5nURRU5 UR!5 SSS5 [#UR5nURS5 [%U5U;deWURR&;deg!,(df   Nb=f)	z�
Files that cannot be encoded to UTF-8 (specifically, those that
weren't originally successfully decoded and have surrogate
escapes) should be omitted from the manifest.
See https://bitbucket.org/tarek/distribute/issue/303 for history.
rfrrrr;�surrogateescapeNr)rr�r�r
r2r6r{r}rlrrLr*r�r>ryr�rrGr7rzrs      r)�,test_write_manifest_skips_non_utf8_filenames�:TestSdistTest.test_write_manifest_skips_non_utf8_filenamess����K�(��%���
�D�
!���g�g�l�l�#8�-�H���
���&�'��7�7�<�<�
�y�/@�/@�A���W��F�F�H�!����2C�D�J��K�K���z�*������"�"�+�+�.��	���� ��X��h�.�.�.�����!2�!2�2�2�2�!�W�s
�AD?�?
E
c���[[5nSUl[U5nUR	5 [5 UR
5 SSS5 [RRS[R5n[RRSS5Ul[URS5nURSU-5 UR5 [!U5 /UR"l[5 UR'5 SSS5 UR)S5nX2R"R$;deg!,(df   GN=f!,(df   NM=f)Nrfrrr�ab�
r;)rr�r�rr�r*r�r2r6r{rrr}rCr�rMrVryrz�
read_manifestr>�rqr�r|rEr}s     r)�(test_manifest_is_read_with_utf8_encoding�6TestSdistTest.test_manifest_is_read_with_utf8_encoding5s����K�(��%����D�k�������W��G�G�I���7�7�<�<�
�y���?���w�w�|�|�$9�=�I�������d�+�����u�x�'�(�����	�h�� �����
�W�������?�?�7�+���<�<�-�-�-�-�-�)�W���W���E�E �
E� 
E.c���[[5nSUl[U5nUR	5 [5 UR
5 SSS5 [RRS[R5n[RRSS5Ul[URS5nURSU-5 UR5 [!U5 /UR"l[5 UR'5 SSS5 UR)S5nX2R"R$;deg!,(df   GN=f!,(df   NM=f)Nrfrrrrr�latin-1)rr�r�rr�r*r�r2r6r{rrLr}rCr�rMrVryrzrr>rs     r)�+test_read_manifest_skips_non_utf8_filenames�9TestSdistTest.test_read_manifest_skips_non_utf8_filenamesTs���K�(��%����D�k�������W��G�G�I���7�7�<�<�
�y�/@�/@�A���w�w�|�|�$9�=�I�������d�+�����u�x�'�(�����	�h�� �����
�W�������?�?�9�-���|�|�1�1�1�1�1�)�W���W�r c��[UR[55nSUl[	U5nUR5 [RRS[R5n[U5 [5 UR5 SSS5 [RS:Xa[!U5n[R""5n[RS:Xa`US:Xa-UR%S5nX2R&R(;degUR%S5nX2R&R(;degUR%S5nX2R&R(;deg!,(df   N�=f)Nrfr�darwin�win32�cp1252�mbcsr;)r�make_stringsr�r�rr�r2r6r{rrrVr*r�r"�platformr@�getfilesystemencodingr>ryrz�rqr�r|rE�fs_encs     r)�%test_sdist_with_utf8_encoded_filename�3TestSdistTest.test_sdist_with_utf8_encoded_filenamess���D�-�-�k�:�;��%����D�k�������7�7�<�<�
�y���?��
�h��
�W��G�G�I���<�<�8�#� ��*�H��*�*�,���<�<�7�"���!�#�?�?�8�4���<�<�#5�#5�5�5�5�#�?�?�6�2���<�<�#5�#5�5�5�5����w�/�H��|�|�1�1�1�1�1�%�W�s�E2�2
Fc��[U[5(a4UR5VVs0sHup#X RU5_M snn$[U[5(a[	[URU55$[
U5$s snnfr!)r/�dictr�r*�listr�r0)�cls�item�key�values    r)r*�TestSdistTest.make_strings�so���d�D�!�!�CG�:�:�<�P�<�Z�S�C�)�)�%�0�0�<�P�P��d�D�!�!���C�,�,�d�3�4�4��4�y���Qs�B	c��[UR[55nSUl[	U5nUR5 [RRS[R5n[U5 [RRU5(de[5 UR5 SSS5 [R S:XaJ[R""5nUS:waSnUR%U5nX2R&R(;degUR%S5nX2R&R(;deg!,(df   N�=f)Nrfrr'r)r")rr*r�r�rr�r2r6r{rrLrV�isfiler*r�r"r+r,r>ryrzr-s     r)�'test_sdist_with_latin1_encoded_filename�5TestSdistTest.test_sdist_with_latin1_encoded_filename�s���D�-�-�k�:�;��%����D�k�������7�7�<�<�
�y�/@�/@�A��
�h���w�w�~�~�h�'�'�'�'�
�W��G�G�I���<�<�7�"��.�.�0�F����"�����v�.�H��|�|�1�1�1�1�1� ���y�1�H��<�<�#5�#5�5�5�5�!�W�s�*E�
Ez�
            [metadata]
            name = testing
            version = file: src/VERSION.txt
            license_files = DOWHATYOUWANT
            long_description = file: README.rst, USAGE.rst
            a

            [project]
            name = "testing"
            readme = "USAGE.rst"
            license-files = ["DOWHATYOUWANT"]
            dynamic = ["version"]
            [tool.setuptools.dynamic]
            version = {file = ["src/VERSION.txt"]}
            a
            [project]
            name = "testing"
            readme = "USAGE.rst"
            license-files = ["DOWHATYOUWANT"]
            dynamic = ["version"]
            [tool.setuptools.dynamic]
            version = {file = "src/VERSION.txt"}
            a	
            [project]
            name = "testing"
            readme = "USAGE.rst"
            license = {file = "DOWHATYOUWANT"}
            dynamic = ["version"]
            [tool.setuptools.dynamic]
            version = {file = "src/VERSION.txt"}
            )z(setup.cfg - long_description and versionz@pyproject.toml - static readme/license files and dynamic versionz3pyproject.toml - directive with str instead of listz9pyproject.toml - deprecated license table with file entry�configz6ignore:.project.license. as a TOML table is deprecatedc�`�URS5un nURUnUS-R5 US-RSSS9 US-RSSS9 US	-RSSS9 US
-RSSS9 X-RUSS9 [	S/05nSUlUR
5 [U5nUR5 [5 UR5 SSS5 SURR;dS
URR;deS	URR;deS
URR;deSURR;deSURR;deg!,(df   N�=f)Nz - r]zsrc/VERSION.txtz0.42r;rgz
README.rstzhello world!z	USAGE.rst�
DOWHATYOUWANTrrfzsrc\VERSION.txtr.�\)
�	partition�_EXAMPLE_DIRECTIVESrlrmrr��parse_config_filesrr�r*r�ryrz)rqrvr=�config_file�_�config_textr�r|s        r)�.test_add_files_referenced_by_config_directives�<TestSdistTest.test_add_files_referenced_by_config_directives�s���
#�,�,�U�3���Q���.�.�v�6��	�e�	�"�"�$�	�'�	'�3�3�F�W�3�M�	�l�	"�.�.�~��.�P�	�k�	!�-�-�n�w�-�O�	�o�	%�1�1�.�7�1�S�	�	!�-�-�k�G�-�L��Z��,�-��%������!��D�k������
�W��G�G�I��
����!3�!3�3�!�S�\�\�%7�%7�7�	
�
8��c�l�l�0�0�0�0�0��#�,�,�"4�"4�4�4�4��#�,�,�,�,�,�,�,��3�<�<�-�-�-�-�-��W�s�F�
F-c�&�[US-5 [[5nSUl[	U5nUR5 [
5 UR5 SSS5 URRnSU;deg!,(df   N-=f)zG
Check if pyproject.toml is included in source distribution if present
�pyproject.tomlrfN)
rVrr�r�rr�r*r�ryrzr�s     r)�test_pyproject_toml_in_sdist�*TestSdistTest.test_pyproject_toml_in_sdistsq��	�j�+�+�,��K�(��%����D�k������
�W��G�G�I���<�<�%�%���8�+�+�+��W�s�
B�
Bc��[US-5 [SSSS9n[SUS9 SSS5 [[5nS	Ul[
U5nUR5 [5 UR5 SSS5 URRnSU;deg!,(df   N�=f!,(df   N>=f)
z8
Check that pyproject.toml can excluded even if present
rJr�r�r;rgzexclude pyproject.toml)r�Nrf)rVrC�printrr�r�rr�r*r�ryrz)rqrv�mtsr�r|r}s      r)�test_pyproject_toml_excluded�*TestSdistTest.test_pyproject_toml_excludeds���	�j�+�+�,�
�-��w�
7�3��*��5�8��K�(��%����D�k������
�W��G�G�I���<�<�%�%���x�/�/�/�8�
7���W�s�B �(B1� 
B.�1
B?c���[US-5 [0[ESS0E5n[U5nUR	5 [5 UR
5 SSS5 URRnSU;de[0[ESS0E5nURS5n/URQSPUl
"SS[5nURRUS9 [U5nS	UlUR	5 [5 UR
5 SSS5 URRnSU;deg!,(df   N�=f!,(df   N>=f)
N�.myfile~r�rf�build)�build_customNc�,�\rSrSrSrSrSrSrSrg)�FTestSdistTest.test_build_subcommand_source_files.<locals>.build_customi/c��gr!r��rqs r)�initialize_options�YTestSdistTest.test_build_subcommand_source_files.<locals>.build_custom.initialize_options0s��#r8c��gr!r�rYs r)�finalize_options�WTestSdistTest.test_build_subcommand_source_files.<locals>.build_custom.finalize_options2s��r8c��gr!r�rYs r)r��JTestSdistTest.test_build_subcommand_source_files.<locals>.build_custom.run4s��3r8c��S/$)NrSr�rYs r)�get_source_files�WTestSdistTest.test_build_subcommand_source_files.<locals>.build_custom.get_source_files6s
��"�|�#r8r�N)	r�r�r�r�rZr]r�rbr�r�r8r)rUrW/s��-�+��
$r8rU)rUT)rVrr�rr�r*r�ryrz�get_command_obj�sub_commandsrr��update�use_defaults)rqrvr�r|r}rTrUs       r)�"test_build_subcommand_source_files�0TestSdistTest.test_build_subcommand_source_filess/��
�j�:�%�&��F�{�F�M�:�F�G���D�k������
�W��G�G�I���<�<�%�%����)�)�)��F�{�F�M�:�F�G���$�$�W�-��J�u�1�1�J�3I�J���	$�7�	$�	
�
�
���,��7��D�k���������
�W��G�G�I���<�<�%�%���X�%�%�%�9�W��2�W�s�	E�E�
E�
E&z6os.environ.get('SETUPTOOLS_USE_DISTUTILS') == 'stdlib'c	��[0[ESSS[R"S500S.E5n[	U5nUR5 [
5 UR5 SSS5 g!,(df   g=f)zC
Ensure if build_base is a pathlib.Path, the build still succeeds.
rfrT�
build_base)r��optionsN)rr��pathlibrrr�r*r�)rqrvr�r|s    r)�test_build_base_pathlib�%TestSdistTest.test_build_base_pathlibCsh��
�
��
�%��,����W�0E�!F�G�
���
�D�k������
�W��G�G�I��W�W�s�A.�.
A<r�N)/r�r�r�r�r[�fixturervr~r�r�r�r�r�r�r��skip_under_stdlib_distutils�mark�parametrize�keysr�r�r�r�r�r�rrrr�skip_under_xdistrr� fail_on_latin1_encoded_filenamesr#r/�classmethodr*r;rB�filterwarningsrGrKrPrh�skipifrnr�r�r8r)rara�s���^�^�D�!��"��06��2� 2�$	$�(�(�0
�%
�
�,
��N�$!��[�[���X�~�':�':�'<�=�)*�>�!�)*�V$2�L
&�*�
*�5�8&6�P�-��-�8�/��/�@�!3��!3�F�.��.�<&�2�&�2�<�%�2�&��2�<����&��6��&�6�>5�M�@�F�5#��J�[�[���X�':�'?�'?�'A�B��[�[���@��.��C�.�8,�0� #&�J�[�[���P�Q��R�r8rac��[RRS5unUR5n[	US5(deg)a�
When _default_revctrl was removed from the `setuptools.command.sdist`
module in 10.0, it broke some systems which keep an old install of
setuptools (Distribute) around. Those old versions require that the
setuptools package continue to implement that interface, so this
function provides that interface, stubbed. See #320 for details.

This interface must be maintained until Ubuntu 12.04 is no longer
supported (by Setuptools).
zg
        [setuptools.file_finders]
        svn_cvs = setuptools.command.sdist:_default_revctrl
        �__iter__N)r	�EntryPoints�
_from_text�load�hasattr)�ep�ress  r)�test_default_revctrlr�SsA��
� � �+�+�	�
�E�R�
�'�'�)�C��3�
�#�#�#�#r8c��\rSrSrSr\S5r\RRSS5S5r
\S5r\RRSS5S	5rS
r
g)�TestRegressionsihzd
Can be removed/changed if the project decides to change how it handles symlinks
or external files.
c�8�SSS00[SU<S35SSS.S.$)	N�dir�file.hr��[
                    from setuptools import Extension, setup
                    setup(
                        name="myproj",
                        version="42",
                        ext_modules=[
                            Extension(
                                "hello", sources=["hello.pyx"],
                                depends=[�e]
                            )
                        ],
                    )
                    �global-include *.h�rfz	hello.pyxr���external�projectr)�tmp_path�dep_paths  r)�&files_for_symlink_in_extension_depends�6TestRegressions.files_for_symlink_in_extension_dependsnsI����"�~��%�*�+3��6��� �3�#�	
�	
r8r�)zmyheaders/dir/file.hzmyheaders/dir/../dir/file.hc���URX#5n[RRU[	U5S9 [US-US-5 [
XS-5nSH
nXe;aM
e g)N��prefixr�zproject/myheadersr�)zmyproj-42/hello.pyxzmyproj-42/myheaders/dir/file.h)r��jaracor6rTr0r_�	run_sdist)rq�monkeypatchr�r�rz�members�expecteds       r)�!test_symlink_in_extension_depends�1TestRegressions.test_symlink_in_extension_depends�so��
�;�;�H�O�������%��H�
��6��X�
�2�H�?R�4R�S��K�I�)=�>��
�H��&�&�&�	
r8c��URS5up#nU(aX-OUnSSS00[S[U5<S35SSS.S	.$)
Nz$tmp_path$/r�r�r�r�r�r�r�r�)rArr0)r�r��headrE�tails     r)�,files_for_external_path_in_extension_depends�<TestRegressions.files_for_external_path_in_extension_depends�sm�� �*�*�=�9�
���&*�8�?�����"�~��%�*�+.�h�-�):�;��� �3�#�	
�	
r8)z$tmp_path$/external/dir/file.hz../external/dir/file.hc��URX#5n[RRU[	U5S9 [XS-5nUHnSU;aMe g)Nr�r�r�)r�r�r6rTr0r�)rqr�r�r�rzr�rs       r)�'test_external_path_in_extension_depends�7TestRegressions.test_external_path_in_extension_depends�sV��
�A�A�(�U�������%��H�
��6��K�I�)=�>���D��4�'�'�'�r8r�N)r�r�r�r�r��staticmethodr�r[rrrsr�r�r�r�r�r8r)r�r�hs����
�
��
�4�[�[����K��
'��
'��
��
�:�[�[����P��(��(r8r�c�f�URU5 [5 [SS/5 SSS5 [US-R	S55n[
R"[U55n[UR55sSSS5 $!,(df   Nm=f!,(df   g=f)z@Given a project directory, run the sdist and return its contentsrfrNr�z*.tar.gz)
�chdirr*r�next�glob�tarfilerCr0�set�getnames)r�r��archive�tars    r)r�r��s{�����g��	���*�w�i�(�
��G�f�$�*�*�:�6�7�G�	���c�'�l�	#�s��3�<�<�>�"�
$�	#�	
���
$�	#�s�B�.B"�
B�"
B0c���[R"U5nUR5nSSS5 WVs/sH
nSU;dMUPM nn[U5S:Xd
SU35eg!,(df   NB=fs snf)Nz.toxrz
not empty )r�rCr�r�)�setuptools_sdistr�rzr�	tox_filess     r)�&test_sanity_check_setuptools_own_sdistr��sh��	���&�	'�3������
(�#(�:�%�$�6�T�>��%�I�:��y�>�Q��8�*�Y�K� 8�8��
(�	'��;s�A$�
A5�A5�$
A2)Cr��
contextlibr%r�r2rmr"r�rJr<�inspectrr�unittestr�jaraco.pathr�r[rSrr�setuptools._importlibr	�setuptools.command.egg_infor
�setuptools.command.sdistr�setuptools.distr�setuptools.extensionr
�setuptools.testsr�textr�	distutils�distutils.corerr6r{r�rnr�rrro�contextmanagerr*r7r@rGrQrr�xfailrvryru�__package__�
startswithrqrVr_rar�r�r�r�r�r8r)�<module>r�s�����	��	��
��������
�<�*�6�*�(�*�*���$�
����!�G�9�-��R�W�W�\�\�#�w�7�8�9�:���	�
�����
�	�
�W�W�\�\�,��
.�/�
�W�W�\�\�,��
.�/�
�	�
�%�%�	�(9�(9�9�����8��8�)�	��
�$*�;�;�#4�#4��M�6�$5�$� ��;�;�%�%�+�(�&���%�k�k�0�0����(�(��6�6�<�1����
�O�O�d$�*\(�\(�~#�9r8

Youez - 2016 - github.com/yon3zu
LinuXploit