a „oeqã@s¤dZddlZddlZddlmZddlmZddlmZddl m Z m Z e e e e fZ dZd›d d›�ZGd d „d eƒZGd d „d eƒ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. éN)Údate)Úcleandoc)Úindent)ÚOptionalÚTuplez zP********************************************************************************z {details} c @sjeZdZdZed eeeeeeeeeeedœdd„ƒZ ed eeee eeee dœdd „ƒZ dS) ÚSetuptoolsWarningz/Base class in ``setuptools`` warning hierarchy.Né)ÚsummaryÚdetailsÚdue_dateÚsee_docsÚsee_urlÚ stacklevelcKsÂ|pt|ddƒpd}|p&t|ddƒp&d} |p6t|ddƒ}|pFt|ddƒ} | oTd| ›�} |pdt|ddƒ}|rrt|Žnd} | || | |p†| |¡} | rª| t ¡krªtƒrª|| ƒ‚tj| ||d d �dS) ú6Private: reserved for ``setuptools`` internal use onlyZ_SUMMARYNÚZ_DETAILSZ _DUE_DATEZ _SEE_DOCSz%https://setuptools.pypa.io/en/latest/Z_SEE_URLé)r)ÚgetattrrÚ_formatÚtodayÚ_should_enforceÚwarningsÚwarn)Úclsr r r r r rÚkwargsZsummary_Zdetails_Zdocs_refZdocs_urlZdueÚtext©rú4C:\Program Files\Certbot\pkgs\setuptools\warnings.pyÚemits zSetuptoolsWarning.emit)r r r r Ú format_argsc Cs®t ¡}t|ƒ |pi¡}t|ƒ |p(i¡|rD||krDd|d›d�nd|rV||krVdnd|rhd|›d�ndg}dd „|Dƒ}|rªttjd  |¡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|‘qSrr)Ú.0ÚxrrrÚ Móz-SetuptoolsWarning._format..Ú )r z!! z !!) rrrÚ format_maprÚ _TEMPLATEÚformatÚjoinÚ_INDENT) rr r r r rrZpossible_partsÚpartsÚbodyrrrr1s( þþþþòzSetuptoolsWarning._format)NNNNNr)NNN) Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú classmethodrÚstrÚ_DueDateÚintrrÚdictrrrrrrs6ùùúúrc@seZdZdZdS)Ú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,r-r.rrrrr4Tsr4c@seZdZdZdS)ÚSetuptoolsDeprecationWarningz¢ Base class for warning deprecations in ``setuptools`` This class is not derived from ``DeprecationWarning``, and as such is visible by default. Nr5rrrrr6^sr6cCst dd¡ ¡}|dvS)NZSETUPTOOLS_ENFORCE_DEPRECATIONZfalse)ÚtrueZonÚokÚ1)ÚosÚgetenvÚlower)Zenforcerrrrgsr)r.r:rZdatetimerÚinspectrÚtextwraprÚtypingrrr2r1r(r%Ú UserWarningrr4r6rrrrrÚs   @