devel/py-deprecation 2.1.0nb2 NetBSD
Library to handle automated deprecations
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- apache-2.0
- Categories
- devel, python
- Package size
- 14.7 KiB, 51.2 KiB installed
Description
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:
-
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.
-
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/py-deprecation | 2.1.0nb2 |
| FreeBSD | devel/py-deprecation | 2.1.0_1 |
| OpenBSD | devel/py-deprecation | 2.1.0p8 |
| DragonFly | devel/py-deprecation | 2.1.0_1 |
| MidnightBSD | devel/py-deprecation | 2.1.0_2 |
| HardenedBSD | devel/py-deprecation | 2.1.0_1 |
| GhostBSD | devel/py-deprecation | 2.1.0_1 |
Install
Binary package:
pkgin install py311-deprecation
From pkgsrc:
cd /usr/pkgsrc/devel/py-deprecation && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.1.0nb2 |
| NetBSD 10.1 aarch64 | 2.1.0nb1 |
| SmartOS / illumos x86_64 | 2.1.0nb2 |
| macOS 15 arm64 | 2.1.0nb2 |
Dependencies
Run dependencies 2
Required by 3
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-deprecation-2.1.0nb2,py313-deprecation-2.1.0nb2,py314-deprecation-2.1.0nb2