[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.45.114: ~ $


��\t�@s�ddlmZddlmZddlmZddlZddlZddlm	Z	ddl
mZGdd�de�ZdS)	�)�convert_path)�log)�DistutilsOptionErrorN)�six)�Commandc@sUeZdZdZdZdddgZgZdd
�Zdd�Zdd�Z	dS)�rotatezDelete older distributionsz2delete older distributions, keeping N newest files�match=�m�patterns to match (required)�	dist-dir=�d�%directory where the distributions are�keep=�k�(number of matching distributions to keepcCsd|_d|_d|_dS)N)�match�dist_dir�keep)�self�r�
/rotate.py�initialize_optionss		zrotate.initialize_optionscCs�|jdkrtd��|jdkr6td��yt|j�|_Wntk
rltd��YnXt|jtj�r�dd�|jjd�D�|_|j	dd	�dS)
NzQMust specify one or more (comma-separated) match patterns (e.g. '.zip' or '.egg')z$Must specify number of files to keepz--keep must be an integercSs"g|]}t|j���qSr)r�strip)�.0�prrr�
<listcomp>+s	z+rotate.finalize_options.<locals>.<listcomp>�,Zbdistr)rr)
rrr�int�
ValueError�
isinstancerZstring_types�splitZset_undefined_options)rrrr�finalize_optionss	
"zrotate.finalize_optionscCs|jd�ddlm}x�|jD]�}|jj�d|}|tjj|j|��}dd�|D�}|j	�|j
�tjdt
|�|�||jd�}x\|D]T\}}tjd|�|js�tjj|�rtj|�q�tj|�q�Wq'WdS)	NZegg_infor)�glob�*cSs(g|]}tjj|�|f�qSr)�os�path�getmtime)r�frrrr6s	zrotate.run.<locals>.<listcomp>z%d file(s) matching %szDeleting %s)Zrun_commandr"rZdistribution�get_namer$r%�joinr�sort�reverser�info�lenr�dry_run�isdir�shutil�rmtree�unlink)rr"�pattern�files�tr'rrr�run/s 


	z
rotate.runN)rr	r
)rrr
)rrr)
�__name__�
__module__�__qualname__�__doc__�descriptionZuser_optionsZboolean_optionsrr!r6rrrrrs	r)
Zdistutils.utilrZ	distutilsrZdistutils.errorsrr$r0Zsetuptools.externrZ
setuptoolsrrrrrr�<module>s

Filemanager

Name Type Size Permission Actions
__init__.cpython-35.opt-1.pyc File 681 B 0644
__init__.cpython-35.pyc File 681 B 0644
alias.cpython-35.opt-1.pyc File 2.49 KB 0644
alias.cpython-35.pyc File 2.49 KB 0644
bdist_egg.cpython-35.opt-1.pyc File 14.54 KB 0644
bdist_egg.cpython-35.pyc File 14.54 KB 0644
bdist_rpm.cpython-35.opt-1.pyc File 1.74 KB 0644
bdist_rpm.cpython-35.pyc File 1.74 KB 0644
bdist_wininst.cpython-35.opt-1.pyc File 926 B 0644
bdist_wininst.cpython-35.pyc File 926 B 0644
build_clib.cpython-35.opt-1.pyc File 2.47 KB 0644
build_clib.cpython-35.pyc File 2.47 KB 0644
build_ext.cpython-35.opt-1.pyc File 10.59 KB 0644
build_ext.cpython-35.pyc File 10.62 KB 0644
build_py.cpython-35.opt-1.pyc File 8.99 KB 0644
build_py.cpython-35.pyc File 8.99 KB 0644
develop.cpython-35.opt-1.pyc File 6.74 KB 0644
develop.cpython-35.pyc File 6.74 KB 0644
easy_install.cpython-35.opt-1.pyc File 68.1 KB 0644
easy_install.cpython-35.pyc File 68.1 KB 0644
egg_info.cpython-35.opt-1.pyc File 22.17 KB 0644
egg_info.cpython-35.pyc File 22.17 KB 0644
install.cpython-35.opt-1.pyc File 4.08 KB 0644
install.cpython-35.pyc File 4.08 KB 0644
install_egg_info.cpython-35.opt-1.pyc File 2.48 KB 0644
install_egg_info.cpython-35.pyc File 2.48 KB 0644
install_lib.cpython-35.opt-1.pyc File 4.08 KB 0644
install_lib.cpython-35.pyc File 4.12 KB 0644
install_scripts.cpython-35.opt-1.pyc File 2.33 KB 0644
install_scripts.cpython-35.pyc File 2.33 KB 0644
py36compat.cpython-35.opt-1.pyc File 4.75 KB 0644
py36compat.cpython-35.pyc File 4.75 KB 0644
register.cpython-35.opt-1.pyc File 531 B 0644
register.cpython-35.pyc File 531 B 0644
rotate.cpython-35.opt-1.pyc File 2.63 KB 0644
rotate.cpython-35.pyc File 2.63 KB 0644
saveopts.cpython-35.opt-1.pyc File 896 B 0644
saveopts.cpython-35.pyc File 896 B 0644
sdist.cpython-35.opt-1.pyc File 6.43 KB 0644
sdist.cpython-35.pyc File 6.43 KB 0644
setopt.cpython-35.opt-1.pyc File 4.76 KB 0644
setopt.cpython-35.pyc File 4.76 KB 0644
test.cpython-35.opt-1.pyc File 8.4 KB 0644
test.cpython-35.pyc File 8.4 KB 0644
upload.cpython-35.opt-1.pyc File 1.34 KB 0644
upload.cpython-35.pyc File 1.34 KB 0644
upload_docs.cpython-35.opt-1.pyc File 6.44 KB 0644
upload_docs.cpython-35.pyc File 6.46 KB 0644