pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/py-attrs py-attrs: updated to 18.1.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/d97f84cf90c5
branches: trunk
changeset: 307631:d97f84cf90c5
user: adam <adam%pkgsrc.org@localhost>
date: Thu May 10 08:24:40 2018 +0000
description:
py-attrs: updated to 18.1.0
18.1.0:
- x=X(); x.cycle = x; repr(x) will no longer raise a RecursionError, and will instead show as X(x=...).
- attr.ib(factory=f) is now syntactic sugar for the common case of attr.ib(default=attr.Factory(f)).
- Added attr.field_dict() to return an ordered dictionary of attrs attributes for a class, whose keys are the attribute names.
- The order of attributes that are passed into attr.make_class() or the these argument of @attr.s() is now retained if the dictionary is ordered (i.e. dict on Python 3.6 and later,
collections.OrderedDict otherwise).
Before, the order was always determined by the order in which the attributes have been defined which may not be desirable when creating classes programatically.
- In slotted classes, __getstate__ and __setstate__ now ignore the __weakref__ attribute.
- Setting the cell type is now completely best effort.
This fixes attrs on Jython.
We cannot make any guarantees regarding Jython though, because our test suite cannot run due to dependency incompatabilities.
- If attr.s is passed a *these* argument, it will not attempt to remove attributes with the same name from the class body anymore.
- The hash of attr.NOTHING is now vegan and faster on 32bit Python builds.
- The overhead of instantiating frozen dict classes is virtually eliminated.
- Generated __init__ methods now have an __annotations__ attribute derived from the types of the fields.
- We have restructured the documentation a bit to account for attrs' growth in scope.
diffstat:
devel/py-attrs/Makefile | 15 +++++++++++----
devel/py-attrs/distinfo | 10 +++++-----
2 files changed, 16 insertions(+), 9 deletions(-)
diffs (47 lines):
diff -r 90b39b45c9a9 -r d97f84cf90c5 devel/py-attrs/Makefile
--- a/devel/py-attrs/Makefile Thu May 10 08:19:34 2018 +0000
+++ b/devel/py-attrs/Makefile Thu May 10 08:24:40 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2018/01/01 21:08:46 adam Exp $
+# $NetBSD: Makefile,v 1.10 2018/05/10 08:24:40 adam Exp $
-DISTNAME= attrs-17.4.0
+DISTNAME= attrs-18.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/attrs/}
@@ -10,10 +10,17 @@
COMMENT= Attributes without boilerplate
LICENSE= mit
-# This is a test dependency; disabled because hypothesis requires attrs
-#BUILD_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-Pympler-[0-9]*:../../devel/py-Pympler
+TEST_DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface
+TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
USE_LANGUAGES= # none
+do-test:
+ cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 90b39b45c9a9 -r d97f84cf90c5 devel/py-attrs/distinfo
--- a/devel/py-attrs/distinfo Thu May 10 08:19:34 2018 +0000
+++ b/devel/py-attrs/distinfo Thu May 10 08:24:40 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.6 2018/01/01 21:08:46 adam Exp $
+$NetBSD: distinfo,v 1.7 2018/05/10 08:24:40 adam Exp $
-SHA1 (attrs-17.4.0.tar.gz) = 69720cce49ab349a07f7b007ac5834309c390893
-RMD160 (attrs-17.4.0.tar.gz) = 25f3223a5b56ef351f6bd68353396dab0c720d3b
-SHA512 (attrs-17.4.0.tar.gz) = b631cd5af1be7c78175230363a3cf9d37cb0237d87b24f994812b5734985d114708d5bf7ee5d92b8b13c6b8daa313efde4a9f60f0630df0b62bbcf4928a016ff
-Size (attrs-17.4.0.tar.gz) = 97071 bytes
+SHA1 (attrs-18.1.0.tar.gz) = f9f43d6300b5c502bd3a1aad48e542b0f576a016
+RMD160 (attrs-18.1.0.tar.gz) = f833c99a977fa5295086fa7d8cb25f6b38bd52db
+SHA512 (attrs-18.1.0.tar.gz) = 9aa4421d1c16614cd26089c219f70602fd6baa5fbbf4aa96def189e9a41f8c761d7f522c5e167a63e366cf8b46e87477c345655f09738a14981bb40dbcd12b91
+Size (attrs-18.1.0.tar.gz) = 106346 bytes
Home |
Main Index |
Thread Index |
Old Index