devel/py-deprecation 2.1.0_2 MidnightBSD
Library to handle automated deprecations
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- Apache-2.0
- Categories
- devel, python
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
The newest version among them is 2.1.0, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| MidnightBSD | devel/py-deprecation | 2.1.0_2 newest | no data | - | [email protected] | - |
| FreeBSD | devel/py-deprecation | 2.1.0_1 newest | none known | - | [email protected] | - |
| OpenBSD | devel/py-deprecation | 2.1.0p8 newest | no data | - | The OpenBSD ports mailing-list <[email protected]> | 2026-08-31 |
| NetBSD | devel/py-deprecation | 2.1.0nb2 newest | none known | - | [email protected] | - |
| DragonFly | devel/py-deprecation | 2.1.0_1 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/py-deprecation | 2.1.0_1 newest | no data | - | [email protected] | - |
| GhostBSD | devel/py-deprecation | 2.1.0_1 newest | no data | - | [email protected] | - |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}deprecation
From mports:
cd /usr/mports/devel/py-deprecation && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}deprecation>0:devel/py-deprecation
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 1
${PYTHON_PKGNAMEPREFIX}packaging>=0: devel/py-packaging
Build dependencies 2
Run dependencies 1
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| deprecation-2.1.0.tar.gz | 173788 | 72b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff |
Master sites 1
- PYPI