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

�hj7���SSKrSSKrSSKrSSKrSSKJr SSKJr SSKr	SSK
r
SSKJr SSK
Jr SSKJr SrS	rS
r\
R(R+SS\S
S9S5r\"S5SSSSSS.S.\"S5S.rSr\
R(R5S5S5r\"S5SSSSSS.SS0S.0SSS.\"S5S .rS!r"S"S#5rS&S$jrS%r g)'�N)�Path)�Mock)�SetuptoolsDeprecationWarning)�Distribution�)�DALSc	��[[SS/S/SS/0S95n[R"S5 UR	5 UR5 g)zv
Directories matching the glob in package_data should
not be included in the package data.

Regression test for #261.
�setup.py�build_py�zpath/*��script_name�script_args�packages�package_datazpath/subpathN)r�dict�os�makedirs�parse_command_line�run_commands��
tmpdir_cwd�dists  �@/usr/lib/python3/dist-packages/setuptools/tests/test_build_py.py�%test_directories_in_package_data_globrsS����"�#���T��x�j�)�		
��D��K�K�����������c	�X�[[SS/S/SS/0S95n[R"S5 [	SS5R5 UR
5 UR5 [R"[R"S	5R5(dS
5eg)zd
Files matching recursive globs (**) in package_data should
be included in the package data.

#1806
r
rrzpath/**/datar
zpath/subpath/subsubpathzpath/subpath/subsubpath/data�wbz&build/lib/path/subpath/subsubpath/datazFile is not includedN)rrrr�open�closerr�stat�S_ISREG�st_moders  r�#test_recursive_in_package_data_globr$%s�����"�#���T��~�.�/�		
��D��K�K�)�*��	'��.�4�4�6����������<�<���� H�I�Q�Q�R�R����Rrc	���[[SS/S/SS/0S95n[R"S5 [	SS5R5 [	SS5R5 [R"S[R5 [R"S[R5 UR5 UR5 [R"S	5 g
)z�
Ensure read-only flag is not preserved in copy
for package modules and package data, as that
causes problems with deleting read-only files on
Windows.

#1451
r
r�pkgzdata.datr
�pkg/__init__.pyrzpkg/data.dat�buildN)
rrrrrr �chmodr!�S_IREADrr�shutil�rmtreers  r�test_read_onlyr-?s�����"�#���W��*��.�		
��D��K�K����	�D�!�'�'�)�����$�$�&��H�H�
����-��H�H�^�T�\�\�*���������
�M�M�'�rzplatform.system() == "Windows"z-On Windows, files do not have executable bitsT)�reason�raises�strictc	��[[SS/S/SS/0S95n[R"S5 [	SS5R5 [	SS5R5 [R"SS	5 UR5 UR5 [R"S
5R[R-(dS5eg)
zf
Ensure executable bit is preserved in copy for
package data, as users rely on it for scripts.

#2041
r
rr&zrun-mer
r'rz
pkg/run-mei�zbuild/lib/pkg/run-mezScript is not executableN)rrrrrr r)rrr!r#�S_IEXECrs  r�test_executable_datar3Zs�����"�#���W��(��,�		
��D��K�K����	�D�!�'�'�)���t��"�"�$��H�H�\�5�!���������
�7�7�)�*�2�2�T�\�\�A��"��Arz�
        [metadata]
        name = mypkg
        version = 42

        [options]
        include_package_data = True
        packages = find:

        [options.packages.find]
        exclude = *.tests*
        r)�__init__.pyz
