HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/setuptools/__pycache__/warnings.cpython-310.pyc
o

��h��@s�UdZddlmZddlZddlZddlmZddlmZddl	m
Z
ddlmZer1ddl
mZeeeefZd	ed
<dZd�d
d��ZGdd�de�ZGdd�de�ZGdd�de�Zdd�ZdS)z�Provide basic warnings used by setuptools modules.

Using custom classes (other than ``UserWarning``) allow users to set
``PYTHONWARNINGS`` filters to run tests and prepare for upcoming changes in
setuptools.
�)�annotationsN)�date)�cleandoc)�indent)�
TYPE_CHECKING)�	TypeAliasr�_DueDatez        zP********************************************************************************z
{details}
c@sBeZdZdZe						dddd��Ze			dddd��ZdS)�SetuptoolsWarningz/Base class in ``setuptools`` warning hierarchy.N��summary�
str | None�details�due_date�_DueDate | None�see_docs�see_url�
stacklevel�int�return�NonecKs�|p	t|dd�p	d}|pt|dd�pd}	|pt|dd�}|p#t|dd�}
|
o*d|
��}|p2t|dd�}|r9t|�nd}|�||	||pC||�}
|rU|t��krUt�rU||
��tj|
||d	d
�dS)�6Private: reserved for ``setuptools`` internal use only�_SUMMARYN��_DETAILS�	_DUE_DATE�	_SEE_DOCSz%https://setuptools.pypa.io/en/latest/�_SEE_URL�)r)�getattrr�_format�today�_should_enforce�warnings�warn)�clsrr
rrrr�kwargs�summary_�details_�docs_ref�docs_url�due�text�r,�>/usr/local/lib/python3.10/dist-packages/setuptools/warnings.py�emits
zSetuptoolsWarning.emit�str�date | None�format_args�dict | Nonec
Cs�t��}t|��|pi�}t|��|pi�|r"||kr"d|d�d�nd|r+||kr+dnd|r4d|�d�ndg}dd	�|D�}|rUttjd
�|�d�t�}	d
�|d|	d
g�S|S)rz
By z%Y-%b-%dzi, you need to update your project and remove deprecated calls
or your builds will no longer be supported.Nzy
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.z
See z
 for details.cSsg|]}|r|�qSr,r,)�.0�xr,r,r-�
<listcomp>Rsz-SetuptoolsWarning._format.<locals>.<listcomp>�
)r
z!!
z
!!)	rr r�
format_mapr�	_TEMPLATE�format�join�_INDENT)
r$rr
rrr1r �possible_parts�parts�bodyr,r,r-r6s(
�����zSetuptoolsWarning._format)NNNNNr
)rrr
rrrrrrrrrrr)NNN)rr/r
r/rr0rrr1r2rr/)�__name__�
__module__�__qualname__�__doc__�classmethodr.rr,r,r,r-r	s��r	c@�eZdZdZdS)�InformationOnlyaCurrently there is no clear way of displaying messages to the users
    that use the setuptools backend directly via ``pip``.
    The only thing that might work is a warning, although it is not the
    most appropriate tool for the job...

    See pypa/packaging-problems#558.
    N�r?r@rArBr,r,r,r-rEY�rEc@rD)�SetuptoolsDeprecationWarningz�
    Base class for warning deprecations in ``setuptools``

    This class is not derived from ``DeprecationWarning``, and as such is
    visible by default.
    NrFr,r,r,r-rHcrGrHcCst�dd���}|dvS)N�SETUPTOOLS_ENFORCE_DEPRECATION�false)�true�on�ok�1)�os�getenv�lower)�enforcer,r,r-r!lsr!)rB�
__future__rrOr"�datetimer�inspectr�textwrapr�typingr�typing_extensionsr�tuplerr�__annotations__r;r8�UserWarningr	rErHr!r,r,r,r-�<module>s"@