BSD Ports

devel/py-attrs 26.1.0_1 MidnightBSD

Python attributes without boilerplate

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
22173208f1
License
mit
Categories
devel, python

Description

attrs is an MIT-licensed Python package with class decorators that ease the chores of implementing the most common attribute-related object protocols:

>>> import attr >>> @attr.s ... class C(object): ... x = attr.ib(default=42) ... y = attr.ib(default=attr.Factory(list)) >>> i = C(x=1, y=2)

(If you don't like the playful attr.s and attr.ib, you can also use their no-nonsense aliases attr.attributes and attr.attr).

You just specify the attributes to work with and attrs gives you:

a nice human-readable \_\_repr\_\_,
a complete set of comparison methods,
an initializer,
and much more

without writing dull boilerplate code again and again.

In the other systems

SystemPortVersion
MidnightBSDdevel/py-attrs26.1.0_1
FreeBSDdevel/py-attrs26.1.0
OpenBSDdevel/py-attrs26.1.0
NetBSDdevel/py-attrs26.1.0
DragonFlydevel/py-attrs25.3.0
HardenedBSDdevel/py-attrs26.1.0
GhostBSDdevel/py-attrs26.1.0
OPNsensedevel/py-attrs26.1.0

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}attrs

From mports:

cd /usr/mports/devel/py-attrs && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs

Dependencies

As this port's Makefile names them.

Build 3

Build dependencies 3

Configuration

No options to configure.

USES
python cpe
Service scripts
none

Files

distinfo 1
FileSizeSHA256
attrs-26.1.0.tar.gz952055d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
22173208f1 Lucas Holt */*: add CPE identifiers from the matching FreeBSD ports
mport audit matches installed packages against sec.midnightbsd.org by CPE, so a port without one is invisible to it regardless of how vulnerable it is. These 126 ports had no CPE while the corresponding FreeBSD port did, so the vendor and product were copied from there rather than guessed. Sampled against the audit API to confirm the identifiers resolve, e.g. cad/gtkwave tonybybell:gtkwave 82 CVEs archivers/libunrar rarlab:unrar 12 audio/espeak-ng espeak-ng:espeak-ng 5 archivers/minizip-ng zlib-ng:minizip-ng 3 audio/faust grame:faust 3 cad/admesh admesh_project:admesh 3 Three ports were deliberately skipped: archivers/p5-Archive-Tar, …