15
0

Accepting request 1328762 from devel:languages:python

- Add patch support-python314.patch:
  * Do not attempt to query annotation internals.

OBS-URL: https://build.opensuse.org/request/show/1328762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-frozenlist?expand=0&rev=14
This commit is contained in:
2026-01-26 09:44:33 +00:00
committed by Git OBS Bridge
3 changed files with 24 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 23 02:06:59 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-python314.patch:
* Do not attempt to query annotation internals.
-------------------------------------------------------------------
Tue Oct 21 09:56:00 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -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

14
support-python314.patch Normal file
View File

@@ -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: