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
This commit is contained in:
Tomáš Chvátal 2018-09-01 19:42:51 +00:00 committed by Git OBS Bridge
parent 513458fdfa
commit 6d25eaa61a
4 changed files with 53 additions and 6 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b
size 106346

3
attrs-18.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69
size 116817

View File

@ -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

View File

@ -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