From 6d25eaa61a1ee5a63dbbdd8f573e82d6a524c7dd95c8341cea6e8af7e723675c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 1 Sep 2018 19:42:51 +0000 Subject: [PATCH] Accepting request 632658 from home:apersaud:branches:devel:languages:python update to latest version OBS-URL: https://build.opensuse.org/request/show/632658 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=16 --- attrs-18.1.0.tar.gz | 3 --- attrs-18.2.0.tar.gz | 3 +++ python-attrs.changes | 48 ++++++++++++++++++++++++++++++++++++++++++++ python-attrs.spec | 5 ++--- 4 files changed, 53 insertions(+), 6 deletions(-) delete mode 100644 attrs-18.1.0.tar.gz create mode 100644 attrs-18.2.0.tar.gz diff --git a/attrs-18.1.0.tar.gz b/attrs-18.1.0.tar.gz deleted file mode 100644 index d7b982d..0000000 --- a/attrs-18.1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b -size 106346 diff --git a/attrs-18.2.0.tar.gz b/attrs-18.2.0.tar.gz new file mode 100644 index 0000000..5ff335e --- /dev/null +++ b/attrs-18.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69 +size 116817 diff --git a/python-attrs.changes b/python-attrs.changes index abca74d..517f8dc 100644 --- a/python-attrs.changes +++ b/python-attrs.changes @@ -1,3 +1,51 @@ +------------------------------------------------------------------- +Sat Sep 1 18:34:11 UTC 2018 - arun@gmx.de + +- specfile: + - removed devel from noarch package + - be more specific in %files section + +- update to version 18.2.0: + * Deprecations + + Comparing subclasses using "<", ">", "<=", and ">=" is now + deprecated. The docs always claimed that instances are only + compared if the types are identical, so this is a first step to + conform to the docs. Equality operators ("==" and "!=") were + always strict in this regard. issue 394 + * Changes + + "attrs" now ships its own PEP 484 type hints. Together with + mypy's "attrs" plugin, you've got all you need for writing + statically typed code in both Python 2 and 3! At that occasion, + we've also added `narrative docs` about type annotations in + "attrs". issue #238 + + Added *kw_only* arguments to "attr.ib" and "attr.s", and a + corresponding *kw_only* attribute to "attr.Attribute". This + change makes it possible to have a generated "__init__" with + keyword-only arguments on Python 3, relaxing the required + ordering of default and non-default valued attributes. issues #281, #411 + + The test suite now runs with "hypothesis.HealthCheck.too_slow" + disabled to prevent CI breakage on slower computers. issues + #364, #396 + + "attr.validators.in_()" now raises a "ValueError" with a useful + message even if the options are a string and the value is not a + string. issue #383 + + "attr.asdict()" now properly handles deeply nested lists and + dictionaries. issue #395 + + Added "attr.converters.default_if_none()" that allows to replace + "None" values in attributes. For example + "attr.ib(converter=default_if_none(""))" replaces "None" by + empty strings. issues #400, #414 + + Fixed a reference leak where the original class would remain + live after being replaced when "slots=True" is set. isue #407 + + Slotted classes can now be made weakly referenceable by passing + "@attr.s(weakref_slot=True)". issue #420 + + Added *cache_hash* option to "@attr.s" which causes the hash + code to be computed once and stored on the object. issue #425 + + Attributes can be named "property" and "itemgetter" now. issue + #430 + + It is now possible to override a base class' class variable + using only class annotations. issue #431 + ------------------------------------------------------------------- Sun May 6 05:40:54 UTC 2018 - arun@gmx.de diff --git a/python-attrs.spec b/python-attrs.spec index f7c898a..ad767e0 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -19,14 +19,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_with tests Name: python-attrs -Version: 18.1.0 +Version: 18.2.0 Release: 0 Summary: Attributes without boilerplate License: MIT Group: Development/Languages/Python 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 @@ -76,7 +75,7 @@ python-attrs is the successor to python-characterstic %files %{python_files} %license LICENSE %doc CHANGELOG.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/attr* %{python_sitelib}/attrs-%{version}-py*.egg-info %changelog