From e429b0427ae4d7a2ff44b428c50f48434828baa4053e395c1570a4fa0404a034 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 5 Nov 2024 13:09:50 +0000 Subject: [PATCH] =?UTF-8?q?-=20Upgrade=20to=2024.2.0:=20=20=20-=20Big=20re?= =?UTF-8?q?leases=20always=20carry=20the=20risk=20of=20regressions,=20but?= =?UTF-8?q?=20never=20=20=20=20=20did=20I=20expect=20to=20break=20Python?= =?UTF-8?q?=203.14=E2=80=99s=20CI!=20On=20the=20plus=20side,=20=20=20=20?= =?UTF-8?q?=20attrs=20runs=20on=203.14=20now.=20-=20Upgrade=20to=2024.1.0:?= =?UTF-8?q?=20=20=20-=20The=20most=20notable=20is=20probably=20the=20possi?= =?UTF-8?q?bility=20to=20receive=20self=20=20=20=20=20and=20field=20defini?= =?UTF-8?q?tions=20in=20your=20converters=20by=20wrapping=20them=20=20=20?= =?UTF-8?q?=20=20into=20a=20attrs.Converter.=20=20=20-=20The=20other=20big?= =?UTF-8?q?=20thing=20is=20our=20own=20replacement=20=20=20=20=20for=20=5F?= =?UTF-8?q?=5Finit=5Fsubclass=5F=5F=20called=20(you=20guessed=20it)=20=20?= =?UTF-8?q?=20=20=20=5F=5Fattrs=5Finit=5Fsubclass=5F=5F.=20Check=20out=20t?= =?UTF-8?q?he=20docs,=20if=20you're=20not=20=20=20=20=20sure=20what=20this?= =?UTF-8?q?=20is=20good=20for.=20=20=20-=20Finally,=20we've=20made=20more?= =?UTF-8?q?=20important=20steps=20to=20promote=20our=20"new"=20=20=20=20?= =?UTF-8?q?=20APIs=20(can=20you=20believe=20they're=204=20years=20old!=3F)?= =?UTF-8?q?=20in=20the=20docs.=20If=20=20=20=20=20we=20missed=20anything,?= =?UTF-8?q?=20please=20let=20us=20know.=20-=20Remove=20upstreamed=20patch:?= =?UTF-8?q?=20=20=20-=20pytest8.patch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=52 --- attrs-23.2.0.tar.gz | 3 --- attrs-24.2.0.tar.gz | 3 +++ pytest8.patch | 41 ----------------------------------------- python-attrs.changes | 21 +++++++++++++++++++++ python-attrs.spec | 4 +--- 5 files changed, 25 insertions(+), 47 deletions(-) delete mode 100644 attrs-23.2.0.tar.gz create mode 100644 attrs-24.2.0.tar.gz delete mode 100644 pytest8.patch diff --git a/attrs-23.2.0.tar.gz b/attrs-23.2.0.tar.gz deleted file mode 100644 index 2c3c6f8..0000000 --- a/attrs-23.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:935dc3b529c262f6cf76e50877d35a4bd3c1de194fd41f47a2b7ae8f19971f30 -size 780820 diff --git a/attrs-24.2.0.tar.gz b/attrs-24.2.0.tar.gz new file mode 100644 index 0000000..2059b3b --- /dev/null +++ b/attrs-24.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346 +size 792678 diff --git a/pytest8.patch b/pytest8.patch deleted file mode 100644 index 098161f..0000000 --- a/pytest8.patch +++ /dev/null @@ -1,41 +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 ---- - pyproject.toml | 3 +-- - tests/test_funcs.py | 4 +--- - 2 files changed, 2 insertions(+), 5 deletions(-) - -Index: attrs-23.2.0/tests/test_funcs.py -=================================================================== ---- attrs-23.2.0.orig/tests/test_funcs.py -+++ attrs-23.2.0/tests/test_funcs.py -@@ -600,9 +600,7 @@ class TestAssoc: - 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.changes b/python-attrs.changes index 9e58a90..94d2181 100644 --- a/python-attrs.changes +++ b/python-attrs.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Tue Nov 5 13:03:04 UTC 2024 - Matej Cepl + +- Upgrade to 24.2.0: + - Big releases always carry the risk of regressions, but never + did I expect to break Python 3.14’s CI! On the plus side, + attrs runs on 3.14 now. +- Upgrade to 24.1.0: + - The most notable is probably the possibility to receive self + and field definitions in your converters by wrapping them + into a attrs.Converter. + - The other big thing is our own replacement + for __init_subclass__ called (you guessed it) + __attrs_init_subclass__. Check out the docs, if you're not + sure what this is good for. + - Finally, we've made more important steps to promote our "new" + APIs (can you believe they're 4 years old!?) in the docs. If + we missed anything, please let us know. +- Remove upstreamed patch: + - pytest8.patch + ------------------------------------------------------------------- Fri May 17 09:51:39 UTC 2024 - Markéta Machová diff --git a/python-attrs.spec b/python-attrs.spec index f5f0478..3d9c0fe 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -26,15 +26,13 @@ %endif %{?sle15_python_module_pythons} Name: python-attrs%{psuffix} -Version: 23.2.0 +Version: 24.2.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 -#PATCH-FIX-UPSTREAM https://github.com/python-attrs/attrs/pull/1249 Remove pytest.deprecated_call() in TestAssoc::test_unknown -Patch: pytest8.patch BuildRequires: %{python_module hatch-fancy-pypi-readme} BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module hatchling}