diff --git a/attrs-21.2.0.tar.gz b/attrs-21.2.0.tar.gz deleted file mode 100644 index 061a8d7..0000000 --- a/attrs-21.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb -size 184694 diff --git a/attrs-21.4.0.tar.gz b/attrs-21.4.0.tar.gz new file mode 100644 index 0000000..6fe529a --- /dev/null +++ b/attrs-21.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd +size 201839 diff --git a/python-attrs.changes b/python-attrs.changes index 3df3c81..e0adc71 100644 --- a/python-attrs.changes +++ b/python-attrs.changes @@ -1,3 +1,36 @@ +------------------------------------------------------------------- +Tue Jan 4 15:32:36 UTC 2022 - Dirk Müller + +- 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 diff --git a/python-attrs.spec b/python-attrs.spec index b75dcde..3f8d575 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -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