./devel/py-deprecation, Library to handle automated deprecations

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.1.0nb1, Package name: py310-deprecation-2.1.0nb1, Maintainer: pkgsrc-users

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.


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)


CVS history: (Expand)


   2022-01-27 12:35:02 by Thomas Klausner | Files touched by this commit (3)
Log message:
py-deprecation: desupport python 2.x
   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-11-09 21:34:41 by Thomas Klausner | Files touched by this commit (9)
Log message:
*: convert packaging to lang/python/versioned_dependencies.mk
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   2020-06-01 17:43:55 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-deprecation: updated to 2.1.0

2.1.0:
Unknown changes
   2019-08-26 12:43:17 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-deprecation: updated to 2.0.7

2.0.7:
Unknown changes
   2019-07-09 13:35:15 by Nia Alarie | Files touched by this commit (9)
Log message:
Use https for readthedocs.io.