devel/py-deprecation 2.1.0_1 FreeBSD
Library to handle automated deprecations
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- APACHE20
- Categories
- devel, python
- Package size
- 14.5 KiB, 60.9 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 |
|---|---|---|
| FreeBSD | devel/py-deprecation | 2.1.0_1 |
| OpenBSD | devel/py-deprecation | 2.1.0p8 |
| NetBSD | devel/py-deprecation | 2.1.0nb2 |
| 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:
pkg install py312-deprecation
From the ports tree:
cd /usr/ports/devel/py-deprecation/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-deprecation>0:devel/py-deprecation
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.1.0_1 | 2.1.0_1 | 2.1.0 | 2.1.0_1 | 2.1.0_1 |
| FreeBSD:14:quarterly | 2.1.0_1 | 2.1.0_1 | n/a | 2.1.0_1 | 2.1.0_1 |
| FreeBSD:15:latest | 2.1.0_1 | 2.1.0_1 | n/a | 2.1.0_1 | 2.1.0_1 |
| FreeBSD:15:quarterly | 2.1.0_1 | 2.1.0_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.1.0_1 | 2.1.0_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
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
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 11
Required by 22
- audio/abcde
- audio/audacity
- audio/py-eyed3
- databases/py-lancedb
- deskutils/py-paperless-ngx
- deskutils/readur
- devel/py-ipydatawidgets
- devel/py-jupyter-packaging
- devel/py-jupyter-server-mathjax
- devel/py-widgetsnbextension
- graphics/scantpaper
- misc/py-crewai
- misc/py-crewai-tools
- multimedia/gpodder
- science/py-OpenFermion
- science/py-OpenFermion-Dirac
- science/py-OpenFermion-PySCF
- science/py-ipygany
- science/py-jupyter_jsmol
- science/py-nglview
- sysutils/conan
- textproc/py-ocrmypdf
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
Commit history 0
No commits in the history this site was built from.