From 024c32cc3b019b2a5a52a3b645d31b289bf109c5ff1d10213f772d8d2313af08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 8 Feb 2024 10:38:59 +0000 Subject: [PATCH] Accepting request 1145111 from system:homeautomation:home-assistant - fix build for python 3.12 OBS-URL: https://build.opensuse.org/request/show/1145111 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=12 --- python-antlr4-python3-runtime.changes | 5 +++++ python-antlr4-python3-runtime.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-antlr4-python3-runtime.changes b/python-antlr4-python3-runtime.changes index 64e8dab..c24b836 100644 --- a/python-antlr4-python3-runtime.changes +++ b/python-antlr4-python3-runtime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 8 09:57:35 UTC 2024 - Adrian Schröter + +- fix build for python 3.12 + ------------------------------------------------------------------- Wed Jan 3 09:41:42 UTC 2024 - Dirk Müller diff --git a/python-antlr4-python3-runtime.spec b/python-antlr4-python3-runtime.spec index db98f41..4e34492 100644 --- a/python-antlr4-python3-runtime.spec +++ b/python-antlr4-python3-runtime.spec @@ -32,7 +32,7 @@ BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives -Requires(postun):update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %if %{python3_version_nodots} < 35 Requires: python-typing @@ -48,6 +48,8 @@ This package contains the runtime for Python 3. %prep %setup -q -n antlr4-%{version}/runtime/Python3 cp %{SOURCE1} LICENSE.txt +# fixing for python 3.12 +sed -i 's,self.assertEquals,self.assertEqual,' tests/Test* %build %pyproject_wheel