_iq d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
mZ eeeef Z
dZd d d Z G d
de Z G d d
e Z G d de Zd Zy)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)OptionalTuplez zP********************************************************************************z
{details}
c e Zd ZdZe ddee dee dee dee dee defd Z e d
dededee
dee d
ee f
d Zy)SetuptoolsWarningz/Base class in ``setuptools`` warning hierarchy.Nsummarydetailsdue_datesee_docssee_url
stacklevelc |xs t | dd xs d}|xs t | dd xs d} |xs
t | dd }|xs
t | dd }
|
xr d|
}|xs
t | dd }|rt | nd}| j || ||xs || }
|r)|t j k rt r | |
t j |
| |d z
y)6Private: reserved for ``setuptools`` internal use only_SUMMARYN _DETAILS _DUE_DATE _SEE_DOCSz%https://setuptools.pypa.io/en/latest/_SEE_URL )r )getattrr _formattoday_should_enforcewarningswarn)clsr
r r r
r r kwargssummary_details_docs_refdocs_urlduetexts /builddir/build/BUILDROOT/alt-python312-setuptools-69.0.2-3.el8.x86_64/opt/alt/python312/lib/python3.12/site-packages/setuptools/warnings.pyemitzSetuptoolsWarning.emit s Bgc:t<BBgc:t<B>wsK>>wsK>R"Gz R;WS*d;!)dHot{{8XsG4GxP3%/*;d)O
dCJN; format_argsc t j }t | j |xs i }t | j |xs i |r||kD rd|ddnd|r||k rdnd|rd| dndg}|D cg c] }|s| } }| rHt t
j
dj | t }
dj |d
|
dg S |S c c}w )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.
)r z!!
z
!!) r r r
format_mapr _TEMPLATEformatjoin_INDENT)r r
r r r r* r possible_partsxpartsbodys r' r zSetuptoolsWarning._format1 s
7#..{/@bAW(():; 5 0 * +P P
5 0I 07vgYm
,T
+0NqaN0)**499U3C*DgND99gvtV<== 1s 8C C)NNNNN )NNN)
__name__
__module____qualname____doc__classmethodr str_DueDateintr( r dictr r) r' r r s 9 "&!%'+"&!%<#< #< 8$ <
3-< #
< < <2
$(!%&*
4.
# d^
r) r c e Zd ZdZy)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.
Nr7 r8 r9 r: r@ r) r' rB rB T s r) rB c e Zd ZdZy)SetuptoolsDeprecationWarningz
Base class for warning deprecations in ``setuptools``
This class is not derived from ``DeprecationWarning``, and as such is
visible by default.
NrC r@ r) r' rE rE ^ s r) rE c R t j dd j } | dv S )NSETUPTOOLS_ENFORCE_DEPRECATIONfalse)trueonok1)osgetenvlower)enforces r' r r g s( ii8'BHHJG///r) )r: rM r datetimer inspectr textwrapr typingr r r> r= r1 r. UserWarningr rB rE r r@ r) r'