Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Mar 2016 16:23:24 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r410763 - in head/devel: . py-attrs
Message-ID:  <201603101623.u2AGNOPD018317@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Thu Mar 10 16:23:24 2016
New Revision: 410763
URL: https://svnweb.freebsd.org/changeset/ports/410763

Log:
  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

Added:
  head/devel/py-attrs/
  head/devel/py-attrs/Makefile   (contents, props changed)
  head/devel/py-attrs/distinfo   (contents, props changed)
  head/devel/py-attrs/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Mar 10 15:42:14 2016	(r410762)
+++ head/devel/Makefile	Thu Mar 10 16:23:24 2016	(r410763)
@@ -3937,6 +3937,7 @@
     SUBDIR += py-astroid
     SUBDIR += py-asyncio
     SUBDIR += py-atomicwrites
+    SUBDIR += py-attrs
     SUBDIR += py-avro
     SUBDIR += py-babel
     SUBDIR += py-babelfish

Added: head/devel/py-attrs/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-attrs/Makefile	Thu Mar 10 16:23:24 2016	(r410763)
@@ -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>

Added: head/devel/py-attrs/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-attrs/distinfo	Thu Mar 10 16:23:24 2016	(r410763)
@@ -0,0 +1,2 @@
+SHA256 (attrs-15.2.0.tar.gz) = 9f895d2ecefa0be054e29375769f1d0ee88e93ce820088cf5c49390529bf7ee7
+SIZE (attrs-15.2.0.tar.gz) = 36766

Added: head/devel/py-attrs/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-attrs/pkg-descr	Thu Mar 10 16:23:24 2016	(r410763)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603101623.u2AGNOPD018317>