§
    Á³gP  ã                   ób   — d dl mZ d dlmZ d dlmZ d dlZd dlZd dlm	Z	  G d„ de	¦  «        Z
dS )é    )Úconvert_path)Úlog)ÚDistutilsOptionErrorN)ÚCommandc                   ó4   — e Zd ZdZdZg d¢Zg Zd„ Zd„ Zd„ Z	dS )ÚrotatezDelete older distributionsz2delete older distributions, keeping N newest files))zmatch=Úmzpatterns to match (required))z	dist-dir=Údz%directory where the distributions are)zkeep=Úkz(number of matching distributions to keepc                 ó0   — d | _         d | _        d | _        d S )N)ÚmatchÚdist_dirÚkeep)Úselfs    úW/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/setuptools/command/rotate.pyÚinitialize_optionszrotate.initialize_options   s   € ØˆŒ
ØˆŒØˆŒ	ˆ	ˆ	ó    c                 óŠ  — | j         €t          d¦  «        ‚| j        €t          d¦  «        ‚	 t          | j        ¦  «        | _        n"# t          $ r}t          d¦  «        |‚d }~ww xY wt          | j         t          ¦  «        r)d„ | j                              d¦  «        D ¦   «         | _         |                      dd¦  «         d S )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 integerc                 óP   — g | ]#}t          |                     ¦   «         ¦  «        ‘Œ$S © )r   Ústrip)Ú.0Úps     r   ú
<listcomp>z+rotate.finalize_options.<locals>.<listcomp>(   s5   € ð ð ð Ø,-•˜QŸWšW™YœYÑ'Ô'ðð ð r   ú,Úbdist)r   r   )	r   r   r   ÚintÚ
ValueErrorÚ
isinstanceÚstrÚsplitÚset_undefined_options)r   Úes     r   Úfinalize_optionszrotate.finalize_options   sè   € ØŒ:ÐÝ&ð*ñô ð ð Œ9ÐÝ&Ð'MÑNÔNÐNð	KÝ˜DœI™œˆDŒIˆIøÝð 	Kð 	Kð 	KÝ&Ð'BÑCÔCÈÐJøøøøð	Køøøå�d”j¥#Ñ&Ô&ð 	ðð Ø15´×1AÒ1AÀ#Ñ1FÔ1Fðñ ô ˆDŒJð 	×"Ò" 7Ð,DÑEÔEÐEÐEÐEs   ®A Á
A'ÁA"Á"A'c                 ó’  — |                       d¦  «         ddlm} | j        D �]"}| j                             ¦   «         dz   |z   } |t
          j                             | j        |¦  «        ¦  «        }d„ |D ¦   «         }| 	                    ¦   «          | 
                    ¦   «          t          j        dt          |¦  «        |¦  «         || j        d …         }|D ]i\  }}t          j        d|¦  «         | j        sHt
          j                             |¦  «        rt#          j        |¦  «         ŒUt          j        |¦  «         Œj�Œ$d S )NÚegg_infor   )ÚglobÚ*c                 óP   — g | ]#}t           j                             |¦  «        |f‘Œ$S r   )ÚosÚpathÚgetmtime)r   Úfs     r   r   zrotate.run.<locals>.<listcomp>4   s-   € Ð=Ð=Ð=°!•b”g×&Ò& qÑ)Ô)¨1Ð-Ð=Ð=Ð=r   z%d file(s) matching %szDeleting %s)Úrun_commandr'   r   ÚdistributionÚget_namer*   r+   Újoinr   ÚsortÚreverser   ÚinfoÚlenr   Údry_runÚisdirÚshutilÚrmtreeÚunlink)r   r'   ÚpatternÚfilesÚtr-   s         r   Úrunz
rotate.run-   sE  € Ø×Ò˜Ñ$Ô$Ð$ØÐÐÐÐÐà”zð 	%ñ 	%ˆGØÔ'×0Ò0Ñ2Ô2°SÑ8¸7ÑBˆGØ�D�œŸš d¤m°WÑ=Ô=Ñ>Ô>ˆEØ=Ð=°uÐ=Ñ=Ô=ˆEØ�JŠJ‰LŒLˆLØ�MŠM‰OŒOˆOåŒHÐ-­s°5©z¬z¸7ÑCÔCÐCØ˜$œ)˜*˜*Ô%ˆEØð %ð %‘��AÝ”˜¨Ñ*Ô*Ð*Ø”|ð %Ý”w—}’} QÑ'Ô'ð %Ýœ aÑ(Ô(Ð(Ð(åœ	 !™œ˜øñ%ð	%ð 	%r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdescriptionÚuser_optionsÚboolean_optionsr   r$   r>   r   r   r   r   r   
   sg   € € € € € Ø$Ð$àF€Kðð ð €Lð €Oðð ð ð
Fð Fð Fð$%ð %ð %ð %ð %r   r   )Údistutils.utilr   Ú	distutilsr   Údistutils.errorsr   r*   r8   Ú
setuptoolsr   r   r   r   r   ú<module>rJ      s“   ðØ 'Ð 'Ð 'Ð 'Ð 'Ð 'Ø Ð Ð Ð Ð Ð Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø 	€	€	€	Ø €€€à Ð Ð Ð Ð Ð ð6%ð 6%ð 6%ð 6%ð 6%ˆWñ 6%ô 6%ð 6%ð 6%ð 6%r   