New port: devel/py-attrs.

attrs is an MIT-licensed Python package with class decorators
that ease the chores of implementing the most common attribute-related
object protocols without writing dull boilerplate code again and again.

WWW: https://github.com/hynek/attrs

PR:		207853
Submitted by:	Axel.Rau@Chaos1.DE
This commit is contained in:
Raphael Kubo da Costa 2016-03-10 16:23:24 +00:00
parent 572f7e6dce
commit 9a5ea2d5cc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=410763
4 changed files with 47 additions and 0 deletions

View File

@ -3937,6 +3937,7 @@
SUBDIR += py-astroid SUBDIR += py-astroid
SUBDIR += py-asyncio SUBDIR += py-asyncio
SUBDIR += py-atomicwrites SUBDIR += py-atomicwrites
SUBDIR += py-attrs
SUBDIR += py-avro SUBDIR += py-avro
SUBDIR += py-babel SUBDIR += py-babel
SUBDIR += py-babelfish SUBDIR += py-babelfish

20
devel/py-attrs/Makefile Normal file
View File

@ -0,0 +1,20 @@
# Created by: Axel Rau <axel.rau@chaos1.de>
# $FreeBSD$
PORTNAME= attrs
PORTVERSION= 15.2.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= axel.rau@chaos1.de
COMMENT= Python attributes without boilerplate
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
NO_ARCH= yes
USES= python
USE_PYTHON= autoplist distutils
.include <bsd.port.mk>

2
devel/py-attrs/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (attrs-15.2.0.tar.gz) = 9f895d2ecefa0be054e29375769f1d0ee88e93ce820088cf5c49390529bf7ee7
SIZE (attrs-15.2.0.tar.gz) = 36766

24
devel/py-attrs/pkg-descr Normal file
View File

@ -0,0 +1,24 @@
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.
WWW: https://github.com/hynek/attrs