From 513458fdfa98b46062f36cca86f39c000bf7ac75034c5264fea3cfcf435ae0c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 7 May 2018 13:45:33 +0000 Subject: [PATCH] Accepting request 604542 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/604542 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=14 --- attrs-17.4.0.tar.gz | 3 --- attrs-18.1.0.tar.gz | 3 +++ python-attrs.changes | 37 +++++++++++++++++++++++++++++++++++++ python-attrs.spec | 15 ++++++--------- 4 files changed, 46 insertions(+), 12 deletions(-) delete mode 100644 attrs-17.4.0.tar.gz create mode 100644 attrs-18.1.0.tar.gz diff --git a/attrs-17.4.0.tar.gz b/attrs-17.4.0.tar.gz deleted file mode 100644 index 2422e66..0000000 --- a/attrs-17.4.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9 -size 97071 diff --git a/attrs-18.1.0.tar.gz b/attrs-18.1.0.tar.gz new file mode 100644 index 0000000..d7b982d --- /dev/null +++ b/attrs-18.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b +size 106346 diff --git a/python-attrs.changes b/python-attrs.changes index 5cac4b3..abca74d 100644 --- a/python-attrs.changes +++ b/python-attrs.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Sun May 6 05:40:54 UTC 2018 - arun@gmx.de + +- update to version 18.1.0: + * "x=X(); x.cycle = x; repr(x)" will no longer raise a + "RecursionError", and will instead show as "X(x=...)". + * "attr.ib(factory=f)" is now syntactic sugar for the common case of + "attr.ib(default=attr.Factory(f))". + * Added "attr.field_dict()" to return an ordered dictionary of + "attrs" attributes for a class, whose keys are the attribute + names. + * The order of attributes that are passed into "attr.make_class()" + or the "these" argument of "@attr.s()" is now retained if the + dictionary is ordered (i.e. "dict" on Python 3.6 and later, + "collections.OrderedDict" otherwise). + * Before, the order was always determined by the order in which the + attributes have been defined which may not be desirable when + creating classes programatically. + * In slotted classes, "__getstate__" and "__setstate__" now ignore + the "__weakref__" attribute. + * Setting the cell type is now completely best effort. This fixes + "attrs" on Jython. We cannot make any guarantees regarding Jython + though, because our test suite cannot run due to dependency + incompatabilities. + * If "attr.s" is passed a *these* argument, it will not attempt to + remove attributes with the same name from the class body anymore. + * The hash of "attr.NOTHING" is now vegan and faster on 32bit Python + builds. + * The overhead of instantiating frozen dict classes is virtually + eliminated. + * Generated "__init__" methods now have an "__annotations__" + attribute derived from the types of the fields. + * We have restructured the documentation a bit to account for + "attrs"' growth in scope. Instead of putting everything into the + `examples `_ page, + we have started to extract narrative chapters. + ------------------------------------------------------------------- Wed Jan 3 23:08:32 UTC 2018 - arun@gmx.de diff --git a/python-attrs.spec b/python-attrs.spec index 1659894..f7c898a 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -18,27 +18,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_with tests - Name: python-attrs -Version: 17.4.0 +Version: 18.1.0 Release: 0 Summary: Attributes without boilerplate License: MIT Group: Development/Languages/Python -Url: https://github.com/hynek/attrs/ -Source: https://pypi.io/packages/source/a/attrs/attrs-%{version}.tar.gz +URL: https://github.com/hynek/attrs/ +Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %if %{with tests} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module pytest} BuildRequires: %{python_module zope.interface} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch - %python_subpackages %description @@ -77,8 +74,8 @@ python-attrs is the successor to python-characterstic %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGELOG.rst LICENSE README.rst +%license LICENSE +%doc CHANGELOG.rst README.rst %{python_sitelib}/* %{python_sitelib}/attrs-%{version}-py*.egg-info