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 context 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,6 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2018/05/10 08:24:40 adam Exp $
+# $NetBSD: Makefile,v 1.11 2018/09/03 07:40:18 adam Exp $
 
-DISTNAME=	attrs-18.1.0
+DISTNAME=	attrs-18.2.0
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=a/attrs/}

cvs diff -r1.4 -r1.5 pkgsrc/devel/py-attrs/PLIST (expand / switch to context 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,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2018/01/01 21:08:46 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/09/03 07:40:18 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -7,6 +7,7 @@
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/attr/__init__.py
 ${PYSITELIB}/attr/__init__.pyc
+${PYSITELIB}/attr/__init__.pyi
 ${PYSITELIB}/attr/__init__.pyo
 ${PYSITELIB}/attr/_compat.py
 ${PYSITELIB}/attr/_compat.pyc
@@ -22,13 +23,18 @@
 ${PYSITELIB}/attr/_make.pyo
 ${PYSITELIB}/attr/converters.py
 ${PYSITELIB}/attr/converters.pyc
+${PYSITELIB}/attr/converters.pyi
 ${PYSITELIB}/attr/converters.pyo
 ${PYSITELIB}/attr/exceptions.py
 ${PYSITELIB}/attr/exceptions.pyc
+${PYSITELIB}/attr/exceptions.pyi
 ${PYSITELIB}/attr/exceptions.pyo
 ${PYSITELIB}/attr/filters.py
 ${PYSITELIB}/attr/filters.pyc
+${PYSITELIB}/attr/filters.pyi
 ${PYSITELIB}/attr/filters.pyo
+${PYSITELIB}/attr/py.typed
 ${PYSITELIB}/attr/validators.py
 ${PYSITELIB}/attr/validators.pyc
+${PYSITELIB}/attr/validators.pyi
 ${PYSITELIB}/attr/validators.pyo

cvs diff -r1.7 -r1.8 pkgsrc/devel/py-attrs/distinfo (expand / switch to context 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 @@
-$NetBSD: distinfo,v 1.7 2018/05/10 08:24:40 adam Exp $
+$NetBSD: distinfo,v 1.8 2018/09/03 07:40:18 adam Exp $
 
-SHA1 (attrs-18.1.0.tar.gz) = f9f43d6300b5c502bd3a1aad48e542b0f576a016
+SHA1 (attrs-18.2.0.tar.gz) = 51a52e1afdd9e8c174ac0b65c2905a8360788dd2
-RMD160 (attrs-18.1.0.tar.gz) = f833c99a977fa5295086fa7d8cb25f6b38bd52db
+RMD160 (attrs-18.2.0.tar.gz) = a1426eb3738d89a18d3180dcd8c5769acfa51efd
-SHA512 (attrs-18.1.0.tar.gz) = 9aa4421d1c16614cd26089c219f70602fd6baa5fbbf4aa96def189e9a41f8c761d7f522c5e167a63e366cf8b46e87477c345655f09738a14981bb40dbcd12b91
+SHA512 (attrs-18.2.0.tar.gz) = 58c26579d6dfcacbe9e3f770a125861e0625d435f1293eebe0d62efc9b8aa9572be2b312d73037a647163bffb0a13b240fb157aff7ed35196f637ae945d61d22
-Size (attrs-18.1.0.tar.gz) = 106346 bytes
+Size (attrs-18.2.0.tar.gz) = 116817 bytes