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:           Sun Mar  3 12:17:05 UTC 2019

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

Log Message:
py-attrs: updated to 19.1.0

19.1.0:
Backward-incompatible Changes
- Fixed a bug where deserialized objects with cache_hash=True could have incorrect hash code values.
  This change breaks classes with cache_hash=True when a custom __setstate__ is present.
  An exception will be thrown when applying the attrs annotation to such a class.

Changes
- Add is_callable, deep_iterable, and deep_mapping validators.
  * is_callable: validates that a value is callable
  * deep_iterable: Allows recursion down into an iterable,
    applying another validator to every member in the iterable
    as well as applying an optional validator to the iterable itself.
  * deep_mapping: Allows recursion down into the items in a mapping object,
    applying a key validator and a value validator to the key and value in every item.
    Also applies an optional validator to the mapping object itself.
  You can find them in the attr.validators package.
- Fixed stub files to prevent errors raised by mypy's disallow_any_generics = True option.
- Attributes with init=False now can follow after kw_only=True attributes.
- attrs now has first class support for defining exception classes.

  If you define a class using @attr.s(auto_exc=True) and subclass an exception, the class will behave like a well-behaved exception class including an appropriate __str__ method, and all attributes 
additionally available in an args attribute.
- Clarified documentation for hashing to warn that hashable objects should be deeply immutable (in their usage, even if this is not enforced).


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/py-attrs/Makefile
cvs rdiff -u -r1.8 -r1.9 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.11 pkgsrc/devel/py-attrs/Makefile:1.12
--- pkgsrc/devel/py-attrs/Makefile:1.11 Mon Sep  3 07:40:18 2018
+++ pkgsrc/devel/py-attrs/Makefile      Sun Mar  3 12:17:05 2019
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2018/09/03 07:40:18 adam Exp $
+# $NetBSD: Makefile,v 1.12 2019/03/03 12:17:05 adam Exp $
 
-DISTNAME=      attrs-18.2.0
+DISTNAME=      attrs-19.1.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/attrs/}

Index: pkgsrc/devel/py-attrs/distinfo
diff -u pkgsrc/devel/py-attrs/distinfo:1.8 pkgsrc/devel/py-attrs/distinfo:1.9
--- pkgsrc/devel/py-attrs/distinfo:1.8  Mon Sep  3 07:40:18 2018
+++ pkgsrc/devel/py-attrs/distinfo      Sun Mar  3 12:17:05 2019
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.8 2018/09/03 07:40:18 adam Exp $
+$NetBSD: distinfo,v 1.9 2019/03/03 12:17:05 adam Exp $
 
-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
+SHA1 (attrs-19.1.0.tar.gz) = 638b04fda29463067296a2a330b53856f40a32cb
+RMD160 (attrs-19.1.0.tar.gz) = af44a046cf42ff74c5c66a99849c977f8c97ff03
+SHA512 (attrs-19.1.0.tar.gz) = 22ee45e8b10a7abe10e720788c5cfab424d0bfe70e595dfb116928b8ebea497a747e8234d96549da00f0967de750fb943db0cd3669354253a27be2ca30fe413a
+Size (attrs-19.1.0.tar.gz) = 124220 bytes



Home | Main Index | Thread Index | Old Index