§
    Á³g/  ã                   óJ   — d Z ddlZddlmZ ddlmZ dZ G d„ de¦  «        ZdS )	z�distutils.pypirc

Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
é    N)ÚRawConfigParseré   )ÚCommandzE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
c                   ó`   — e Zd ZdZdZdZdZdZdddez  fdgZd	gZ	d
„ Z
d„ Zd„ Zd„ Zd„ Zd„ ZdS )ÚPyPIRCCommandz6Base command that knows how to handle the .pypirc filezhttps://upload.pypi.org/legacy/ÚpypiNzrepository=Úrzurl of repository [default: %s])úshow-responseNz&display full response text from serverr
   c                 ó|   — t           j                             t           j                             d¦  «        d¦  «        S )zReturns rc file path.ú~z.pypirc)ÚosÚpathÚjoinÚ
expanduser©Úselfs    úZ/var/www/html/mpstechhub/venv/lib/python3.11/site-packages/setuptools/_distutils/config.pyÚ_get_rc_filezPyPIRCCommand._get_rc_file%   s(   € åŒw�|Š|�BœG×.Ò.¨sÑ3Ô3°YÑ?Ô?Ð?ó    c                 ó  — |                       ¦   «         }t          j        t          j        |t          j        t          j        z  d¦  «        d¦  «        5 }|                     t          ||fz  ¦  «         ddd¦  «         dS # 1 swxY w Y   dS )zCreates a default .pypirc file.i€  ÚwN)r   r   ÚfdopenÚopenÚO_CREATÚO_WRONLYÚwriteÚDEFAULT_PYPIRC)r   ÚusernameÚpasswordÚrcÚfs        r   Ú_store_pypirczPyPIRCCommand._store_pypirc)   s¹   € à×ÒÑ Ô ˆÝŒY•r”w˜r¥2¤:µ´Ñ#;¸UÑCÔCÀSÑIÔIð 	;ÈQØ�GŠG•N h°Ð%9Ñ9Ñ:Ô:Ð:ð	;ð 	;ð 	;ñ 	;ô 	;ð 	;ð 	;ð 	;ð 	;ð 	;ð 	;ð 	;øøøð 	;ð 	;ð 	;ð 	;ð 	;ð 	;s   Á BÂBÂ	Bc                 óð  — |                       ¦   «         }t          j                             |¦  «        �rÁ|                      d|z  ¦  «         | j        p| j        }t          ¦   «         }|                     |¦  «         | 	                    ¦   «         }d|v rñ| 
                    dd¦  «        }d„ |                     d¦  «        D ¦   «         }|g k    r
d|v rdg}ni S |D ]¨}d|i}| 
                    |d¦  «        |d<   d	| j        fd
| j        fdfD ]:\  }	}
|                     ||	¦  «        r| 
                    ||	¦  «        ||	<   Œ5|
||	<   Œ;|dk    r|| j        dfv r| j        |d	<   |c S |d         |k    s|d	         |k    r|c S Œ©nod|v rkd}|                     |d	¦  «        r| 
                    |d	¦  «        }n| j        }| 
                    |d¦  «        | 
                    |d¦  «        ||| j        dœS i S )zReads the .pypirc file.zUsing PyPI login from %sÚ	distutilszindex-serversc                 óf   — g | ].}|                      ¦   «         d k    ¯|                      ¦   «         ‘Œ/S )Ú )Ústrip)Ú.0Úservers     r   ú
<listcomp>z.PyPIRCCommand._read_pypirc.<locals>.<listcomp><   s=   € ð ð ð àØ—|’|‘~”~¨Ò+Ð+ð —L’L‘N”Nà+Ð+Ð+r   ú
r   r)   r   Ú
repositoryÚrealm)r   Nzserver-loginr   )r   r   r,   r)   r-   )r   r   r   ÚexistsÚannouncer,   ÚDEFAULT_REPOSITORYr   ÚreadÚsectionsÚgetÚsplitÚDEFAULT_REALMÚ
has_option)r   r    r,   Úconfigr2   Úindex_serversÚ_serversr)   ÚcurrentÚkeyÚdefaults              r   Ú_read_pypirczPyPIRCCommand._read_pypirc/   sˆ  € à×ÒÑ Ô ˆÝŒ7�>Š>˜"ÑÔñ B	Ø�MŠMÐ4°rÑ9Ñ:Ô:Ð:ØœÐC¨DÔ,CˆJå$Ñ&Ô&ˆFØ�KŠK˜‰OŒOˆOØ—’Ñ(Ô(ˆHØ˜hÐ&Ð&à &§
¢
¨;¸Ñ HÔ H�ðð à"/×"5Ò"5°dÑ";Ô";ðñ ô �ð
 ˜r’>�>à Ð)Ð)Ø$* 8˜˜ð  "˜	Ø&ð 'ð '�FØ'¨Ð0�GØ*0¯*ª*°V¸ZÑ*HÔ*H�G˜JÑ'ð & tÔ'>Ð?Ø  $Ô"4Ð5Ø*ð)ð 3ð 3™˜˜Wð
 "×,Ò,¨V°SÑ9Ô9ð 3Ø+1¯:ª:°f¸cÑ+BÔ+B˜G C™L˜Là+2˜G C™L˜Lð
  Ò'Ð'¨JØÔ/Øð;ð -ð -ð 15Ô0G˜ Ñ-Ø&˜˜˜ð   Ô)¨ZÒ7Ð7Ø" <Ô0°JÒ>Ð>à&˜˜˜ð ?ð7'ð<   8Ð+Ð+à'�Ø×$Ò$ V¨\Ñ:Ô:ð 9Ø!'§¢¨F°LÑ!AÔ!A�J�Jà!%Ô!8�Jà &§
¢
¨6°:Ñ >Ô >Ø &§
¢
¨6°:Ñ >Ô >Ø",Ø$Ø!Ô/ðð ð ð ˆ	r   c                 óâ   — ddl }|                     dd¦  «        }|                     |¦  «        d                              dd¦  «        }|                     ¦   «                              |¦  «        S )z%Read and decode a PyPI HTTP response.r   Nzcontent-typez
text/plainr   ÚcharsetÚascii)ÚcgiÚ	getheaderÚparse_headerr3   r1   Údecode)r   ÚresponserA   Úcontent_typeÚencodings        r   Ú_read_pypi_responsez!PyPIRCCommand._read_pypi_responsex   sd   € àˆ
ˆ
ˆ
à×)Ò)¨.¸,ÑGÔGˆØ×#Ò# LÑ1Ô1°!Ô4×8Ò8¸ÀGÑLÔLˆØ�}Š}‰Œ×%Ò% hÑ/Ô/Ð/r   c                 ó0   — d| _         d| _        d| _        dS )zInitialize options.Nr   )r,   r-   Úshow_responser   s    r   Úinitialize_optionsz PyPIRCCommand.initialize_options€   s   € àˆŒØˆŒ
ØˆÔÐÐr   c                 óV   — | j         €| j        | _         | j        €| j        | _        dS dS )zFinalizes options.N)r,   r0   r-   r5   r   s    r   Úfinalize_optionszPyPIRCCommand.finalize_options†   s2   € àŒ?Ð"Ø"Ô5ˆDŒOØŒ:ÐØÔ+ˆDŒJˆJˆJð Ðr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r0   r5   r,   r-   Úuser_optionsÚboolean_optionsr   r"   r=   rH   rK   rM   © r   r   r   r      s·   € € € € € Ø@Ð@à:ÐØ€MØ€JØ€Eð 
˜Ð>ÐASÑSÐTØIð€Lð
 'Ð'€Oð@ð @ð @ð;ð ;ð ;ðGð Gð GðR0ð 0ð 0ðð ð ð,ð ,ð ,ð ,ð ,r   r   )rQ   r   Úconfigparserr   Úcmdr   r   r   rT   r   r   ú<module>rW      sƒ   ððð ð
 
€	€	€	Ø (Ð (Ð (Ð (Ð (Ð (à Ð Ð Ð Ð Ð ð€ðu,ð u,ð u,ð u,ð u,�Gñ u,ô u,ð u,ð u,ð u,r   