Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pscript for openSUSE:Factory checked in at 2025-11-07 18:22:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pscript (Old) and /work/SRC/openSUSE:Factory/.python-pscript.new.1980 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pscript" Fri Nov 7 18:22:44 2025 rev:12 rq:1316370 version:0.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pscript/python-pscript.changes 2025-02-20 17:40:01.991888931 +0100 +++ /work/SRC/openSUSE:Factory/.python-pscript.new.1980/python-pscript.changes 2025-11-07 18:24:51.993517586 +0100 @@ -1,0 +2,6 @@ +Fri Nov 7 05:23:28 UTC 2025 - Steve Kowalik <[email protected]> + +- Add patch support-python314.patch: + * Do not use removed ast class. + +------------------------------------------------------------------- New: ---- support-python314.patch ----------(New B)---------- New: - Add patch support-python314.patch: * Do not use removed ast class. ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pscript.spec ++++++ --- /var/tmp/diff_new_pack.m3MI3F/_old 2025-11-07 18:24:52.629544300 +0100 +++ /var/tmp/diff_new_pack.m3MI3F/_new 2025-11-07 18:24:52.633544468 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pscript # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2025 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 @@ -24,10 +24,10 @@ License: BSD-2-Clause URL: https://github.com/flexxui/pscript Source: https://github.com/flexxui/%{modname}/archive/v%{version}/%{modname}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE Do not use removed ast class +Patch0: support-python314.patch BuildRequires: %{python_module flit-core} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch ++++++ support-python314.patch ++++++ Index: pscript-0.8.0/pscript/commonast.py =================================================================== --- pscript-0.8.0.orig/pscript/commonast.py +++ pscript-0.8.0/pscript/commonast.py @@ -1032,7 +1032,11 @@ class NativeAstConverter: def _convert_index_like(self, n): c = self._convert - if isinstance(n, (ast.Slice, ast.Index, ast.ExtSlice, ast.Ellipsis)): + if sys.version_info[:2] >= (3, 14): + check_inst = (ast.Slice, ast.Index, ast.ExtSlice) + else: + check_inst = (ast.Slice, ast.Index, ast.ExtSlice, ast.Ellipsis) + if isinstance(n, check_inst): return c(n) # Python < 3.8 (and also 3.8 on Windows?) elif isinstance(n, ast.Tuple): assert isinstance(n, ast.Tuple)
