diff --git a/attrs-23.2.0.tar.gz b/attrs-23.2.0.tar.gz deleted file mode 100644 index 0b18c2bbe84ccc9f62fe3404322b758bce661531..0000000000000000000000000000000000000000 Binary files a/attrs-23.2.0.tar.gz and /dev/null differ diff --git a/attrs-25.3.0.tar.gz b/attrs-25.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0edc9b175077f37b49d6a0c5bff188f536829e76 Binary files /dev/null and b/attrs-25.3.0.tar.gz differ diff --git a/backport-Remove-pytest-deprecated_call.patch b/backport-Remove-pytest-deprecated_call.patch deleted file mode 100644 index 5ce8e7d7708684bb392dad3bc5251f0c689e7673..0000000000000000000000000000000000000000 --- a/backport-Remove-pytest-deprecated_call.patch +++ /dev/null @@ -1,40 +0,0 @@ -From b9084fab02c009a593b604562a69f36a5915c8e5 Mon Sep 17 00:00:00 2001 -From: Denis Laxalde -Date: Sat, 2 Mar 2024 07:40:36 +0100 -Subject: [PATCH] Remove pytest.deprecated_call() in TestAssoc::test_unknown - (#1249) - -assoc() no longer raises a deprecation warning since commit -22ae8473fb88d6e585b05c709e81e1a46398a649 but the 'with -pytest.deprecated_call():' in that test was not removed then (in -contrast with other test cases). - -Maybe this got unnoticed due to a pytest bug? -In any case, using pytest 8+ (and keeping deprecated_call()) shows that -no warning is raised and the test fails. - -Removing the upper bound on pytest in dev dependencies as tests now -pass with pytest 8.0. - -Fix #1233. - -Co-authored-by: Hynek Schlawack ---- - tests/test_funcs.py | 4 +--- - 1 files changed, 1 insertion, 3 deletions(-) - -diff --git a/tests/test_funcs.py b/tests/test_funcs.py -index 044aaab2c..398ba3576 100644 ---- a/tests/test_funcs.py -+++ b/tests/test_funcs.py -@@ -600,9 +600,7 @@ def test_unknown(self, C): - AttrsAttributeNotFoundError. - """ - # No generated class will have a four letter attribute. -- with pytest.raises( -- AttrsAttributeNotFoundError -- ) as e, pytest.deprecated_call(): -+ with pytest.raises(AttrsAttributeNotFoundError) as e: - assoc(C(), aaaa=2) - - assert (f"aaaa is not an attrs attribute on {C!r}.",) == e.value.args diff --git a/python-attrs.spec b/python-attrs.spec index 65e67c3c2d1e6f568411528d0eeb13a2eb247658..eb464a20006a3bb0fd6bdc0494322fca1326dc02 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -8,12 +8,11 @@ object protocols. \ %bcond_without tests Name: python-attrs Summary: Python attributes without boilerplate -Version: 23.2.0 -Release: 3 +Version: 25.3.0 +Release: 1 License: MIT URL: https://www.attrs.org/ Source0: https://github.com/python-attrs/attrs/archive/%{version}/attrs-%{version}.tar.gz -Patch6001: backport-Remove-pytest-deprecated_call.patch BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-devel @@ -61,6 +60,10 @@ PYTHONPATH=$RPM_BUILD_ROOT/%{python3_sitelib} py.test-3 -v %doc README.md %changelog +* Wed Sep 10 2025 Yu Peng - 25.3.0-1 +- Upgrade to 25.3.0 + Restore support for generator-based field_transformers + * Sun Aug 03 2025 Funda Wang - 23.2.0-3 - drop python-six from test requires