Port details on branch 2024Q1 |
- py-attrs Python attributes without boilerplate
- 24.3.0 devel =13 24.2.0Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2016-03-10 16:23:35
- Last Update: 2024-12-31 15:48:04
- Commit Hash: 93fede3
- People watching this port, also watch:: py311-six, p5-Error, indexinfo, jpeg-turbo, libxml2
- Also Listed In: python
- License: MIT
- WWW:
- https://www.attrs.org/en/stable/
- https://github.com/python-attrs/attrs
- 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.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}attrs>0:devel/py-attrs@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-attrs/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-attrs
- pkg install py311-attrs
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-attrs listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py311-attrs
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1735227846
SHA256 (attrs-24.3.0.tar.gz) = 8f5c07333d543103541ba7be0e2ce16eeee8130cb0b3f9238ab904ce1e85baff
SIZE (attrs-24.3.0.tar.gz) = 805984
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py311-hatch-fancy-pypi-readme>=23.2.0 : devel/py-hatch-fancy-pypi-readme@py311
- py311-hatch-vcs>=0 : devel/py-hatch-vcs@py311
- py311-hatchling>=0 : devel/py-hatchling@py311
- python3.11 : lang/python311
- py311-build>=0 : devel/py-build@py311
- py311-installer>=0 : devel/py-installer@py311
- Test dependencies:
-
- py311-cloudpickle>=0 : devel/py-cloudpickle@py311
- py311-hypothesis>=0 : devel/py-hypothesis@py311
- py311-Pympler>=0 : devel/py-pympler@py311
- py311-pytest-xdist>=0 : devel/py-pytest-xdist@py311
- py311-pytest>=7,1 : devel/py-pytest@py311
- python3.11 : lang/python311
- py311-mypy>=1.11.1 : devel/py-mypy@py311
- py311-pytest-mypy-plugins>=0 : devel/py-pytest-mypy-plugins@py311
- Runtime dependencies:
-
- python3.11 : lang/python311
- This port is required by:
- for Build
-
- x11/libei
-
Deleted ports which required this port:
- for Run
-
- databases/pg_activity
- devel/py-aiorpcX
- devel/py-aiorpcX-legacy
- devel/py-attrs-strict
- devel/py-cattrs
- devel/py-cattrs23
- devel/py-clldutils
-
Deleted ports which required this port:
- * - deleted ports are only shown under the This port is required by section. It was harder to do for the Required section. Perhaps later...
Configuration Options:
- No options to configure
- Options name:
- devel_py-attrs
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|