forked from pool/python-antlr4-python3-runtime
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:
@@ -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>
|
Wed Jan 3 09:41:42 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@ BuildRequires: %{python_module wheel}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{python3_version_nodots} < 35
|
%if %{python3_version_nodots} < 35
|
||||||
Requires: python-typing
|
Requires: python-typing
|
||||||
@@ -48,6 +48,8 @@ This package contains the runtime for Python 3.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n antlr4-%{version}/runtime/Python3
|
%setup -q -n antlr4-%{version}/runtime/Python3
|
||||||
cp %{SOURCE1} LICENSE.txt
|
cp %{SOURCE1} LICENSE.txt
|
||||||
|
# fixing for python 3.12
|
||||||
|
sed -i 's,self.assertEquals,self.assertEqual,' tests/Test*
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
Reference in New Issue
Block a user