Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-eval-type-backport for
openSUSE:Factory checked in at 2026-07-07 21:03:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-eval-type-backport (Old)
and /work/SRC/openSUSE:Factory/.python-eval-type-backport.new.1982 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-eval-type-backport"
Tue Jul 7 21:03:46 2026 rev:3 rq:1364145 version:0.4.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-eval-type-backport/python-eval-type-backport.changes
2026-06-15 19:46:16.322525220 +0200
+++
/work/SRC/openSUSE:Factory/.python-eval-type-backport.new.1982/python-eval-type-backport.changes
2026-07-07 21:06:20.532788982 +0200
@@ -1,0 +2,6 @@
+Tue Jul 7 04:07:59 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch support-typing-eval-type-changes.patch:
+ * Support typing._eval_type() changes introduced by Python 3.13 and 3.15.
+
+-------------------------------------------------------------------
New:
----
support-typing-eval-type-changes.patch
----------(New B)----------
New:
- Add patch support-typing-eval-type-changes.patch:
* Support typing._eval_type() changes introduced by Python 3.13 and 3.15.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-eval-type-backport.spec ++++++
--- /var/tmp/diff_new_pack.BxjL9U/_old 2026-07-07 21:06:21.672828889 +0200
+++ /var/tmp/diff_new_pack.BxjL9U/_new 2026-07-07 21:06:21.672828889 +0200
@@ -23,6 +23,8 @@
License: MIT
URL: https://github.com/alexmojaki/eval_type_backport
Source:
https://files.pythonhosted.org/packages/source/e/eval_type_backport/eval_type_backport-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Support typing._eval_type() changes for 3.13+
gh#alexmojaki/eval_type_backport#38
+Patch0: support-typing-eval-type-changes.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
++++++ support-typing-eval-type-changes.patch ++++++
Index: eval_type_backport-0.4.0/eval_type_backport/eval_type_backport.py
===================================================================
--- eval_type_backport-0.4.0.orig/eval_type_backport/eval_type_backport.py
+++ eval_type_backport-0.4.0/eval_type_backport/eval_type_backport.py
@@ -223,7 +223,10 @@ if sys.version_info[:2] >= (3, 10):
**kwargs: Any,
) -> Any:
"""Alias to typing._eval_type (Python 3.10+)."""
- return typing._eval_type(value, globalns, localns, *args, **kwargs) #
type: ignore
+ if sys.version_info[:2] >= (3, 13):
+ return typing._eval_type(value, globalns, localns, (), *args,
**kwargs) # type: ignore
+ else:
+ return typing._eval_type(value, globalns, localns, *args,
**kwargs) # type: ignore
else:
Index: eval_type_backport-0.4.0/tests/test_eval_type_backport.py
===================================================================
--- eval_type_backport-0.4.0.orig/tests/test_eval_type_backport.py
+++ eval_type_backport-0.4.0/tests/test_eval_type_backport.py
@@ -48,7 +48,18 @@ def check_eval(code: str, expected: t.An
for kwargs in eval_kwargs(code):
for ref in typing_ref, backport_ref:
assert eval_type_backport(ref, **kwargs) == expected
- if sys.version_info >= (3, 10):
+ if sys.version_info >= (3, 13):
+ assert eval(code) == expected
+ assert (
+ eval_type(
+ ref,
+ globalns=kwargs['globalns'],
+ localns=kwargs['localns'],
+ type_params=(),
+ )
+ == expected
+ )
+ elif sys.version_info >= (3, 10):
assert eval(code) == expected
assert (
eval_type(