Port details on branch 2022Q2 |
- py-attrs Python attributes without boilerplate
- 23.2.0 devel =7 23.1.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-02-21 15:07:12
- Commit Hash: 4d52a56
- People watching this port, also watch:: mkfontscale, libinotify, py39-pycparser, font-misc-meltho, libunwind
- Also Listed In: python
- License: MIT
- WWW:
- 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 py39-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 py39-attrs listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-attrs
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1708449130
SHA256 (attrs-23.2.0.tar.gz) = 935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30
SIZE (attrs-23.2.0.tar.gz) = 780820
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:
-
- py39-hatch-fancy-pypi-readme>=23.2.0 : devel/py-hatch-fancy-pypi-readme@py39
- py39-hatch-vcs>=0 : devel/py-hatch-vcs@py39
- py39-hatchling>=0 : devel/py-hatchling@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- py39-cloudpickle>=0 : devel/py-cloudpickle@py39
- py39-hypothesis>=0 : devel/py-hypothesis@py39
- py39-mypy>=1.1.1 : devel/py-mypy@py39
- py39-psutil>=3.0 : sysutils/py-psutil@py39
- py39-Pympler>=0 : devel/py-pympler@py39
- py39-pytest-xdist>=0 : devel/py-pytest-xdist@py39
- py39-zope.interface>=0 : devel/py-zope.interface@py39
- py39-pytest>=7,1 : devel/py-pytest@py39
- python3.9 : lang/python39
- py39-pytest-mypy-plugins>=0 : devel/py-pytest-mypy-plugins@py39
- Runtime dependencies:
-
- python3.9 : lang/python39
- This port is required by:
- for Build
-
- math/sage
- x11/libei
- for Run
-
- databases/pg_activity
- devel/py-Automat
- devel/py-aiorpcX
- devel/py-attrs-strict
- devel/py-cattrs
- devel/py-clldutils
- devel/py-cmd2
-
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:
|