K i ddlmZddlZddlmZmZedddddd ed d d id ed dddd dZejjdejdZ dZ dZ y))cleandocN)SetuptoolsDeprecationWarningSetuptoolsWarning)z Hello {x}z {target} {v:.1f}World)xvtargetz Hello 5 !! ******************************************************************************** World 3.0 ******************************************************************************** !! )argskwargsexpected)Summary Lorem ipsumdue_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. ******************************************************************************** !! irrsome_page.html)rsee_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. ******************************************************************************** !! )defaultfutue_due_datepast_due_date_with_docs example_namec(t|d}t|d}t|d}|jddtjt5}t j |i|dddt t|k(sJy#1swY#xYw)z] It should automatically handle indentation, interpolation and things like due date. r r rSETUPTOOLS_ENFORCE_DEPRECATIONfalseN) _EXAMPLESsetenvpytestwarnsremit _get_messager) monkeypatchrr r r warn_infos d/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/setuptools/tests/test_warnings.pytest_formattingr(=s \ "6 *D | $X .F&z2H7A ' (0I//0  "hx&8 88 800s BBc Gddt}|jddtjt5}|j dddd}t j t|k(sJy#1swY/xYw)NceZdZdZdZdZdZy)1test_due_date_enforcement.._MyDeprecationrrrrN)__name__ __module__ __qualname___SUMMARY_DETAILS _DUE_DATE _SEE_DOCSr'_MyDeprecationr+Ms " $ r4r5rtruer)rr r!raisesr#strvaluer)r%r5exc_infors r'test_due_date_enforcementr;Lsw%5% 7@ 3 4H x~~ (8"4 44 4%s A::Bc&td|DS)Nc3NK|]}|jjdyw)rN)messager ).0warns r' z_get_message..js; !!!$;s#%)next)r&s r'r$r$is ;; ;;r4)inspectrr!setuptools.warningsrrdictrmark parametrizekeysr(r;r$r3r4r'rIs O 2Q'2   'N+ " $ '*8HI A3  l)9: 9; 95: