efqdZddlZddlZddlmZddlmZddlmZddl m Z m Z e e e e fZ dZdd dZGd d eZGd d eZGddeZdZdS)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} ceZdZdZe d deedeedeedeedeed ef d Z e ddededee deed ee f d Z dS)SetuptoolsWarningz/Base class in ``setuptools`` warning hierarchy.Nsummarydetailsdue_datesee_docssee_url stacklevelc |pt|ddpd}|pt|ddpd} |pt|dd}|pt|dd} | od| } |pt|dd}|r t|nd} ||| | |p| |} | r0| tjkrt r || t j| ||d z dS) 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 rrrkwargssummary_details_docs_refdocs_urlduetexts s/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/setuptools/warnings.pyemitzSetuptoolsWarning.emitsBgc:t<<BBgc:t<<B>wsK>>>wsK>>R R R R;WS*d;;!)3dHoot{{8XsG4GxPP  3%%/*;*;%#d))O dCJN;;;;;; format_argsctj}t||pi}t||pi|r ||krd|ddnd|r||krdnd|rd|dndg}d|D}|rZt t d | t} d |d | d gS|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.cg|]}||Sr.).0xs r( z-SetuptoolsWarning._format..Ms000qa0000r* )r z!! z !!) rrr format_mapr _TEMPLATEformatjoin_INDENT) r r r r rr+rpossible_partspartsbodys r(rzSetuptoolsWarning._format1s9 7##..{/@bAA W   ( (): ; ; (5 0 0PXPPPP  (5 0 0II07 A ,g , , , ,T  10N000  >)**499U3C3C*DDgNND99gvtV<== =r*)NNNNNr )NNN) __name__ __module__ __qualname____doc__ classmethodrstr_DueDateintr)rdictrr.r*r(r r s 99"&!%'+"&!%<<#<#<8$ < 3- < # <<<<[<2 $(!%&* 4.  #  d^ [r*r ceZdZdZdS)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(rErETsr*rEceZdZdZdS)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(rHrH^sr*rHcXtjdd}|dvS)NSETUPTOOLS_ENFORCE_DEPRECATIONfalse)trueonok1)osgetenvlower)enforces r(rrgs,i8'BBHHJJG / //r*)r>rPrdatetimerinspectrtextwraprtypingrrrBrAr7r4 UserWarningr rErHrr.r*r(rYs3 """""""" c3   6 6( 6 6 ===== ===@'#400000r*