test_mypkg.pyz
test_file.txt)r4�resource_file.txt�testsz�
        global-include *.py *.txt
        global-exclude *.py[cod]
        prune dist
        prune build
        prune *.egg-info
        )z	setup.cfg�mypkg�MANIFEST.inc�<�[RR[5 [	SS05nUR5 UR
S5nSn[R"[US9 [R"S5S:Xa[R"SS	S
S9 UR5 UR5 SSS5 [!UR
S5R"5nUS-R%5(deUS
-R%5(deSH@n[R&"[(5 XE-R%5(aeSSS5 MB [R*"S5 g!,(df   N�=f!,(df   M{=f)Nr�	%PEP 517%rz9Python recognizes 'mypkg\.tests' as an importable package)�match�SETUPTOOLS_USE_DISTUTILS�stdlib�ignorez!'encoding' argument not specifiedzdistutils.text_file)�module�mypkg/__init__.pyzmypkg/resource_file.txt)zmypkg/tests/__init__.pyzmypkg/tests/test_mypkg.pyzmypkg/tests/test_file.txtzmypkg/testsz#3260)�jaraco�pathr(�EXAMPLE_WITH_MANIFESTr�parse_config_files�get_command_obj�pytest�warnsrr�getenv�warnings�filterwarnings�finalize_options�runr�	build_lib�existsr/�AssertionError�xfail)rrr�msg�	build_dir�fs      r�test_excluded_subpackagesrT�sO��
�K�K���+�,����4�5�D������#�#�J�/�H�
F�C�	���2�#�	>�
�9�9�/�0�H�<�
�#�#��3�,�
�	�!�!�#�����!
?�$�T�)�)�*�5�?�?�@�I��+�+�3�3�5�5�5�5��1�1�9�9�;�;�;�;����]�]�>�
*�"�
�-�-�/�/�/�/�/�+�
*�
��L�L���G
?�	>��<+�
*�s�-AE;�=F�;
F	�
F	z/ignore::setuptools.SetuptoolsDeprecationWarningc��[RR[5 [	SS05nUR5 UR(deURS5nURS5 [[UR5RS55nUR5(deURS5nUR5 URS5n[UR S9nUR#USU5 UR$R'SS	5 UR)U5 S	UlUR!5 UR-5 UR/5 UR$R'SS	5 UR)U5 XElUR!5 UR15 UR2(de[5S
UR755nU(de[9[UR:S55R=[>R@S5nX�;deg	)
zoWhen provided with the ``existing_egg_info_dir`` attribute, build_py should not
attempt to run egg_info again.
rr:�egg_infoz
*.egg-infor)�side_effectrL�
data_filesNc�B�UR[RS5$�N�/)�replacer�sep)�xs r�<lambda>�(test_existing_egg_info.<locals>.<lambda>�s��A�I�I�b�f�f�c�2rr@r[)!rArBr(rCrrD�include_package_datarE�run_command�nextr�egg_base�glob�is_dirrKrrL�setattr�__dict__�pop�reinitialize_command�existing_egg_info_dir�
assert_called�
reset_mock�assert_not_calledrX�map�get_outputs�strrMr\rr])	r�monkeypatchrrV�egg_info_dirr�egg_info_run�outputs�examples	         r�test_existing_egg_inforw�s����K�K���+�,����4�5�D������$�$�$�$��#�#�J�/�H����Z� ���X�.�.�/�4�4�\�B�C�L���� � � � ��#�#�J�/�H������#�#�J�/�H��H�L�L�1�L�����%��6�

�����,��-����h�'�&*�H�"��L�L�N���� ����������,��-����h�'�&2�"��L�L�N��"�"�$�������2�H�4H�4H�4J�K�G��N�7��$�x�)�)�+>�?�@�H�H����QT�U�G����ra;
        [project]
        name = "mypkg"
        version = "42"

        [tool.setuptools]
        packages = ["mypkg", "mypkg.sub1", "mypkg.sub2", "mypkg.sub2.nested"]

        [tool.setuptools.package-dir]
        "" = "src"
        "mypkg.sub2" = "src/mypkg/_sub2"
        "mypkg.sub2.nested" = "other"
        r7)r4zmod1.pyzmod2.py)r4r5�sub1�_sub2)r4zmod3.pyzL
        global-include *.py *.txt
        global-exclude *.py[cod]
        )�pyproject.toml�src�otherr8c�4�[RR[5 [	SS05nUR5 UR
S5nSUlUR5 URR[RS5nUR5Vs1sH"oDR[RS5iM$ nnUUS3US3US3US	3US
3US3US31:XdeUR5R5VVs0sHDupgUR[RS5UR[RS5_MF nnnUUS3S
US3SUS3SUS	3SUS
3SUS3SUS3S0:Xdegs snfs snnf)Nrz%test%rTr[z/mypkg/__init__.pyz/mypkg/resource_file.txtz/mypkg/sub1/__init__.pyz/mypkg/sub1/mod1.pyz/mypkg/sub2/mod2.pyz/mypkg/sub2/nested/__init__.pyz/mypkg/sub2/nested/mod3.pyzsrc/mypkg/__init__.pyzsrc/mypkg/resource_file.txtzsrc/mypkg/sub1/__init__.pyzsrc/mypkg/sub1/mod1.pyzsrc/mypkg/_sub2/mod2.pyzother/__init__.pyz
other/mod3.py)rArBr(�EXAMPLE_ARBITRARY_MAPPINGrrDrE�
editable_mode�ensure_finalizedrMr\rr]rp�get_output_mapping�items)	rrrrMr^ru�k�v�mappings	         r�test_get_outputsr�/s���
�K�K���/�0����1�2�D������#�#�J�/�H�!�H�������"�"�*�*�2�6�6�3�7�I�/7�/C�/C�/E�F�/E�!�y�y�����%�/E�G�F���+�'�(��+�-�.��+�,�-��+�(�)��+�(�)��+�3�4��+�/�0������/�/�1�7�7�9��9�D�A�	
�	�	�"�&�&�#���	�	�"�&�&�#� 6�6�9�����+�'�(�*A��+�-�.�0M��+�,�-�/K��+�(�)�+C��+�(�)�+D��+�3�4�6I��+�/�0�/������G��s
�%)F�AFc�,�\rSrSr\"S5\"S5\"S5S.rSSSSS.0S	S
1S.SSSSS
.00SS1S.SSS0SSS.01SkS.S.r\RRSS\R"S\RRSS9S9/5\RRS\R55S55r
\RRSS/5\RRS\R55S55rSrSrg )!�TestTypeInfoFilesiQzV
            [project]
            name = "foo"
            version = "1"
            z�
            [project]
            name = "foo"
            version = "1"

            [tool.setuptools]
            include-package-data = false
            z�
            [project]
            name = "foo"
            version = "1"

            [tool.setuptools]
            include-package-data = false

            [tool.setuptools.exclude-package-data]
            "*" = ["py.typed", "*.pyi"]
            )�default_pyproject�dont_include_package_data�exclude_type_info�foor)�bar.pyi�py.typedr4zfoo/bar.pyi�foo/py.typed)�directory_structure�expected_type_files�bar)r�zmod.pyizfoo/bar/mod.pyizfoo/bar/py.typedzfoo.pyi)�	namespace�__init__.pyir�>r��foo/__init__.pyi�foo/namespace/foo.pyi)�simple_namespace�nested_inside_namespace�namespace_nested_inside_regular�	pyprojectr�r�zpypa/setuptools#4350)r.)�marksrvc���0URUSESURU0EnURUSn[RR	U5 [5n[
U5nXW::deg�Nr�rzr�)�EXAMPLES�
PYPROJECTSrArBr(�get_finalized_build_pyrp��selfrr�rv�	structurer�rrus        r�#test_type_files_included_by_default�5TestTypeInfoFiles.test_type_files_included_by_default�sz��
��m�m�G�$�%:�;�
��d�o�o�i�8�
�	�#�m�m�G�4�5J�K�������)�$�)�+���h�'��"�-�-�-rr�c�
�0URUSESURU0EnURUSn[RR	U5 [5n[
U5nURU5(degr�)r�r�rArBr(r�rp�
isdisjointr�s        r�test_type_files_can_be_excluded�1TestTypeInfoFiles.test_type_files_can_be_excluded�s���
��m�m�G�$�%:�;�
��d�o�o�i�8�
�	�#�m�m�G�4�5J�K�������)�$�)�+���h�'��"�-�-�g�6�6�6�6rc��[S5SSS.S.nSS1n[RRU5 [	5n[U5nX5::deg)Nzl
                [project]
                name = "foo-stubs"
                version = "1"
                r)r�r�)rzz	foo-stubszfoo-stubs/__init__.pyizfoo-stubs/bar.pyi)rrArBr(r�rp)r�rr�r�rrus      r�test_stub_only_package�(TestTypeInfoFiles.test_stub_only_package�s^��"���+-��<�	
�	� 8�9L�M�������)�$�)�+���h�'��"�-�-�-r�N)�__name__�
__module__�__qualname__�__firstlineno__rr�r�rF�mark�parametrize�paramrP�keysr�r�r��__static_attributes__r�rrr�r�Qs~��!�
�
�&*�
�	&
�"�

�
�%�J�H�!� "�#%��$�%2�>�#B�	
���$&�#%���$�%6�7I�#J�
$
��!�2�"�%'� "��$�$�,
�-&�H�P�[�[������L�L�+��k�k�'�'�/E�'�F�
�	
�	��[�[���Y��
�
��8�
.�9�	�
.��[�[���[�+>�*?�@��[�[���Y��
�
��8�
7�9�A�
7�.rr�c��[SU05nUR5 URS5nUR5 U$)Nrr)rrDrErK)rrrs   rr�r��s>�����4�5�D������#�#�J�/�H������Orc���[UR5nUR5Vs1sH@n[RRX!5R
[RS5iMB sn$s snfrZ)rrMrprrB�relpathr\r])rrRr^s   rrprp�s`���X�'�'�(�I��%�%�'��'�A�	������%�-�-�b�f�f�c�:�'����s�AA2)z%build_py-test%)!rr+r!rI�pathlibr�
unittest.mockr�jaraco.pathrArF�
setuptoolsr�setuptools.distr�textwraprrr$r-r�rPrOr3rCrTrJrwr~r�r�r�rpr�rr�<module>r�sU��	�
������
�3�(���(�4�6�����$�:���	���
��:�	�
������
���	��1!��H+�\�����M�N�3�O�3�n�	�� 	��!#�!���
�2��

������	��C'��T�D.�.�D�r

Youez - 2016 - github.com/yon3zu
LinuXploit