[Midnightbsd-cvs] mports [24114] trunk/devel: add py-attrs

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Mon Sep 3 11:39:55 EDT 2018


Revision: 24114
          http://svnweb.midnightbsd.org/mports/?rev=24114
Author:   laffer1
Date:     2018-09-03 11:39:54 -0400 (Mon, 03 Sep 2018)
Log Message:
-----------
add  py-attrs

Modified Paths:
--------------
    trunk/devel/Makefile

Added Paths:
-----------
    trunk/devel/py-attrs/
    trunk/devel/py-attrs/Makefile
    trunk/devel/py-attrs/distinfo
    trunk/devel/py-attrs/pkg-descr

Modified: trunk/devel/Makefile
===================================================================
--- trunk/devel/Makefile	2018-09-03 15:37:14 UTC (rev 24113)
+++ trunk/devel/Makefile	2018-09-03 15:39:54 UTC (rev 24114)
@@ -470,6 +470,7 @@
 SUBDIR += py-Jinja2
 SUBDIR += py-asn1crypto
 SUBDIR += py-astroid
+SUBDIR += py-attrs
 SUBDIR += py-babel
 SUBDIR += py-backports.functools_lru_cache
 SUBDIR += py-bcdoc

Added: trunk/devel/py-attrs/Makefile
===================================================================
--- trunk/devel/py-attrs/Makefile	                        (rev 0)
+++ trunk/devel/py-attrs/Makefile	2018-09-03 15:39:54 UTC (rev 24114)
@@ -0,0 +1,22 @@
+# $MidnightBSD$
+
+PORTNAME=	attrs
+PORTVERSION=	18.1.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Python attributes without boilerplate
+
+LICENSE=	mit
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+NO_ARCH=	yes
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+do-test:
+	@(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest)
+
+.include <bsd.port.mk>


Property changes on: trunk/devel/py-attrs/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-attrs/distinfo
===================================================================
--- trunk/devel/py-attrs/distinfo	                        (rev 0)
+++ trunk/devel/py-attrs/distinfo	2018-09-03 15:39:54 UTC (rev 24114)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1529320200
+SHA256 (attrs-18.1.0.tar.gz) = e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b
+SIZE (attrs-18.1.0.tar.gz) = 106346


Property changes on: trunk/devel/py-attrs/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/devel/py-attrs/pkg-descr
===================================================================
--- trunk/devel/py-attrs/pkg-descr	                        (rev 0)
+++ trunk/devel/py-attrs/pkg-descr	2018-09-03 15:39:54 UTC (rev 24114)
@@ -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


Property changes on: trunk/devel/py-attrs/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list