- update to 21.4.0:
* Fixed the test suite on PyPy3.8 where ``cloudpickle`` does not work. * Fixed ``coverage report`` for projects that use ``attrs`` and don't set a ``--source``. * When using ``@define``, converters are now run by default when setting an attribute on an instance -- additionally to validators. * ``import attrs`` has finally landed! * ``attr.asdict(retain_collection_types=False)`` (default) dumps collection-esque keys as tuples. * ``__match_args__`` are now generated to support Python 3.10's * If the class-level *on_setattr* is set to ``attrs.setters.validate`` (default in ``@define`` and ``@mutable``) but no field defines a validator, pretend that it's not set. * The generated ``__repr__`` is significantly faster on Pythons with f-strings. * Attributes transformed via ``field_transformer`` are wrapped with ``AttrsClass`` again. * Generated source code is now cached more efficiently for identical classes. * Added ``attrs.converters.to_bool()``. * ``attrs.resolve_types()`` now resolves types of subclasses after the parents are resolved. * Added new validators: ``lt(val)`` (< val), ``le(va)`` (≤ val), ``ge(val)`` (≥ val), ``gt(val)`` (> val), and ``maxlen(n)``. * ``attrs`` classes are now fully compatible with cloudpickle * Added new context manager ``attrs.validators.disabled()`` and functions ``attrs.validators.(set|get)_disabled()``. They deprecate ``attrs.(set|get)_run_validators()``. All functions are interoperable and modify the same internal state. They are not – and never were – thread-safe, though. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=35
This commit is contained in:
parent
aabff92aa5
commit
77f18d80ce
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb
|
||||
size 184694
|
3
attrs-21.4.0.tar.gz
Normal file
3
attrs-21.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd
|
||||
size 201839
|
@ -1,3 +1,36 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 4 15:32:36 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 21.4.0:
|
||||
* Fixed the test suite on PyPy3.8 where ``cloudpickle`` does not work.
|
||||
* Fixed ``coverage report`` for projects that use ``attrs`` and don't
|
||||
set a ``--source``.
|
||||
* When using ``@define``, converters are now run by default when
|
||||
setting an attribute on an instance -- additionally to validators.
|
||||
* ``import attrs`` has finally landed!
|
||||
* ``attr.asdict(retain_collection_types=False)`` (default)
|
||||
dumps collection-esque keys as tuples.
|
||||
* ``__match_args__`` are now generated to support Python 3.10's
|
||||
* If the class-level *on_setattr* is set to ``attrs.setters.validate``
|
||||
(default in ``@define`` and ``@mutable``) but no field defines
|
||||
a validator, pretend that it's not set.
|
||||
* The generated ``__repr__`` is significantly faster on Pythons with
|
||||
f-strings.
|
||||
* Attributes transformed via ``field_transformer`` are wrapped with
|
||||
``AttrsClass`` again.
|
||||
* Generated source code is now cached more efficiently for identical classes.
|
||||
* Added ``attrs.converters.to_bool()``.
|
||||
* ``attrs.resolve_types()`` now resolves types of subclasses after
|
||||
the parents are resolved.
|
||||
* Added new validators: ``lt(val)`` (< val), ``le(va)`` (≤ val),
|
||||
``ge(val)`` (≥ val), ``gt(val)`` (> val), and ``maxlen(n)``.
|
||||
* ``attrs`` classes are now fully compatible with cloudpickle
|
||||
* Added new context manager ``attrs.validators.disabled()`` and
|
||||
functions ``attrs.validators.(set|get)_disabled()``.
|
||||
They deprecate ``attrs.(set|get)_run_validators()``.
|
||||
All functions are interoperable and modify the same internal state.
|
||||
They are not – and never were – thread-safe, though.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 27 16:40:29 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -25,8 +25,9 @@
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%global skip_python36 1
|
||||
Name: python-attrs%{psuffix}
|
||||
Version: 21.2.0
|
||||
Version: 21.4.0
|
||||
Release: 0
|
||||
Summary: Attributes without boilerplate
|
||||
License: MIT
|
||||
|
Loading…
Reference in New Issue
Block a user