4 Commits

Author SHA256 Message Date
a327706da3 Accepting request 1318118 from devel:languages:python
- Update to 25.4.0:
  * Class-level kw_only=True behavior is now consistent with dataclasses.
  * Values passed to the __init__() method of attrs classes are now correctly
    passed to __attrs_pre_init__() instead of their default values (in cases
    where kw_only was not specified).
  * Added support for Python 3.14 and PEP 749.
  * attrs.validators.deep_mapping() now allows to leave out either
    key_validator xor value_validator.
  * attrs.validators.deep_iterator() and attrs.validators.deep_mapping() now
    accept lists and tuples for all validators and wrap them into a
    attrs.validators.and_().
  * Added a new experimental way to inspect classes.
  * Fixed annotations for attrs.field(converter=...). Previously, a tuple of
    converters was only accepted if it had exactly one element.
  * The performance of attrs.asdict() has been improved by 45–260%.
  * The performance of attrs.astuple() has been improved by 49–270%.
  * The type annotation for attrs.validators.or_() now allows for different
    types of validators.

OBS-URL: https://build.opensuse.org/request/show/1318118
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=28
2025-11-18 14:28:28 +00:00
b0db76addf - Update to 25.4.0:
* Class-level kw_only=True behavior is now consistent with dataclasses.
  * Values passed to the __init__() method of attrs classes are now correctly
    passed to __attrs_pre_init__() instead of their default values (in cases
    where kw_only was not specified).
  * Added support for Python 3.14 and PEP 749.
  * attrs.validators.deep_mapping() now allows to leave out either
    key_validator xor value_validator.
  * attrs.validators.deep_iterator() and attrs.validators.deep_mapping() now
    accept lists and tuples for all validators and wrap them into a
    attrs.validators.and_().
  * Added a new experimental way to inspect classes.
  * Fixed annotations for attrs.field(converter=...). Previously, a tuple of
    converters was only accepted if it had exactly one element.
  * The performance of attrs.asdict() has been improved by 45–260%.
  * The performance of attrs.astuple() has been improved by 49–270%.
  * The type annotation for attrs.validators.or_() now allows for different
    types of validators.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=59
2025-11-17 02:11:14 +00:00
199d582044 Accepting request 1304694 from devel:languages:python
- update to 25.3.0:
  * Restore support for generator-based `field_transformer`s.
  * Checking mandatory vs non-mandatory attribute order is now
    performed after the field transformer, since the field
    transformer may change attributes and/or their order.
  * `attrs.make_class()` now allows for Unicode class names.
  * Speed up class creation by 30%-50% by compiling methods only
    once and using a variety of other techniques.
  * The error message if an attribute has both an annotation and
    a type argument will now disclose _what_ attribute seems to
    be the problem.

OBS-URL: https://build.opensuse.org/request/show/1304694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=27
2025-09-15 17:50:32 +00:00
0addb8c61b - update to 25.3.0:
* Restore support for generator-based `field_transformer`s.
  * Checking mandatory vs non-mandatory attribute order is now
    performed after the field transformer, since the field
    transformer may change attributes and/or their order.
  * `attrs.make_class()` now allows for Unicode class names.
  * Speed up class creation by 30%-50% by compiling methods only
    once and using a variety of other techniques.
  * The error message if an attribute has both an annotation and
    a type argument will now disclose _what_ attribute seems to
    be the problem.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=57
2025-07-12 11:37:36 +00:00
4 changed files with 43 additions and 7 deletions

Binary file not shown.

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

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

View File

@@ -1,3 +1,40 @@
-------------------------------------------------------------------
Mon Nov 17 02:10:33 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 25.4.0:
* Class-level kw_only=True behavior is now consistent with dataclasses.
* Values passed to the __init__() method of attrs classes are now correctly
passed to __attrs_pre_init__() instead of their default values (in cases
where kw_only was not specified).
* Added support for Python 3.14 and PEP 749.
* attrs.validators.deep_mapping() now allows to leave out either
key_validator xor value_validator.
* attrs.validators.deep_iterator() and attrs.validators.deep_mapping() now
accept lists and tuples for all validators and wrap them into a
attrs.validators.and_().
* Added a new experimental way to inspect classes.
* Fixed annotations for attrs.field(converter=...). Previously, a tuple of
converters was only accepted if it had exactly one element.
* The performance of attrs.asdict() has been improved by 45260%.
* The performance of attrs.astuple() has been improved by 49270%.
* The type annotation for attrs.validators.or_() now allows for different
types of validators.
-------------------------------------------------------------------
Sat Jul 12 11:37:13 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 25.3.0:
* Restore support for generator-based `field_transformer`s.
* Checking mandatory vs non-mandatory attribute order is now
performed after the field transformer, since the field
transformer may change attributes and/or their order.
* `attrs.make_class()` now allows for Unicode class names.
* Speed up class creation by 30%-50% by compiling methods only
once and using a variety of other techniques.
* The error message if an attribute has both an annotation and
a type argument will now disclose _what_ attribute seems to
be the problem.
-------------------------------------------------------------------
Thu Jan 2 14:12:53 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-attrs
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,11 +26,10 @@
%endif
%{?sle15_python_module_pythons}
Name: python-attrs%{psuffix}
Version: 24.3.0
Version: 25.4.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 base >= 3.8}
@@ -93,7 +92,7 @@ python-attrs is the successor to python-characterstic
%doc CHANGELOG.md README.md
%{python_sitelib}/attr
%{python_sitelib}/attrs
%{python_sitelib}/attrs-%{version}*-info
%{python_sitelib}/attrs-%{version}.dist-info
%endif
%changelog