Current File : //usr/local/apps/python3/lib/python3.11/distutils/tests/__pycache__/test_sdist.cpython-311.pyc |
�
�Ke�B � � � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
mZmZ ddl
mZ ddlZdZn
# e$ r dZY nw xY w ddlZddlZdZn
# e$ r dZY nw xY wdd lmZmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddl m!Z! ddl"m#Z# ddl$m%Z% dZ&dZ' G d� de� � Z(d� Z)e*dk r e e)� � � � dS dS )z"Tests for distutils.command.sdist.� N)�join)�dedent)�captured_stdout�run_unittest)�check_warningsTF)�sdist�show_formats)�Distribution)�BasePyPIRCCommandTestCase)�DistutilsOptionError)�find_executable)�WARN)�FileList)�ARCHIVE_FORMATSzF
from distutils.core import setup
import somecode
setup(name='fake')
z�# file GENERATED by distutils, do NOT edit
README
buildout.cfg
inroot.txt
setup.py
data%(sep)sdata.dt
scripts%(sep)sscript.py
some%(sep)sfile.txt
some%(sep)sother_file.txt
somecode%(sep)s__init__.py
somecode%(sep)sdoc.dat
somecode%(sep)sdoc.txt
c � � � e Zd Z� fd�Z� fd�Zdd�Z ej ed� � d� � � Z ej ed� � ej
ed� � du d� � ej
ed � � du d
� � d� � � � � � � Z ej ed� � d� � � Z
ej ed� � d
� � � Zd� Zd� Zd� Zd� Zd� Zd� Z ej
ej dk d� � d� � � Z ej ed� � d� � � Z ej ed� � d� � � Z ej ed� � d� � � Z ej ed� � d� � � Z ej ed� � ej ed� � ej
ed� � du d� � ej
ed � � du d
� � d� � � � � � � � � Z� xZS )�
SDistTestCasec � �� t t | � � � � � t j � � | _ t j t | j d� � � � t j t | j d� � � � | � | j dfd� � | � | j ddfd� � | � | j dft � � t j | j � � d S )N�somecode�dist�README�xxxz__init__.py�#�setup.py)�superr �setUp�os�getcwd�old_path�mkdirr �tmp_dir�
write_file�SETUP_PY�chdir��self� __class__s ��D/usr/local/apps/python3/lib/python3.11/distutils/tests/test_sdist.pyr zSDistTestCase.setUp: s� �� � �m�T�"�"�(�(�*�*�*�� ����
�
���d�l�J�/�/�0�0�0�
���d�l�F�+�+�,�,�,������x�0�%�8�8�8������z�=�A�3�G�G�G������z�2�H�=�=�=�
��������� c � �� t j | j � � t t | � � � � � d S �N)r r# r r r �tearDownr$ s �r'