15
0
forked from pool/python-attrs

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