Path to this page:
./
devel/py-deprecation,
Library to handle automated deprecations
Branch: CURRENT,
Version: 2.1.0nb1,
Package name: py310-deprecation-2.1.0nb1,
Maintainer: pkgsrc-usersThe 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.
Required to run:[
devel/py-setuptools] [
devel/py-packaging] [
lang/python37]
Required to build:[
pkgtools/cwrappers]
Master sites:
Filesize: 169.715 KB
Version history: (Expand)
- (2023-02-09) Updated to version: py310-deprecation-2.1.0nb1
- (2022-01-05) Updated to version: py39-deprecation-2.1.0nb1
- (2021-10-07) Updated to version: py39-deprecation-2.1.0
- (2020-06-01) Updated to version: py37-deprecation-2.1.0
- (2019-08-26) Updated to version: py37-deprecation-2.0.7
- (2019-07-09) Updated to version: py37-deprecation-2.0.6
CVS history: (Expand)