head 1.4; access; symbols pkgsrc-2023Q4:1.4.0.46 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.44 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.42 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.40 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.38 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.36 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.34 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.32 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.30 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.28 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.26 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.24 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.22 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.20 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.18 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.14 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.16 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.12 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.10 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.8 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.6 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.4 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.2 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.2.0.2 pkgsrc-2018Q1-base:1.2; locks; strict; comment @# @; 1.4 date 2018.06.21.06.43.05; author adam; state Exp; branches; next 1.3; commitid 3dnQN7CDZTzUb7HA; 1.3 date 2018.06.18.07.47.40; author adam; state Exp; branches; next 1.2; commitid M0bN7W1lcI04EJGA; 1.2 date 2018.02.05.13.18.04; author adam; state Exp; branches; next 1.1; commitid RFHfGOUHmMfsKFpA; 1.1 date 2017.12.31.18.47.08; author adam; state Exp; branches; next ; commitid mEAE5XHB40ZLI4lA; desc @@ 1.4 log @py-deprecation: updated to 2.0.4 2.0.4: Bug fixes. @ text @@@comment $NetBSD: PLIST,v 1.3 2018/06/18 07:47:40 adam Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt ${PYSITELIB}/${EGG_INFODIR}/requires.txt ${PYSITELIB}/${EGG_INFODIR}/top_level.txt ${PYSITELIB}/deprecation.py ${PYSITELIB}/deprecation.pyc ${PYSITELIB}/deprecation.pyo @ 1.3 log @py-deprecation: updated to 2.0.3 2.0.3: Bug fixes. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.2 2018/02/05 13:18:04 adam Exp $ a9 3 ${PYSITELIB}/sample.py ${PYSITELIB}/sample.pyc ${PYSITELIB}/sample.pyo @ 1.2 log @py-deprecation: updated to 1.1 1.1: Unknown changes. @ text @d1 1 a1 1 @@comment $NetBSD: PLIST,v 1.1 2017/12/31 18:47:08 adam Exp $ d10 3 @ 1.1 log @py-deprecation: added version 1.0.1 The deprecation library provides a deprecated decorator and a fail_if_not_removed decorator for your tests. Together, the two enable the automation of several things: 1. The docstring of a deprecated method gets the deprecation details appended to the end of it. If you generate your API docs direct from your source, you don't need to worry about writing your own notification. You also don't need to worry about forgetting to write it. It's done for you. 2. Rather than having code live on forever because you only deprecated it but never actually moved on from it, you can have your tests tell you when it's time to remove the code. The @@deprecated decorator can be told when it's time to entirely remove the code, which causes @@fail_if_not_removed to raise an AssertionError, causing either your unittest or py.test tests to fail. @ text @d1 1 a1 1 @@comment $NetBSD$ d5 1 @