Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/test_importlib/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/test_importlib/__pycache__/fixtures.cpython-39.pyc

a

��g�@s2ddlZddlZddlZddlZddlZddlZddlZddlZejdd��Z	ejdd��Z
ejdd��Zejdd	��ZGd
d�d�Z
Gdd
�d
e
�ZGdd�de
�ZGdd�dee�ZGdd�de�ZGdd�dee�ZGdd�dee�ZGdd�d�Ze��fdd�ZGdd�d�Zdd�ZGd d!�d!�ZdS)"�Nc	cs4t��}zt�|�VWt�|�nt�|�0dS�N)�tempfile�mkdtemp�pathlib�Path�shutil�rmtree)Ztmpdir�r	�8/usr/local/lib/python3.9/test/test_importlib/fixtures.py�tempdirsrc	cs.t��}zdVWt�|�nt�|�0dSr)�os�getcwd�chdir)Zorigr	r	r
�save_cwdsrc	csdt��J}t��$t�t|��|VWd�n1s80YWd�n1sV0YdSr)rrrr�str)�tmpr	r	r
�tempdir_as_cwdsrc	cs6tj�|�zdVWtj�|�ntj�|�0dSr)�sys�	meta_path�append�remove)�finderr	r	r
�install_finder%src@seZdZdd�ZdS)�FixturescCst��|_|�|jj�dSr)�
contextlib�	ExitStack�fixtures�
addCleanup�close��selfr	r	r
�setUp/s
zFixtures.setUpN)�__name__�
__module__�__qualname__r!r	r	r	r
r.srcseZdZ�fdd�Z�ZS)�SiteDircs"tt|���|j�t��|_dSr)�superr%r!r�
enter_contextr�site_dirr��	__class__r	r
r!5sz
SiteDir.setUp�r"r#r$r!�
__classcell__r	r	r)r
r%4sr%cs.eZdZeejdd���Z�fdd�Z�ZS)�	OnSysPathc
csFt|�gtjdd�<zdVWtj�t|��ntj�t|��0dS)Nr)rr�pathr)�dirr	r	r
�add_sys_path;szOnSysPath.add_sys_pathcs&tt|���|j�|�|j��dSr)r&r-r!rr'r0r(rr)r	r
r!DszOnSysPath.setUp)	r"r#r$�staticmethodr�contextmanagerr0r!r,r	r	r)r
r-:sr-cs.eZdZdddd�dd�Z�fdd�Z�ZS)	�DistInfoPkgz�
                Name: distinfo-pkg
                Author: Steven Ma
                Version: 1.0.0
                Requires-Dist: wheel >= 1.0
                Requires-Dist: pytest; extra == 'test'
                zmod.py,sha256=abc,20
zi
                [entries]
                main = mod:main
                ns:sub = mod:main
            )ZMETADATAZRECORD�entry_points.txt�J
            def main():
                print("hello world")
            )zdistinfo_pkg-1.0.0.dist-info�mod.pycs tt|���ttj|j�dSr)r&r3r!�build_files�filesr(rr)r	r
r!`szDistInfoPkg.setUp�r"r#r$r8r!r,r	r	r)r
r3Is��r3cseZdZ�fdd�Z�ZS)�DistInfoPkgOffPathcs tt|���ttj|j�dSr)r&r:r!r7r3r8r(rr)r	r
r!fszDistInfoPkgOffPath.setUpr+r	r	r)r
r:esr:cs2eZdZdddddd�dd�Z�fd	d
�Z�ZS)�
EggInfoPkga
                Name: egginfo-pkg
                Author: Steven Ma
                License: Unknown
                Version: 1.0.0
                Classifier: Intended Audience :: Developers
                Classifier: Topic :: Software Development :: Libraries
                zW
                mod.py
                egginfo_pkg.egg-info/top_level.txt
            zG
                [entries]
                main = mod:main
            zq
                wheel >= 1.0; python_version >= "2.7"
                [test]
                pytest
            zmod
)zPKG-INFOzSOURCES.txtr4zrequires.txtz
top_level.txtr5)zegginfo_pkg.egg-infor6cs"tt|���ttj|jd�dS�N��prefix)r&r;r!r7r8r(rr)r	r
r!�szEggInfoPkg.setUpr9r	r	r)r
r;ks��r;cs$eZdZddiZ�fdd�Z�ZS)�EggInfoFilezegginfo_file.egg-infoaa
            Metadata-Version: 1.0
            Name: egginfo_file
            Version: 0.1
            Summary: An example package
            Home-page: www.example.com
            Author: Eric Haffa-Vee
            Author-email: eric@example.coms
            License: UNKNOWN
            Description: UNKNOWN
            Platform: UNKNOWN
            cs"tt|���ttj|jd�dSr<)r&r?r!r7r8r(rr)r	r
r!�szEggInfoFile.setUpr9r	r	r)r
r?�s�r?c@seZdZddiZdd�ZdS)�LocalPackagezsetup.pyzk
            import setuptools
            setuptools.setup(name="local-pkg", version="2.0.1")
            cCs4t��|_|�|jj�|j�t��t|j�dSr)	rrrrrr'rr7r8rr	r	r
r!�s
zLocalPackage.setUpN)r"r#r$r8r!r	r	r	r
r@�s�r@c	Cs�|��D]�\}}||}t|t�r8|��t||d�qt|t�rx|�d��}|�|�Wd�q�1sl0Yq|�d��}|�t|��Wd�q1s�0YqdS)aBuild a set of files/directories, as described by the

    file_defs dictionary.  Each key/value pair in the dictionary is
    interpreted as a filename/contents pair.  If the contents value is a
    dictionary, a directory is created, and the dictionary interpreted
    as the files within it, recursively.

    For example:

    {"README.txt": "A README file",
     "foo": {
        "__init__.py": "",
        "bar": {
            "__init__.py": "",
        },
        "baz.py": "# Some code",
     }
    }
    r=�wbN�w)	�items�
isinstance�dict�mkdirr7�bytes�open�write�DALS)Z	file_defsr>�name�contentsZ	full_name�fr	r	r
r7�s

*r7c@seZdZdd�Zdd�ZdS)�FileBuildercCs4zddl}Wnty YdS0|jjp2|�d�S)Nru☃z'File system does not support non-ascii.)Ztest.support�ImportError�supportZFS_NONASCII�skip)r �testr	r	r
�unicode_filename�s�zFileBuilder.unicode_filenamecCst�|��dSr)�unittestZSkipTest)r �reasonr	r	r
rQ�szFileBuilder.skipN)r"r#r$rSrQr	r	r	r
rN�s	rNcCst�|���S)zDedent and left-strip)�textwrap�dedent�lstrip)rr	r	r
rJ�srJc@seZdZdd�ZdS)�
NullFindercCsdSrr	)r rKr	r	r
�find_module�szNullFinder.find_moduleN)r"r#r$rZr	r	r	r
rY�srY)rrrrrrVrrTr2rrrrrr%r-r3r:r;r?r@rr7rNrJrYr	r	r	r
�<module>s6



%"

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists