From 9dd93aa690cd28a7d5ca4382066f41d6c5fc06c2f72ed3735f08b5f3a3655536 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 24 May 2022 12:18:17 +0000 Subject: [PATCH] Accepting request 978954 from home:glaubitz:branches:devel:languages:python - Update to version 4.9.3 Issues fixed * Swift Target Crashes with Multi-Threading * JavaScript Runtime bug * Go target, cannot use superClass for the lexer grammar! * Python runtime is inconsistent with Java * FunctionDef source extract using getText() * Provide .NET Framework target in the csharp nuget package * Go target for Antlr tool, type ",int8" => "int8" * Flutter/Dart web support * Allow Antlr Javascript runtime to be loaded into Kindle Touch * Fix Go test suite * Weird error Improvements, features * [C++] Use faster alternative to dynamic_cast when not testing inherit * Stackoverflow after upgrading from 4.6 to 4.7 - from version 4.9.2 Issues fixed * CSharp and Java produce different results for identical input, identical tokens Improvements, features * Moved away from travis-ci.com - Source upstream tarball from Github since PyPi tarball no longer ships testsuite OBS-URL: https://build.opensuse.org/request/show/978954 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-antlr4-python3-runtime?expand=0&rev=6 --- antlr4-python3-runtime-4.9.1.tar.gz | 3 --- python-antlr4-python3-runtime-4.9.3.tar.gz | 3 +++ python-antlr4-python3-runtime.changes | 26 ++++++++++++++++++++++ python-antlr4-python3-runtime.spec | 13 ++++++----- 4 files changed, 36 insertions(+), 9 deletions(-) delete mode 100644 antlr4-python3-runtime-4.9.1.tar.gz create mode 100644 python-antlr4-python3-runtime-4.9.3.tar.gz diff --git a/antlr4-python3-runtime-4.9.1.tar.gz b/antlr4-python3-runtime-4.9.1.tar.gz deleted file mode 100644 index 86387f3..0000000 --- a/antlr4-python3-runtime-4.9.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:759eddb70061ff7387bc877f5b59e3344ab374843604f757afa5b308cb68669a -size 173261 diff --git a/python-antlr4-python3-runtime-4.9.3.tar.gz b/python-antlr4-python3-runtime-4.9.3.tar.gz new file mode 100644 index 0000000..c226260 --- /dev/null +++ b/python-antlr4-python3-runtime-4.9.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efe4057d75ab48145d4683100fec7f77d7f87fa258707330cadd1f8e6f7eecae +size 4640242 diff --git a/python-antlr4-python3-runtime.changes b/python-antlr4-python3-runtime.changes index cd72434..37bacea 100644 --- a/python-antlr4-python3-runtime.changes +++ b/python-antlr4-python3-runtime.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Tue May 24 12:02:27 UTC 2022 - John Paul Adrian Glaubitz + +- Update to version 4.9.3 + Issues fixed + * Swift Target Crashes with Multi-Threading + * JavaScript Runtime bug + * Go target, cannot use superClass for the lexer grammar! + * Python runtime is inconsistent with Java + * FunctionDef source extract using getText() + * Provide .NET Framework target in the csharp nuget package + * Go target for Antlr tool, type ",int8" => "int8" + * Flutter/Dart web support + * Allow Antlr Javascript runtime to be loaded into Kindle Touch + * Fix Go test suite + * Weird error + Improvements, features + * [C++] Use faster alternative to dynamic_cast when not testing inherit + * Stackoverflow after upgrading from 4.6 to 4.7 +- from version 4.9.2 + Issues fixed + * CSharp and Java produce different results for identical input, identical tokens + Improvements, features + * Moved away from travis-ci.com +- Source upstream tarball from Github since PyPi tarball no longer ships testsuite + ------------------------------------------------------------------- Sun Jan 31 10:41:57 UTC 2021 - andy great diff --git a/python-antlr4-python3-runtime.spec b/python-antlr4-python3-runtime.spec index b660a1a..6401ff5 100644 --- a/python-antlr4-python3-runtime.spec +++ b/python-antlr4-python3-runtime.spec @@ -1,7 +1,7 @@ # # spec file for package python-antlr4-python3-runtime # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,18 +19,18 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-antlr4-python3-runtime -Version: 4.9.1 +Version: 4.9.3 Release: 0 Summary: ANTLR runtime for Python 3 License: BSD-3-Clause URL: https://www.antlr.org -Source: https://files.pythonhosted.org/packages/source/a/antlr4-python3-runtime/antlr4-python3-runtime-%{version}.tar.gz +Source: https://github.com/antlr/antlr4/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: LICENSE.txt BuildRequires: %{python_module setuptools} 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 @@ -44,7 +44,7 @@ reading, processing, executing, or translating structured text or binary files. This package contains the runtime for Python 3. %prep -%setup -q -n antlr4-python3-runtime-%{version} +%setup -q -n antlr4-%{version}/runtime/Python3 cp %{SOURCE1} LICENSE.txt %build @@ -63,7 +63,8 @@ cp %{SOURCE1} LICENSE.txt %python_uninstall_alternative pygrun %check -%pyunittest discover -v --pattern "*.py" --start-directory test +cd %{_builddir}/antlr4-%{version}/runtime/Python3 +%pyunittest discover -v --pattern "*.py" --start-directory tests %files %{python_files} %doc README.txt