Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
rotate.cpython-313.pyc20 linesDownload Raw Back to __pycache__
1�

2`jV��n�SSKJr SSKrSSKJr SSKJrJr SSKJ	r	 SSK3Jr SSKJ
r
 "S	S4\5rg)�)�annotationsN)�ClassVar�)�Command�_shutil)�log)�DistutilsOptionError)�convert_pathc�N�\rSrSr%SrSr/SQr/rS\S'Sr	SSjr5SS	jrS6rg)
�rotate�
zDelete older distributionsz2delete older distributions, keeping N newest files))zmatch=�mzpatterns to match (required))z	dist-dir=�dz%directory where the distributions are)zkeep=�kz(number of matching distributions to keepzClassVar[list[str]]�boolean_optionsc�.�SUlSUlSUlg)N)�match�dist_dir�keep)�selfs �KD:\code\apps\devtools\python\Lib\site-packages\setuptools/command/rotate.py�initialize_options�rotate.initialize_optionss����7���
���	�c���URc[S5eURc[S5e[UR5Ul[UR[5(aHURRS5Vs/sHn[UR55PM snUlURSS5 g![an[S5UeSnAff=fs snf)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 integer�,�bdist)rr)rr	r�int�8ValueError�9isinstance�str�splitr10�strip�set_undefined_options)r�e�ps   r�finalize_options�rotate.finalize_optionss����:�:��&�*��
��9�9��&�'M�N�N�	K��D�I�I��D�I��d�j�j�#�&�&�;?�:�:�;K�;K�C�;P�Q�;P�a�,�q�w�w�y�1�;P�Q�D�J��"�"�7�,D�E��	�	K�&�'B�C��J��	K��Rs�C�#C$�11C!�C�C!c���URS5 SSKJn URGHHnURR	5S-U-nU"[12RRURU55nUVs/sH$n[13RRU5U4PM& nnUR5 UR5 [R"S[U5U5 X0RSnUHnupT[R"SU5 [14RR!U5(a["R$"U5 MX[15R&"U5 Mp GMK gs snf)N�egg_infor)�glob�*z%d file(s) matching %szDeleting %s)�run_commandr+r�distribution�get_name�os�path�joinr�getmtime�sort�reverser�info�lenr�isdirr�rmtree�unlink)rr+�pattern�files�f�ts      r�run�16rotate.run.s������$���z�z�G��'�'�0�0�2�S�8�7�B�G�������d�m�m�W�=�>�E�7<�=�u�!�b�g�g�&�&�q�)�1�-�u�E�=��J�J�L��M�M�O��H�H�-�s�5�z�7�C��)�)�+�&�E���������*��7�7�=�=��#�#��N�N�1�%��I�I�a�L��"��>s�<+E2)rrrN)�return�None)
�__name__�17__module__�__qualname__�__firstlineno__�__doc__�description�user_optionsr�__annotations__rr'r?�__static_attributes__�rrrr
s.��$�F�K��L�,.�O�(�-��18F� !rr)�19__future__rr0�typingr�rr�	distutilsr�distutils.errorsr	�distutils.utilr20rrLrr�<module>rSs&��"�	����1�'�3!�W�3!r
codekingpro/portable-devtools · Team Ai