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 17.3.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/67c0275c2483
branches:  trunk
changeset: 371642:67c0275c2483
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Nov 16 07:57:53 2017 +0000

description:
py-attrs: updated to 17.3.0

17.3.0:

Backward-incompatible Changes
- Attributes are not defined on the class body anymore.
  This means that if you define a class C with an attribute x, the class will *not* have an attribute x for introspe
ction anymore.
  Instead of C.x, use attr.fields(C).x or look at C.__attrs_attrs__.
  The old behavior has been deprecated since version 16.1.

Changes
- super() and __class__ now work on Python 3 when slots=True.
- Added type argument to attr.ib() and corresponding type attribute to attr.Attribute.

  This change paves the way for automatic type checking and serialization (though as of this release attrs does not make use of it).
  In Python 3.6 or higher, the value of attr.Attribute.type can alternately be set using variable type annotations
- The combination of str=True and slots=True now works on Python 2.
- attr.Factory is hashable again.
- Subclasses now can overwrite attribute definitions of their superclass.

  That means that you can -- for example -- change the default value for an attribute by redefining it.
- Added new option auto_attribs to @attr.s that allows to collect annotated fields without setting them to attr.ib().

  Setting a field to an attr.ib() is still possible to supply options like validators.
  Setting it to any other value is treated like it was passed as attr.ib(default=value) -- passing an instance of attr.Factory also works as expected.

diffstat:

 devel/py-attrs/Makefile |   4 ++--
 devel/py-attrs/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 8f346ad96757 -r 67c0275c2483 devel/py-attrs/Makefile
--- a/devel/py-attrs/Makefile   Thu Nov 16 07:46:12 2017 +0000
+++ b/devel/py-attrs/Makefile   Thu Nov 16 07:57:53 2017 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2017/10/05 06:49:16 adam Exp $
+# $NetBSD: Makefile,v 1.8 2017/11/16 07:57:53 adam Exp $
 
-DISTNAME=      attrs-17.2.0
+DISTNAME=      attrs-17.3.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/attrs/}
diff -r 8f346ad96757 -r 67c0275c2483 devel/py-attrs/distinfo
--- a/devel/py-attrs/distinfo   Thu Nov 16 07:46:12 2017 +0000
+++ b/devel/py-attrs/distinfo   Thu Nov 16 07:57:53 2017 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2017/05/24 19:41:34 adam Exp $
+$NetBSD: distinfo,v 1.5 2017/11/16 07:57:53 adam Exp $
 
-SHA1 (attrs-17.2.0.tar.gz) = ca1688772851a6dabc4d41a4aa444cdcd9495ecf
-RMD160 (attrs-17.2.0.tar.gz) = 015436d6b06c7b8394bff62857716a3b4fd998bb
-SHA512 (attrs-17.2.0.tar.gz) = 02243e59ff417deddb330e841d42c0f43d3bea4435f114d3a9a8f4c3bd424c2ef565c630d179db7b3687d22091bf6e619de661171248c0ff0a0e5ec5f9bf7e21
-Size (attrs-17.2.0.tar.gz) = 73733 bytes
+SHA1 (attrs-17.3.0.tar.gz) = ee2fd8132f71a7529d777df0b813903a73ad28ca
+RMD160 (attrs-17.3.0.tar.gz) = 5b74724bb9be052c406a7c016e403212801cdecd
+SHA512 (attrs-17.3.0.tar.gz) = 69a104a0a00c13946ca61c5e21a6acd4e75a43c775d54f270c9da3fd9475df54997c32a25a5c47a24012daac2f525457b1727fb2bb7291afb90627bf87d818ee
+Size (attrs-17.3.0.tar.gz) = 89046 bytes



Home | Main Index | Thread Index | Old Index