pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-attrs
Module Name: pkgsrc
Committed By: adam
Date: Thu May 10 08:24:40 UTC 2018
Modified Files:
pkgsrc/devel/py-attrs: Makefile distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-attrs/Makefile
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-attrs/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-attrs/Makefile
diff -u pkgsrc/devel/py-attrs/Makefile:1.9 pkgsrc/devel/py-attrs/Makefile:1.10
--- pkgsrc/devel/py-attrs/Makefile:1.9 Mon Jan 1 21:08:46 2018
+++ pkgsrc/devel/py-attrs/Makefile Thu May 10 08:24:40 2018
@@ -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 @@ MAINTAINER= pkgsrc-users%NetBSD.org@localhost
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"
Index: pkgsrc/devel/py-attrs/distinfo
diff -u pkgsrc/devel/py-attrs/distinfo:1.6 pkgsrc/devel/py-attrs/distinfo:1.7
--- pkgsrc/devel/py-attrs/distinfo:1.6 Mon Jan 1 21:08:46 2018
+++ pkgsrc/devel/py-attrs/distinfo Thu May 10 08:24:40 2018
@@ -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