pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-attrs Changes 16.3.0:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6bb21aea8ea3
branches:  trunk
changeset: 358490:6bb21aea8ea3
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Feb 13 18:57:05 2017 +0000

description:
Changes 16.3.0:
* Attributes now can have user-defined metadata which greatly improves attrs?s extensibility.

* Allow for a __attrs_post_init__ method that ? if defined ? will get called at the end of the attrs-generated __init__ method.

* Add @attr.s(str=True) that will optionally create a __str__ method that is identical to __repr__. This is mainly useful with Exceptions and other classes that rely on a useful __str__ 
implementation but overwrite the default one through a poor own one. Default Python class behavior is to use __repr__ as __str__ anyways.

If you tried using attrs with Exceptions and were puzzled by the tracebacks: this option is for you.

* Don?t overwrite __name__ with __qualname__ for attr.s(slots=True) classes.

diffstat:

 devel/py-attrs/Makefile |   4 ++--
 devel/py-attrs/PLIST    |  15 +++++++++------
 devel/py-attrs/distinfo |  10 +++++-----
 3 files changed, 16 insertions(+), 13 deletions(-)

diffs (59 lines):

diff -r b73f8c2311b8 -r 6bb21aea8ea3 devel/py-attrs/Makefile
--- a/devel/py-attrs/Makefile   Mon Feb 13 18:35:38 2017 +0000
+++ b/devel/py-attrs/Makefile   Mon Feb 13 18:57:05 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2016/06/01 12:30:45 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2017/02/13 18:57:05 adam Exp $
 
-DISTNAME=      attrs-15.2.0
+DISTNAME=      attrs-16.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/attrs/}
diff -r b73f8c2311b8 -r 6bb21aea8ea3 devel/py-attrs/PLIST
--- a/devel/py-attrs/PLIST      Mon Feb 13 18:35:38 2017 +0000
+++ b/devel/py-attrs/PLIST      Mon Feb 13 18:57:05 2017 +0000
@@ -1,4 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2016/04/14 11:06:27 leot Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/02/13 18:57:05 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/attr/__init__.py
 ${PYSITELIB}/attr/__init__.pyc
 ${PYSITELIB}/attr/__init__.pyo
@@ -14,14 +19,12 @@
 ${PYSITELIB}/attr/_make.py
 ${PYSITELIB}/attr/_make.pyc
 ${PYSITELIB}/attr/_make.pyo
+${PYSITELIB}/attr/exceptions.py
+${PYSITELIB}/attr/exceptions.pyc
+${PYSITELIB}/attr/exceptions.pyo
 ${PYSITELIB}/attr/filters.py
 ${PYSITELIB}/attr/filters.pyc
 ${PYSITELIB}/attr/filters.pyo
 ${PYSITELIB}/attr/validators.py
 ${PYSITELIB}/attr/validators.pyc
 ${PYSITELIB}/attr/validators.pyo
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
diff -r b73f8c2311b8 -r 6bb21aea8ea3 devel/py-attrs/distinfo
--- a/devel/py-attrs/distinfo   Mon Feb 13 18:35:38 2017 +0000
+++ b/devel/py-attrs/distinfo   Mon Feb 13 18:57:05 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1 2016/04/14 11:06:27 leot Exp $
+$NetBSD: distinfo,v 1.2 2017/02/13 18:57:05 adam Exp $
 
-SHA1 (attrs-15.2.0.tar.gz) = eacb016efc4f6ae0a938318a87c69972c151cb15
-RMD160 (attrs-15.2.0.tar.gz) = 18658fe3760a14206092fc1154693be076636aec
-SHA512 (attrs-15.2.0.tar.gz) = f34f70acbd01dc94c6f994ce7c764e169e26f5d71454522f4f88859b67309556e88e20504e2a6a63590e4ad8e55f04ba7cc9a90c024364c1bf932bfadd5a4491
-Size (attrs-15.2.0.tar.gz) = 36766 bytes
+SHA1 (attrs-16.3.0.tar.gz) = ce3d6456b024a21cc20291d605964dbcff205e64
+RMD160 (attrs-16.3.0.tar.gz) = 89b7aa7b8ffe2463faf83520d596c88c49af5ebd
+SHA512 (attrs-16.3.0.tar.gz) = 1a91e6f27ecaf20c409c3abf88ffed5c6cfdbba8cff44637399b713271ff838a054f5859dd29440b2780d81b40673033e3f8e43dd491bece72e0a4f08c4ef688
+Size (attrs-16.3.0.tar.gz) = 57512 bytes



Home | Main Index | Thread Index | Old Index