
    ϶vg                        d dl mZ d dlZd dlmZmZ  edddddd	
           edddid
           eddddd
          dZej        	                    de
                                          d             Zd Zd ZdS )    )cleandocN)SetuptoolsDeprecationWarningSetuptoolsWarning)z	Hello {x}z
	{target} {v:.1f}      World)xvtargetz
    Hello 5
    !!

            ********************************************************************************
            World 3.0
            ********************************************************************************

    !!
    )argskwargsexpected)SummaryLorem ipsumdue_date)i'        a  
    Summary
    !!

            ********************************************************************************
            Lorem ipsum

            By 9999-Nov-22, you need to update your project and remove deprecated calls
            or your builds will no longer be supported.
            ********************************************************************************

    !!
    i  r   r   some_page.html)r   see_docs  
    Summary
    !!

            ********************************************************************************
            Lorem ipsum

            This deprecation is overdue, please update your project and remove deprecated
            calls to avoid build errors in the future.

            See https://setuptools.pypa.io/en/latest/some_page.html for details.
            ********************************************************************************

    !!
    )defaultfutue_due_datepast_due_date_with_docsexample_namec                 l   t           |         d         }t           |         d         }t           |         d         }|                     dd           t          j        t                    5 }t	          j        |i | ddd           n# 1 swxY w Y   t          |          t          |          k    sJ dS )z]
    It should automatically handle indentation, interpolation and things like due date.
    r   r   r   SETUPTOOLS_ENFORCE_DEPRECATIONfalseN)	_EXAMPLESsetenvpytestwarnsr   emit_get_messager   )monkeypatchr   r   r   r   	warn_infos         [/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/setuptools/tests/test_warnings.pytest_formattingr(   =   s    
 \"6*D|$X.F&z2H7AAA	'	(	( 0I////0 0 0 0 0 0 0 0 0 0 0 0 0 0 0	""hx&8&8888888s   )BBBc                 4    G d dt                     }|                     dd           t          j        t                     5 }|                                 d d d            n# 1 swxY w Y   d}t          |j                  t          |          k    sJ d S )Nc                       e Zd ZdZdZdZdZdS )1test_due_date_enforcement.<locals>._MyDeprecationr   r   r   r   N)__name__
__module____qualname___SUMMARY_DETAILS	_DUE_DATE	_SEE_DOCS     r'   _MyDeprecationr+   M   s"         "	$			r4   r5   r   truer   )r   r    r!   raisesr#   strvaluer   )r%   r5   exc_infor   s       r'   test_due_date_enforcementr;   L   s    % % % % %5 % % % 7@@@	3	4	4               H x~(8"4"4444444s   A$$A(+A(c                 4    t          d | D                       S )Nc              3   :   K   | ]}|j         j        d          V  dS )r   N)messager   ).0warns     r'   	<genexpr>z_get_message.<locals>.<genexpr>j   s,      ;;!!$;;;;;;r4   )next)r&   s    r'   r$   r$   i   s    ;;;;;;;;r4   )inspectr   r!   setuptools.warningsr   r   dictr   markparametrizekeysr(   r;   r$   r3   r4   r'   <module>rI      s!          O O O O O O O O t2Q'22	   d'N+  "  $t'*8HII     A3 3	l )9)9::9 9 ;:95 5 5:< < < < <r4   