14
0

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
This commit is contained in:
2024-02-08 10:38:59 +00:00
committed by Git OBS Bridge
parent ba83ebe27a
commit 024c32cc3b
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Feb 8 09:57:35 UTC 2024 - Adrian Schröter <adrian@suse.de>
- fix build for python 3.12
-------------------------------------------------------------------
Wed Jan 3 09:41:42 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

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