diff --git a/python-frozenlist.changes b/python-frozenlist.changes index 145efbd..fd554ec 100644 --- a/python-frozenlist.changes +++ b/python-frozenlist.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 23 02:06:59 UTC 2026 - Steve Kowalik + +- Add patch support-python314.patch: + * Do not attempt to query annotation internals. + ------------------------------------------------------------------- Tue Oct 21 09:56:00 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-frozenlist.spec b/python-frozenlist.spec index f742022..2a35842 100644 --- a/python-frozenlist.spec +++ b/python-frozenlist.spec @@ -1,7 +1,7 @@ # # spec file for package python-frozenlist # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 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 @@ -27,6 +27,8 @@ Source: https://files.pythonhosted.org/packages/source/f/frozenlist/froz Patch1: no-pytest-cov.patch # PATCH-FIX-OPENSUSE - avoid embedding random tmp dir in .so Patch2: reproducible.patch +# PATCH-FIX-OPENSUSE Do not check annotation internals +Patch3: support-python314.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module expandvars} @@ -59,6 +61,6 @@ export CFLAGS="%{optflags}" %doc CHANGES.rst README.rst %license LICENSE %{python_sitearch}/frozenlist -%{python_sitearch}/frozenlist-%{version}*-info +%{python_sitearch}/frozenlist-%{version}.dist-info %changelog diff --git a/support-python314.patch b/support-python314.patch new file mode 100644 index 0000000..3268367 --- /dev/null +++ b/support-python314.patch @@ -0,0 +1,14 @@ +Index: frozenlist-1.8.0/tests/test_frozenlist.py +=================================================================== +--- frozenlist-1.8.0.orig/tests/test_frozenlist.py ++++ frozenlist-1.8.0/tests/test_frozenlist.py +@@ -29,6 +29,9 @@ class FrozenListMixin: + for name in set(dir(MutableSequence)) - self.SKIP_METHODS: + if name.startswith("_") and not name.endswith("_"): + continue ++ # Do not check annotation internals ++ if name in ("__annotations_cache__", "__annotate_func__"): ++ continue + assert hasattr(self.FrozenList, name) + + def test_ctor_default(self) -> None: