o
    Eeq                     @   s   d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
mZ eeeef ZdZd d	d ZG d
d deZG dd deZG dd deZdd ZdS )zProvide 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.
    N)date)cleandoc)indent)OptionalTuplez        zP********************************************************************************z
{details}
c                   @   s   e Zd ZdZe						ddee dee dee dee dee d	efd
dZ	e			ddededee
 dee dee f
ddZdS )SetuptoolsWarningz/Base class in ``setuptools`` warning hierarchy.N   summarydetailsdue_datesee_docssee_url
stacklevelc                 K   s   |p	t | ddp	d}|pt | ddpd}	|pt | dd}|p#t | dd}
|
o*d|
 }|p2t | dd}|r9t| nd}| ||	||pC||}|rU|t k rUt rU| |tj|| |d	 d
 dS )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)clsr	   r
   r   r   r   r   kwargssummary_details_docs_refdocs_urlduetext r%   T/var/www/bmteknikk.ddns.net/venv/lib/python3.10/site-packages/setuptools/warnings.pyemit   s   zSetuptoolsWarning.emitformat_argsc           
      C   s   t  }t||pi }t||pi |r"||kr"d|ddnd|r+||k r+dnd|r4d| dndg}dd	 |D }|rUttjd
|dt}	d
|d|	dgS |S )r   z
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.c                 S   s   g | ]}|r|qS r%   r%   ).0xr%   r%   r&   
<listcomp>M   s    z-SetuptoolsWarning._format.<locals>.<listcomp>
)r
   z!!
z
!!)	r   r   r   
format_mapr   	_TEMPLATEformatjoin_INDENT)
r   r	   r
   r   r   r(   r   possible_partspartsbodyr%   r%   r&   r   1   s(   
zSetuptoolsWarning._format)NNNNNr   )NNN)__name__
__module____qualname____doc__classmethodr   str_DueDateintr'   r   dictr   r%   r%   r%   r&   r      sJ    r   c                   @      e Zd ZdZdS )InformationOnlya  Currently 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r5   r6   r7   r8   r%   r%   r%   r&   r?   T       r?   c                   @   r>   )SetuptoolsDeprecationWarningz
    Base class for warning deprecations in ``setuptools``

    This class is not derived from ``DeprecationWarning``, and as such is
    visible by default.
    Nr@   r%   r%   r%   r&   rB   ^   rA   rB   c                  C   s   t dd } | dv S )NSETUPTOOLS_ENFORCE_DEPRECATIONfalse)trueonok1)osgetenvlower)enforcer%   r%   r&   r   g   s   r   )r8   rI   r   datetimer   inspectr   textwrapr   typingr   r   r<   r;   r1   r.   UserWarningr   r?   rB   r   r%   r%   r%   r&   <module>   s    @
	