forked from pool/python-antlr4-python3-runtime
Accepting request 1126772 from home:glaubitz:branches:devel:languages:python
- Update to version 4.13.1 csharp target * [CSharp] Fix for #4386 -- change signatures for ReportAttemptingFullContext() and ReportContextSensitivity() to be identical to all other targets (target:csharp, type:cleanup) go target * Move GetText(), SetText(), and String() from CommonToken to BaseToken (target:go, type:cleanup) * Restore "Obtained from string" source name. (target:go, type:cleanup) * fix: Fix very minor code issues spotted by goreportcard.com (target:go, type:cleanup) java target * Java: suppress this-escape warning introduced in JDK 21. (actions, target:java) javascript target * Adds default targets for babel configuration (target:javascript) * fix dependabot warnings (target:javascript, type:cleanup) swift target * [SWIFT] Add Antlr4Dynamic product (target:swift) * Cleanup duplicate SwiftTarget code (target:swift, type:cleanup) dart target * [Dart] Fix for #4320--export additional types (type:bug, target:dart) - from version 4.13.0 Issues fixed * antlr4 jar doubled in size in 4.9.3 (unicode, comp:performance) * Go: exponentially bad/absymal performance as of ... (type:bug, target:go) * Go runtime panic (type:bug, target:go) Improvements, features * Update LexerATNSimulator.cs with virtual Consume (type:improvement, target:csharp) * Feature/fixembedding (type:improvement, target:go, comp:performance) * Provide Javascript port of TokenStreamRewriter (type:feature, target:javascript, target:typescript) OBS-URL: https://build.opensuse.org/request/show/1126772 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=8
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-antlr4-python3-runtime
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,14 +19,15 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-antlr4-python3-runtime
|
||||
Version: 4.9.3
|
||||
Version: 4.13.1
|
||||
Release: 0
|
||||
Summary: ANTLR runtime for Python 3
|
||||
License: BSD-3-Clause
|
||||
URL: https://www.antlr.org
|
||||
Source: https://github.com/antlr/antlr4/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
Source1: LICENSE.txt
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
@@ -48,10 +49,10 @@ This package contains the runtime for Python 3.
|
||||
cp %{SOURCE1} LICENSE.txt
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/pygrun
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%prepare_alternative pygrun
|
||||
@@ -64,13 +65,15 @@ cp %{SOURCE1} LICENSE.txt
|
||||
|
||||
%check
|
||||
cd %{_builddir}/antlr4-%{version}/runtime/Python3
|
||||
%pyunittest discover -v --pattern "*.py" --start-directory tests
|
||||
%{python_expand #
|
||||
PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/run.py
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.txt
|
||||
%license LICENSE.txt
|
||||
%python_alternative %{_bindir}/pygrun
|
||||
%{python_sitelib}/antlr4_python3_runtime-*.egg-info
|
||||
%{python_sitelib}/antlr4_python3_runtime-*.dist-info
|
||||
%{python_sitelib}/antlr4
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user