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.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18a1c2310eec
branches:  trunk
changeset: 384790:18a1c2310eec
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Sep 03 07:40:18 2018 +0000

description:
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?s attrs plugin, you?ve got all you need for writing statically typed code in both Python 2 and 3!
At that occasion, we?ve 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.

diffstat:

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

diffs (63 lines):

diff -r 490f4434025a -r 18a1c2310eec devel/py-attrs/Makefile
--- a/devel/py-attrs/Makefile   Mon Sep 03 07:39:34 2018 +0000
+++ b/devel/py-attrs/Makefile   Mon Sep 03 07:40:18 2018 +0000
@@ -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/}
diff -r 490f4434025a -r 18a1c2310eec devel/py-attrs/PLIST
--- a/devel/py-attrs/PLIST      Mon Sep 03 07:39:34 2018 +0000
+++ b/devel/py-attrs/PLIST      Mon Sep 03 07:40:18 2018 +0000
@@ -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
diff -r 490f4434025a -r 18a1c2310eec devel/py-attrs/distinfo
--- a/devel/py-attrs/distinfo   Mon Sep 03 07:39:34 2018 +0000
+++ b/devel/py-attrs/distinfo   Mon Sep 03 07:40:18 2018 +0000
@@ -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
-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
+SHA1 (attrs-18.2.0.tar.gz) = 51a52e1afdd9e8c174ac0b65c2905a8360788dd2
+RMD160 (attrs-18.2.0.tar.gz) = a1426eb3738d89a18d3180dcd8c5769acfa51efd
+SHA512 (attrs-18.2.0.tar.gz) = 58c26579d6dfcacbe9e3f770a125861e0625d435f1293eebe0d62efc9b8aa9572be2b312d73037a647163bffb0a13b240fb157aff7ed35196f637ae945d61d22
+Size (attrs-18.2.0.tar.gz) = 116817 bytes



Home | Main Index | Thread Index | Old Index