Mon Sep 3 07:40:18 2018 UTC ()
py-attrs: updated to 18.2.0

18.2.0:
Deprecations
Comparing subclasses using <, >, <=, and >= is now deprecated. The docs always claimed that instances are only compared if the types are identical, so this is a first step to conform to the docs.
Equality operators (== and !=) were always strict in this regard.

Changes
attrs now ships its own PEP 484 type hints. Together with mypy窶冱 attrs plugin, you窶况e got all you need for writing statically typed code in both Python 2 and 3!
At that occasion, we窶况e also added narrative docs about type annotations in attrs.
Added kw_only arguments to attr.ib and attr.s, and a corresponding kw_only attribute to attr.Attribute. This change makes it possible to have a generated __init__ with keyword-only arguments on Python 3, relaxing the required ordering of default and non-default valued attributes.
The test suite now runs with hypothesis.HealthCheck.too_slow disabled to prevent CI breakage on slower computers.
attr.validators.in_() now raises a ValueError with a useful message even if the options are a string and the value is not a string.
attr.asdict() now properly handles deeply nested lists and dictionaries.
Added attr.converters.default_if_none() that allows to replace None values in attributes. For example attr.ib(converter=default_if_none("")) replaces None by empty strings.
Fixed a reference leak where the original class would remain live after being replaced when slots=True is set.
Slotted classes can now be made weakly referenceable by passing @attr.s(weakref_slot=True).
Added cache_hash option to @attr.s which causes the hash code to be computed once and stored on the object.
Attributes can be named property and itemgetter now.
It is now possible to override a base class窶� class variable using only class annotations.


(adam)
diff -r1.10 -r1.11 pkgsrc/devel/py-attrs/Makefile
diff -r1.4 -r1.5 pkgsrc/devel/py-attrs/PLIST
diff -r1.7 -r1.8 pkgsrc/devel/py-attrs/distinfo

cvs diff -r1.10 -r1.11 pkgsrc/devel/py-attrs/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-attrs/Makefile 2018/05/10 08:24:40 1.10
+++ pkgsrc/devel/py-attrs/Makefile 2018/09/03 07:40:18 1.11
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.10 2018/05/10 08:24:40 adam Exp $ 1# $NetBSD: Makefile,v 1.11 2018/09/03 07:40:18 adam Exp $
2 2
3DISTNAME= attrs-18.1.0 3DISTNAME= attrs-18.2.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=a/attrs/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=a/attrs/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9#HOMEPAGE= https://www.attrs.org/ 9#HOMEPAGE= https://www.attrs.org/
10COMMENT= Attributes without boilerplate 10COMMENT= Attributes without boilerplate
11LICENSE= mit 11LICENSE= mit
12 12
13TEST_DEPENDS+= ${PYPKGPREFIX}-Pympler-[0-9]*:../../devel/py-Pympler 13TEST_DEPENDS+= ${PYPKGPREFIX}-Pympler-[0-9]*:../../devel/py-Pympler
14TEST_DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface 14TEST_DEPENDS+= ${PYPKGPREFIX}-ZopeInterface-[0-9]*:../../devel/py-ZopeInterface
15TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage 15TEST_DEPENDS+= ${PYPKGPREFIX}-coverage-[0-9]*:../../devel/py-coverage
16TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis 16TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis

cvs diff -r1.4 -r1.5 pkgsrc/devel/py-attrs/PLIST (expand / switch to unified diff)

--- pkgsrc/devel/py-attrs/PLIST 2018/01/01 21:08:46 1.4
+++ pkgsrc/devel/py-attrs/PLIST 2018/09/03 07:40:18 1.5
@@ -1,34 +1,40 @@ @@ -1,34 +1,40 @@
1@comment $NetBSD: PLIST,v 1.4 2018/01/01 21:08:46 adam Exp $ 1@comment $NetBSD: PLIST,v 1.5 2018/09/03 07:40:18 adam Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
6${PYSITELIB}/${EGG_INFODIR}/requires.txt 6${PYSITELIB}/${EGG_INFODIR}/requires.txt
7${PYSITELIB}/${EGG_INFODIR}/top_level.txt 7${PYSITELIB}/${EGG_INFODIR}/top_level.txt
8${PYSITELIB}/attr/__init__.py 8${PYSITELIB}/attr/__init__.py
9${PYSITELIB}/attr/__init__.pyc 9${PYSITELIB}/attr/__init__.pyc
 10${PYSITELIB}/attr/__init__.pyi
