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:           Thu Nov 16 07:57:53 UTC 2017

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-attrs/Makefile
cvs rdiff -u -r1.4 -r1.5 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.7 pkgsrc/devel/py-attrs/Makefile:1.8
--- pkgsrc/devel/py-attrs/Makefile:1.7  Thu Oct  5 06:49:16 2017
+++ pkgsrc/devel/py-attrs/Makefile      Thu Nov 16 07:57:53 2017
@@ -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/}

Index: pkgsrc/devel/py-attrs/distinfo
diff -u pkgsrc/devel/py-attrs/distinfo:1.4 pkgsrc/devel/py-attrs/distinfo:1.5
--- pkgsrc/devel/py-attrs/distinfo:1.4  Wed May 24 19:41:34 2017
+++ pkgsrc/devel/py-attrs/distinfo      Thu Nov 16 07:57:53 2017
@@ -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