~fsdZddlmZddlZddlZddlmZddlmZddl m Z ddl m Z e e e e fZdZd d d ZGd d eZGd deZGddeZdZy)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. ) annotationsN)date)cleandoc)indent)Tuplez zP********************************************************************************z {details} creZdZdZe d ddZe d ddZy) SetuptoolsWarningz/Base class in ``setuptools`` warning hierarchy.Nc |xst|ddxsd}|xst|ddxsd} |xs t|dd}|xs t|dd} | xrd| } |xs t|dd}|rt|nd} |j|| | |xs| |} | r)| tjkrt 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) stacklevel)getattrr_formattoday_should_enforcewarningswarn)clssummarydetailsdue_datesee_docssee_urlrkwargssummary_details_docs_refdocs_urlduetexts \/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/setuptools/warnings.pyemitzSetuptoolsWarning.emitsBgc:t<BBgc:t<B>wsK>>wsK>R"Gz R;WS*d;!)dHot{{8XsG4GxP 3%/*;d)O dCJN;ctj}t|j|xsi}t|j|xsi|r ||kDrd|ddnd|r||krdnd|rd|dndg}|Dcgc]}|s| } }| rHt t j dj|  t} dj|d | d gS|Scc}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. )rz!! z !!) rrr format_mapr _TEMPLATEformatjoin_INDENT) rrrrr format_argsrpossible_partsxpartsbodys r'rzSetuptoolsWarning._format3s 7#..{/@bA W  ( (): ;5 0*+PP 5 0I07vgYm ,T  +0qa00 )**499U3C*DgND99gvtV<= = 1s 8CC)NNNNN) r str | Nonerr7rz_DueDate | Nonerr7rr7rint)NNN) rstrrr9rz date | Nonerr7r1z dict | None)__name__ __module__ __qualname____doc__ classmethodr(rr)r'r r s9#"$(#"<<<" <  <  <<<2 !%"#'     ! r)r ceZdZdZy)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. Nr:r;r<r=r?r)r'rArAVsr)rAceZdZdZy)SetuptoolsDeprecationWarningz Base class for warning deprecations in ``setuptools`` This class is not derived from ``DeprecationWarning``, and as such is visible by default. NrBr?r)r'rDrD`sr)rDcRtjddj}|dvS)NSETUPTOOLS_ENFORCE_DEPRECATIONfalse)trueonok1)osgetenvlower)enforces r'rris(ii8'BHHJG / //r))r= __future__rrLrdatetimerinspectrtextwraprtypingrr8_DueDater0r- UserWarningr rArDrr?r)r'rWsr#  c3   /( 6 = =@'#40r)