10${PYSITELIB}/attr/__init__.pyo 11${PYSITELIB}/attr/__init__.pyo
11${PYSITELIB}/attr/_compat.py 12${PYSITELIB}/attr/_compat.py
12${PYSITELIB}/attr/_compat.pyc 13${PYSITELIB}/attr/_compat.pyc
13${PYSITELIB}/attr/_compat.pyo 14${PYSITELIB}/attr/_compat.pyo
14${PYSITELIB}/attr/_config.py 15${PYSITELIB}/attr/_config.py
15${PYSITELIB}/attr/_config.pyc 16${PYSITELIB}/attr/_config.pyc
16${PYSITELIB}/attr/_config.pyo 17${PYSITELIB}/attr/_config.pyo
17${PYSITELIB}/attr/_funcs.py 18${PYSITELIB}/attr/_funcs.py
18${PYSITELIB}/attr/_funcs.pyc 19${PYSITELIB}/attr/_funcs.pyc
19${PYSITELIB}/attr/_funcs.pyo 20${PYSITELIB}/attr/_funcs.pyo
20${PYSITELIB}/attr/_make.py 21${PYSITELIB}/attr/_make.py
21${PYSITELIB}/attr/_make.pyc 22${PYSITELIB}/attr/_make.pyc
22${PYSITELIB}/attr/_make.pyo 23${PYSITELIB}/attr/_make.pyo
23${PYSITELIB}/attr/converters.py 24${PYSITELIB}/attr/converters.py
24${PYSITELIB}/attr/converters.pyc 25${PYSITELIB}/attr/converters.pyc
 26${PYSITELIB}/attr/converters.pyi
25${PYSITELIB}/attr/converters.pyo 27${PYSITELIB}/attr/converters.pyo
26${PYSITELIB}/attr/exceptions.py 28${PYSITELIB}/attr/exceptions.py
27${PYSITELIB}/attr/exceptions.pyc 29${PYSITELIB}/attr/exceptions.pyc
 30${PYSITELIB}/attr/exceptions.pyi
28${PYSITELIB}/attr/exceptions.pyo 31${PYSITELIB}/attr/exceptions.pyo
29${PYSITELIB}/attr/filters.py 32${PYSITELIB}/attr/filters.py
30${PYSITELIB}/attr/filters.pyc 33${PYSITELIB}/attr/filters.pyc
 34${PYSITELIB}/attr/filters.pyi
31${PYSITELIB}/attr/filters.pyo 35${PYSITELIB}/attr/filters.pyo
 36${PYSITELIB}/attr/py.typed
32${PYSITELIB}/attr/validators.py 37${PYSITELIB}/attr/validators.py
33${PYSITELIB}/attr/validators.pyc 38${PYSITELIB}/attr/validators.pyc
 39${PYSITELIB}/attr/validators.pyi
34${PYSITELIB}/attr/validators.pyo 40${PYSITELIB}/attr/validators.pyo

cvs diff -r1.7 -r1.8 pkgsrc/devel/py-attrs/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-attrs/distinfo 2018/05/10 08:24:40 1.7
+++ pkgsrc/devel/py-attrs/distinfo 2018/09/03 07:40:18 1.8
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.7 2018/05/10 08:24:40 adam Exp $ 1$NetBSD: distinfo,v 1.8 2018/09/03 07:40:18 adam Exp $
2 2
3SHA1 (attrs-18.1.0.tar.gz) = f9f43d6300b5c502bd3a1aad48e542b0f576a016 3SHA1 (attrs-18.2.0.tar.gz) = 51a52e1afdd9e8c174ac0b65c2905a8360788dd2
4RMD160 (attrs-18.1.0.tar.gz) = f833c99a977fa5295086fa7d8cb25f6b38bd52db 4RMD160 (attrs-18.2.0.tar.gz) = a1426eb3738d89a18d3180dcd8c5769acfa51efd
5SHA512 (attrs-18.1.0.tar.gz) = 9aa4421d1c16614cd26089c219f70602fd6baa5fbbf4aa96def189e9a41f8c761d7f522c5e167a63e366cf8b46e87477c345655f09738a14981bb40dbcd12b91 5SHA512 (attrs-18.2.0.tar.gz) = 58c26579d6dfcacbe9e3f770a125861e0625d435f1293eebe0d62efc9b8aa9572be2b312d73037a647163bffb0a13b240fb157aff7ed35196f637ae945d61d22
6Size (attrs-18.1.0.tar.gz) = 106346 bytes 6Size (attrs-18.2.0.tar.gz) = 116817 bytes