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:           Mon Sep  3 07:40:18 UTC 2018

Modified Files:
        pkgsrc/devel/py-attrs: Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/devel/py-attrs/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-attrs/PLIST
cvs rdiff -u -r1.7 -r1.8 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.10 pkgsrc/devel/py-attrs/Makefile:1.11
--- pkgsrc/devel/py-attrs/Makefile:1.10 Thu May 10 08:24:40 2018
+++ pkgsrc/devel/py-attrs/Makefile      Mon Sep  3 07:40:18 2018
@@ -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/}

Index: pkgsrc/devel/py-attrs/PLIST
diff -u pkgsrc/devel/py-attrs/PLIST:1.4 pkgsrc/devel/py-attrs/PLIST:1.5
--- pkgsrc/devel/py-attrs/PLIST:1.4     Mon Jan  1 21:08:46 2018
+++ pkgsrc/devel/py-attrs/PLIST Mon Sep  3 07:40:18 2018
@@ -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}/requires.txt
 ${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.pyc
 ${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

Index: pkgsrc/devel/py-attrs/distinfo
diff -u pkgsrc/devel/py-attrs/distinfo:1.7 pkgsrc/devel/py-attrs/distinfo:1.8
--- pkgsrc/devel/py-attrs/distinfo:1.7  Thu May 10 08:24:40 2018
+++ pkgsrc/devel/py-attrs/distinfo      Mon Sep  3 07:40:18 2018
@@ -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