BSD Ports

devel/py-deprecation 2.1.0_1 DragonFly

Library to handle automated deprecations

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, python
Package size
13.6 KiB, 62.3 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

The newest version among them is 2.1.0, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-deprecation2.1.0_1 newestnone known-[email protected]-
FreeBSDdevel/py-deprecation2.1.0_1 newestnone known-[email protected]-
OpenBSDdevel/py-deprecation2.1.0p8 newestno data-The OpenBSD ports mailing-list <[email protected]>2026-08-31
NetBSDdevel/py-deprecation2.1.0nb2 newestnone known-[email protected]-
MidnightBSDdevel/py-deprecation2.1.0_2 newestno data-[email protected]-
HardenedBSDdevel/py-deprecation2.1.0_1 newestno data-[email protected]-
GhostBSDdevel/py-deprecation2.1.0_1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install py311-deprecation

From DPorts:

cd /usr/dports/devel/py-deprecation && make install clean

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

Run dependencies 2