§
    �óÉj‹  ã                  óv   — d dl mZ d dlZd dlmZ ddlmZmZ d dlm	Z	 d dl
mZ d dlmZ  G d	„ d
e¦  «        ZdS )é    )ÚannotationsN)ÚClassVaré   )ÚCommandÚ_shutil)Úlog)ÚDistutilsOptionError)Úconvert_pathc                  óD   — e Zd ZU dZdZg d¢Zg Zded<   d„ Zdd	„Z	d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 keepzClassVar[list[str]]Úboolean_optionsc                ó0   — d | _         d | _        d | _        d S )N)ÚmatchÚdist_dirÚkeep)Úselfs    ú|/home/lighthouse/badge-speaker-benchmark/.benchmark-venv-community/lib/python3.11/site-packages/setuptools/command/rotate.pyÚinitialize_optionszrotate.initialize_options   s   € ØˆŒ
ØˆŒØˆŒ	ˆ	ˆ	ó    ÚreturnÚNonec                óŠ  — | 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>+   s(   € ÐQÐQÐQ°a�, q§w¢w¡y¤yÑ1Ô1ÐQÐQÐQr   ú,Ú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¥#Ñ&Ô&ð 	RØQÐQ¸4¼:×;KÒ;KÈCÑ;PÔ;PÐQÑQÔQˆ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>5   s-   € Ð=Ð=Ð=°!•b”g×&Ò& qÑ)Ô)¨1Ð-Ð=Ð=Ð=r   z%d file(s) matching %szDeleting %s)Úrun_commandr.   r   ÚdistributionÚget_namer1   r2   Újoinr   ÚsortÚreverser   ÚinfoÚlenr   Údry_runÚisdirr   ÚrmtreeÚunlink)r   r.   ÚpatternÚfilesÚtr4   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Øð %ð %‘��1Ý”˜¨Ñ*Ô*Ð*Ø”|ð %Ý”w—}’} QÑ'Ô'ð %Ýœ qÑ)Ô)Ð)Ð)åœ	 !™œ˜øñ%ð	%ð 	%r   N)r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚdescriptionÚuser_optionsr   Ú__annotations__r   r+   rD   r   r   r   r   r      s€   € € € € € € Ø$Ð$àF€Kðð ð €Lð ,.€OÐ-Ð-Ð-Ñ-ðð ð ð
Fð Fð Fð Fð %ð %ð %ð %ð %ð %r   r   )Ú
__future__r   r1   Útypingr   Ú r   r   Ú	distutilsr   Údistutils.errorsr	   Údistutils.utilr
   r   r   r   r   ú<module>rR      s´   ðØ "Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð Ð Ð à Ð Ð Ð Ð Ð Ø 1Ð 1Ð 1Ð 1Ð 1Ð 1Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'ð4%ð 4%ð 4%ð 4%ð 4%ˆWñ 4%ô 4%ð 4%ð 4%ð 4%r   