From ec05bac306dfcdaab7382259c5adaa8e7c11e362e8c7936dc1958ead2438f121 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Thu, 4 Jan 2018 05:59:20 +0000 Subject: [PATCH] Accepting request 561486 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/561486 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=12 --- attrs-17.3.0.tar.gz | 3 -- attrs-17.4.0.tar.gz | 3 ++ python-attrs.changes | 65 ++++++++++++++++++++++++++++++++++++++++++++ python-attrs.spec | 4 +-- 4 files changed, 70 insertions(+), 5 deletions(-) delete mode 100644 attrs-17.3.0.tar.gz create mode 100644 attrs-17.4.0.tar.gz diff --git a/attrs-17.3.0.tar.gz b/attrs-17.3.0.tar.gz deleted file mode 100644 index 6cad5ce..0000000 --- a/attrs-17.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c78f53e32d7cf36d8597c8a2c7e3c0ad210f97b9509e152e4c37fa80869f823c -size 89046 diff --git a/attrs-17.4.0.tar.gz b/attrs-17.4.0.tar.gz new file mode 100644 index 0000000..2422e66 --- /dev/null +++ b/attrs-17.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9 +size 97071 diff --git a/python-attrs.changes b/python-attrs.changes index b8ce2d0..5cac4b3 100644 --- a/python-attrs.changes +++ b/python-attrs.changes @@ -1,3 +1,68 @@ +------------------------------------------------------------------- +Wed Jan 3 23:08:32 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + +- update to version 17.4.0: + * Backward-incompatible Changes + + The traversal of MROs when using multiple inheritance was + backward: + If you defined a class "C" that subclasses "A" and "B" like + "C(A, B)", "attrs" would have collected the attributes from "B" + *before* those of "A". + This is now fixed and means that in classes that employ multiple + inheritance, the output of "__repr__" and the order of + positional arguments in "__init__" changes. + Due to the nature of this bug, a proper deprecation cycle was + unfortunately impossible. + Generally speaking, it's advisable to prefer "kwargs"-based + initialization anyways – *especially* if you employ multiple + inheritance and diamond-shaped hierarchies. + + The "__repr__" set by "attrs" no longer produces an + "AttributeError" when the instance is missing some of the + specified attributes (either through deleting or after using + "init=False" on some attributes). + This can break code that relied on "repr(attr_cls_instance)" + raising "AttributeError" to check if any attr-specified members + were unset. + If you were using this, you can implement a custom method for + checking this:: + + def has_unset_members(self): + for field in attr.fields(type(self)): + try: + getattr(self, field.name) + except AttributeError: + return True + return False + * Deprecations + + The "attr.ib(convert=callable)" option is now deprecated in + favor of "attr.ib(converter=callable)". + This is done to achieve consistency with other noun-based + arguments like *validator*. *convert* will keep working until + at least January 2019 while raising a "DeprecationWarning". + + * Changes + + Generated "__hash__" methods now hash the class type along with + the attribute values. Until now the hashes of two classes with + the same values were identical which was a bug. + The generated method is also *much* faster now. + + "attr.ib"’s "metadata" argument now defaults to a unique empty + "dict" instance instead of sharing a common empty "dict" for + all. The singleton empty "dict" is still enforced. + + "ctypes" is optional now however if it's missing, a bare + "super()" will not work in slots classes. This should only + happen in special environments like Google App Engine. + + The attribute redefinition feature introduced in 17.3.0 now + takes into account if an attribute is redefined via multiple + inheritance. In that case, the definition that is closer to the + base of the class hierarchy wins. + + Subclasses of "auto_attribs=True" can be empty now. + + Equality tests are *much* faster now. + + All generated methods now have correct "__module__", "__name__", + and (on Python 3) "__qualname__" attributes. + ------------------------------------------------------------------- Thu Dec 21 16:10:47 UTC 2017 - jmatejek@suse.com diff --git a/python-attrs.spec b/python-attrs.spec index 8c74f8c..1659894 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -1,7 +1,7 @@ # # spec file for package python-attrs # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %bcond_with tests Name: python-attrs -Version: 17.3.0 +Version: 17.4.0 Release: 0 Summary: Attributes without boilerplate License: MIT