BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-deprecation2.1.0_1
OpenBSDdevel/py-deprecation2.1.0p8
NetBSDdevel/py-deprecation2.1.0nb2
DragonFlydevel/py-deprecation2.1.0_1
MidnightBSDdevel/py-deprecation2.1.0_2
HardenedBSDdevel/py-deprecation2.1.0_1
GhostBSDdevel/py-deprecation2.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.1.0_12.1.0_12.1.02.1.0_12.1.0_1
FreeBSD:14:quarterly2.1.0_12.1.0_1n/a2.1.0_12.1.0_1
FreeBSD:15:latest2.1.0_12.1.0_1n/a2.1.0_12.1.0_1
FreeBSD:15:quarterly2.1.0_12.1.0_1n/an/an/a
FreeBSD:16:latest2.1.0_12.1.0_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 11

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
deprecation-2.1.0.tar.gz17378872b3bde64e5d778694b0cf68178aed03d15e15477116add3fb773e581f9518ff
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.