From 1c00c56e64df4a005d0ec8ababb8be2904112926 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Wed, 26 Sep 2018 13:04:20 +0000 Subject: [PATCH 01/28] Added the README --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..41bb98d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-lark-parser + +The python-lark-parser package \ No newline at end of file From 19cab446663b5509f7572222f545ec0eecc1d43c Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Wed, 26 Sep 2018 23:42:16 +0200 Subject: [PATCH 02/28] Initial package Version 0.6.4 --- .gitignore | 1 + README.md | 3 -- python-lark-parser.spec | 62 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 python-lark-parser.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..073ce9a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/lark-parser-0.6.4.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 41bb98d..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-lark-parser - -The python-lark-parser package \ No newline at end of file diff --git a/python-lark-parser.spec b/python-lark-parser.spec new file mode 100644 index 0000000..1c81df5 --- /dev/null +++ b/python-lark-parser.spec @@ -0,0 +1,62 @@ +%global pypi_name lark-parser + +Name: python-%{pypi_name} +Version: 0.6.4 +Release: 1%{?dist} +Summary: Lark is a modern general-purpose parsing library for Python +License: MIT +Group: Development/Languages/Python +Url: https://github.com/lark-parser/lark +Source: https://files.pythonhosted.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: fdupes +BuildArch: noarch + +%description +Lark is a modern general-purpose parsing library for Python. + +Lark focuses on simplicity and power. It lets you choose between +two parsing algorithms: + +Earley : Parses all context-free grammars (even ambiguous ones)! +It is the default. + +LALR(1): Only LR grammars. Outperforms PLY and most if not all +other pure-python parsing libraries. + +Both algorithms are written in Python and can be used interchangeably +with the same grammar (aside for algorithmic restrictions). +See "Comparison to other parsers" for more details. + +Lark can auto magically build an AST from your grammar, without any +more code on your part. + +Features: + +- EBNF grammar with a little extra +- Earley & LALR(1) +- Builds an AST auto magically based on the grammar +- Automatic line & column tracking +- Automatic token collision resolution (unless both tokens are regexps) +- Python 2 & 3 compatible +- Unicode fully supported + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%files +%license LICENSE +%doc README.md examples +%{python3_sitelib}/lark_parser-*.egg-info +%{python3_sitelib}/lark/ + +%changelog +* Mon Sep 24 2018 Thomas Andrejak - 0.6.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..09a8f6d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (lark-parser-0.6.4.tar.gz) = b813dbdf862634860693337e69c103cb7dffd76a0ee8cbde050c464d7d18a10ff19de0d260b576fd1f65d1d1275246b12309dbd615a5a46c5788742d87c4246e From cd62b09aa48d7bf53971e875f32726fad481ff8e Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Fri, 11 Jan 2019 01:17:54 +0100 Subject: [PATCH 03/28] Fix package naming --- python-lark-parser.spec | 45 +++++++++++++++++++++++++++++++++++------ 1 file changed, 39 insertions(+), 6 deletions(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 1c81df5..309ed17 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,15 +2,11 @@ Name: python-%{pypi_name} Version: 0.6.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT -Group: Development/Languages/Python Url: https://github.com/lark-parser/lark Source: https://files.pythonhosted.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: fdupes BuildArch: noarch %description @@ -42,6 +38,40 @@ Features: - Python 2 & 3 compatible - Unicode fully supported +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +Lark is a modern general-purpose parsing library for Python. + +Lark focuses on simplicity and power. It lets you choose between +two parsing algorithms: + +Earley : Parses all context-free grammars (even ambiguous ones)! +It is the default. + +LALR(1): Only LR grammars. Outperforms PLY and most if not all +other pure-python parsing libraries. + +Both algorithms are written in Python and can be used interchangeably +with the same grammar (aside for algorithmic restrictions). +See "Comparison to other parsers" for more details. + +Lark can auto magically build an AST from your grammar, without any +more code on your part. + +Features: + +- EBNF grammar with a little extra +- Earley & LALR(1) +- Builds an AST auto magically based on the grammar +- Automatic line & column tracking +- Automatic token collision resolution (unless both tokens are regexps) +- Python 2 & 3 compatible +- Unicode fully supported + %prep %autosetup -n %{pypi_name}-%{version} @@ -51,12 +81,15 @@ Features: %install %py3_install -%files +%files -n python3-%{pypi_name} %license LICENSE %doc README.md examples %{python3_sitelib}/lark_parser-*.egg-info %{python3_sitelib}/lark/ %changelog +* Fri Jan 11 2019 Thomas Andrejak - 0.6.4-2 +- Fix package naming + * Mon Sep 24 2018 Thomas Andrejak - 0.6.4-1 - Initial package From d9553c9c96982e5198089832f195ddd78656bfeb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 2 Feb 2019 07:31:55 +0000 Subject: [PATCH 04/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 309ed17..feabb40 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.6.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Sat Feb 02 2019 Fedora Release Engineering - 0.6.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Jan 11 2019 Thomas Andrejak - 0.6.4-2 - Fix package naming From 35437bd3bcc1a0a538a0944d18f11619a14b51d8 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Mon, 20 May 2019 16:04:42 -0700 Subject: [PATCH 05/28] Update to 0.7.1 --- .gitignore | 1 + python-lark-parser.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 073ce9a..fb87cce 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /lark-parser-0.6.4.tar.gz +lark-parser-0.7.1.tar.gz diff --git a/python-lark-parser.spec b/python-lark-parser.spec index feabb40..14956f8 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -1,8 +1,8 @@ %global pypi_name lark-parser Name: python-%{pypi_name} -Version: 0.6.4 -Release: 3%{?dist} +Version: 0.7.1 +Release: 1%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Mon May 20 2019 Scott K Logan - 0.7.1-1 +- Update to 0.7.1 + * Sat Feb 02 2019 Fedora Release Engineering - 0.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 09a8f6d..334ae4f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lark-parser-0.6.4.tar.gz) = b813dbdf862634860693337e69c103cb7dffd76a0ee8cbde050c464d7d18a10ff19de0d260b576fd1f65d1d1275246b12309dbd615a5a46c5788742d87c4246e +SHA512 (lark-parser-0.7.1.tar.gz) = abea9c82996ec443c51bc438991341abe8a8c495bfe40e38e94899f25853ad83afba7f3940b4da181efba5606740fdee2f9cebcfc4209ec9c0e267012a94e880 From f267094eda606c5de619b4b5cf7439737541751e Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 14:17:19 +0000 Subject: [PATCH 06/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 14956f8..45d06d4 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.7.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Mon May 20 2019 Scott K Logan - 0.7.1-1 - Update to 0.7.1 From 036484aea4b667d496912c4a18bceadd44ec21e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 19 Aug 2019 10:43:30 +0200 Subject: [PATCH 07/28] Rebuilt for Python 3.8 --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 45d06d4..71174a5 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.7.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Mon Aug 19 2019 Miro Hrončok - 0.7.1-3 +- Rebuilt for Python 3.8 + * Fri Jul 26 2019 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From 87aa5d9e41b1c0e527de7f7e84e1eeb25bd71408 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 3 Oct 2019 14:17:04 +0200 Subject: [PATCH 08/28] Rebuilt for Python 3.8.0rc1 (#1748018) --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 71174a5..1bf4335 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.7.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Thu Oct 03 2019 Miro Hrončok - 0.7.1-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + * Mon Aug 19 2019 Miro Hrončok - 0.7.1-3 - Rebuilt for Python 3.8 From f7da50997160d5569b19c010f92033d808f0dea7 Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Sun, 27 Oct 2019 02:22:37 +0200 Subject: [PATCH 09/28] Bump version 0.7.7 --- .gitignore | 1 + python-lark-parser.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index fb87cce..d0ed0c4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /lark-parser-0.6.4.tar.gz lark-parser-0.7.1.tar.gz +/lark-parser-0.7.7.tar.gz diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 1bf4335..333b2d9 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -1,8 +1,8 @@ %global pypi_name lark-parser Name: python-%{pypi_name} -Version: 0.7.1 -Release: 4%{?dist} +Version: 0.7.7 +Release: 1%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Fri Oct 25 2019 Thomas Andrejak - 0.7.7-1 +- Update to 0.7.7 + * Thu Oct 03 2019 Miro Hrončok - 0.7.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018) diff --git a/sources b/sources index 334ae4f..55e4c3a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lark-parser-0.7.1.tar.gz) = abea9c82996ec443c51bc438991341abe8a8c495bfe40e38e94899f25853ad83afba7f3940b4da181efba5606740fdee2f9cebcfc4209ec9c0e267012a94e880 +SHA512 (lark-parser-0.7.7.tar.gz) = 6f836097f6efef3f0e73841eb7d2cc306967a031bdec94ceff4315d1784decc19a2b8ed33395852a4c143f27b2948086635abadde53fbc72ef7a4bd413162ccf From ea0f88078060fdd69aecce443a9d26fe93da24be Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Thu, 7 Nov 2019 00:35:06 +0100 Subject: [PATCH 10/28] Bump version 0.7.8 --- .gitignore | 1 + python-lark-parser.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d0ed0c4..0390d9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /lark-parser-0.6.4.tar.gz lark-parser-0.7.1.tar.gz /lark-parser-0.7.7.tar.gz +/lark-parser-0.7.8.tar.gz diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 333b2d9..8b7c2d8 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -1,7 +1,7 @@ %global pypi_name lark-parser Name: python-%{pypi_name} -Version: 0.7.7 +Version: 0.7.8 Release: 1%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Wed Nov 06 2019 Thomas Andrejak - 0.7.8-1 +- Update to 0.7.8 + * Fri Oct 25 2019 Thomas Andrejak - 0.7.7-1 - Update to 0.7.7 diff --git a/sources b/sources index 55e4c3a..c6d88a9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lark-parser-0.7.7.tar.gz) = 6f836097f6efef3f0e73841eb7d2cc306967a031bdec94ceff4315d1784decc19a2b8ed33395852a4c143f27b2948086635abadde53fbc72ef7a4bd413162ccf +SHA512 (lark-parser-0.7.8.tar.gz) = 52eed1a5f26fa7ba79820298a8f6f7594b2351797abdaf8fd96f76e15a11711805955e055164ce287f7204edf3d19116562795cf56db464b4f2f15e40e1da561 From f6575f30b78255356db239703a78117bff64a90c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 30 Jan 2020 13:04:03 +0000 Subject: [PATCH 11/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 8b7c2d8..1ddbbf5 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.7.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Thu Jan 30 2020 Fedora Release Engineering - 0.7.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Wed Nov 06 2019 Thomas Andrejak - 0.7.8-1 - Update to 0.7.8 From 7e877d3a4ac071b187068ac9c62c42f2faee20e9 Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Thu, 27 Feb 2020 22:07:04 +0100 Subject: [PATCH 12/28] Bump version 0.8.1 Fix #1794033 --- .gitignore | 5 +---- python-lark-parser.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 0390d9b..988a79c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -/lark-parser-0.6.4.tar.gz -lark-parser-0.7.1.tar.gz -/lark-parser-0.7.7.tar.gz -/lark-parser-0.7.8.tar.gz +/lark-parser-0.8.1.tar.gz diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 1ddbbf5..cb0c657 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -1,8 +1,8 @@ %global pypi_name lark-parser Name: python-%{pypi_name} -Version: 0.7.8 -Release: 2%{?dist} +Version: 0.8.1 +Release: 1%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -88,6 +88,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Mon Feb 24 2020 Thomas Andrejak - 0.8.1-1 +- Update to 0.8.1 + * Thu Jan 30 2020 Fedora Release Engineering - 0.7.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index c6d88a9..38944f3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lark-parser-0.7.8.tar.gz) = 52eed1a5f26fa7ba79820298a8f6f7594b2351797abdaf8fd96f76e15a11711805955e055164ce287f7204edf3d19116562795cf56db464b4f2f15e40e1da561 +SHA512 (lark-parser-0.8.1.tar.gz) = 601ac368b499fc28a065dc5aaf72df137c25e966e5e273cd75745eb02af7b98c968a92f99c030634aca034944e8aa2f08deeeade14cc7a9a227dd534f2e7820b From fdd41845512b6bd5ee45d608ba49f848824728a8 Mon Sep 17 00:00:00 2001 From: Thomas Andrejak Date: Sat, 7 Mar 2020 14:24:28 +0100 Subject: [PATCH 13/28] Bump version 0.8.2 Fix #1811291 --- .gitignore | 2 +- python-lark-parser.spec | 6 +++++- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 988a79c..db49428 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/lark-parser-0.8.1.tar.gz +/lark-parser-0.8.2.tar.gz diff --git a/python-lark-parser.spec b/python-lark-parser.spec index cb0c657..cc3f219 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -1,7 +1,7 @@ %global pypi_name lark-parser Name: python-%{pypi_name} -Version: 0.8.1 +Version: 0.8.2 Release: 1%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT @@ -80,6 +80,7 @@ Features: %install %py3_install +rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %files -n python3-%{pypi_name} %license LICENSE @@ -88,6 +89,9 @@ Features: %{python3_sitelib}/lark/ %changelog +* Sat Mar 07 2020 Thomas Andrejak - 0.8.2-1 +- Update to 0.8.2 + * Mon Feb 24 2020 Thomas Andrejak - 0.8.1-1 - Update to 0.8.1 diff --git a/sources b/sources index 38944f3..d488dd0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lark-parser-0.8.1.tar.gz) = 601ac368b499fc28a065dc5aaf72df137c25e966e5e273cd75745eb02af7b98c968a92f99c030634aca034944e8aa2f08deeeade14cc7a9a227dd534f2e7820b +SHA512 (lark-parser-0.8.2.tar.gz) = f86f239406dd11bae2920c9f7514cdfbf442c5a7a5934085e8be3c30a1c363f96bf5132b701a83b9073b78bbb0bd72feea80e2414389f1aefda9b4147605686c From f3febca617f96d4b69e58684b450a31366fcce8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 26 May 2020 03:22:31 +0200 Subject: [PATCH 14/28] Rebuilt for Python 3.9 --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index cc3f219..204cc5e 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.8.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -89,6 +89,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Tue May 26 2020 Miro Hrončok - 0.8.2-2 +- Rebuilt for Python 3.9 + * Sat Mar 07 2020 Thomas Andrejak - 0.8.2-1 - Update to 0.8.2 From a4eaded1581a22cdea2c80f46b2cb2178b9105c5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 01:52:08 +0000 Subject: [PATCH 15/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 204cc5e..eb9aeaa 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.8.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -89,6 +89,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 0.8.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue May 26 2020 Miro Hrončok - 0.8.2-2 - Rebuilt for Python 3.9 From e0e27e97979a5ed81eda881cc8822bf5972dbfb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 6 Oct 2020 00:02:53 +0200 Subject: [PATCH 16/28] Update to 0.9.0 --- .gitignore | 1 + python-lark-parser.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index db49428..fbc6136 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /lark-parser-0.8.2.tar.gz +/lark-parser-0.9.0.tar.gz diff --git a/python-lark-parser.spec b/python-lark-parser.spec index eb9aeaa..92e58ef 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -1,8 +1,8 @@ %global pypi_name lark-parser Name: python-%{pypi_name} -Version: 0.8.2 -Release: 3%{?dist} +Version: 0.9.0 +Release: 1%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -89,6 +89,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Mon Oct 05 2020 Miro Hrončok - 0.9.0-1 +- Update to 0.9.0 + * Wed Jul 29 2020 Fedora Release Engineering - 0.8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index d488dd0..68a7fb9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (lark-parser-0.8.2.tar.gz) = f86f239406dd11bae2920c9f7514cdfbf442c5a7a5934085e8be3c30a1c363f96bf5132b701a83b9073b78bbb0bd72feea80e2414389f1aefda9b4147605686c +SHA512 (lark-parser-0.9.0.tar.gz) = e22f35666aa39cc504eaf48950170bd44eb9d9e15ae2f13d47a4950576be31f1bbabf799847b02e5ee22c0f96fb75c5256c8e4a4aa195caa830444f5b91d6852 From 2e254bcd68a39c6e19ec0166b824f69046b80fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 6 Oct 2020 00:04:56 +0200 Subject: [PATCH 17/28] Run tests --- python-lark-parser.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 92e58ef..4bd6c35 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -82,6 +82,9 @@ Features: %py3_install rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ +%check +%{python3} -m tests + %files -n python3-%{pypi_name} %license LICENSE %doc README.md examples From ecc70c0f4f8bf729b72dfbb30b4d75a868a721bd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 27 Jan 2021 11:26:47 +0000 Subject: [PATCH 18/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 4bd6c35..4469296 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -92,6 +92,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Wed Jan 27 2021 Fedora Release Engineering - 0.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Mon Oct 05 2020 Miro Hrončok - 0.9.0-1 - Update to 0.9.0 From 22bb151e43834cfc55e5d1eb49cb9ce29d633c06 Mon Sep 17 00:00:00 2001 From: Tomas Hrnciar Date: Mon, 19 Apr 2021 13:18:32 +0200 Subject: [PATCH 19/28] BuildRequire setuptools explicitly See https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools --- python-lark-parser.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 4469296..77a693b 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -41,6 +41,7 @@ Features: %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel +BuildRequires: python3-setuptools %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} From 0a52cbcde12292fa0f2eb214c0bb7f972dabc4cc Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 4 Jun 2021 13:59:38 +0200 Subject: [PATCH 20/28] Rebuilt for Python 3.10 --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 77a693b..d58fbb0 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -93,6 +93,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Fri Jun 04 2021 Python Maint - 0.9.0-3 +- Rebuilt for Python 3.10 + * Wed Jan 27 2021 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 4c81717633644fedc22293f774c72e1830c7c0bd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 07:12:19 +0000 Subject: [PATCH 21/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index d58fbb0..ae5c1d0 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -93,6 +93,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 0.9.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Fri Jun 04 2021 Python Maint - 0.9.0-3 - Rebuilt for Python 3.10 From a35cd9e5e63a160afb298306f879566d03354dff Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 13:08:47 +0000 Subject: [PATCH 22/28] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index ae5c1d0..563a4ec 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -93,6 +93,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 0.9.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 0.9.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 98634f1215e6dd831252b036a4fd38b8bb966cd7 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 15:08:05 +0200 Subject: [PATCH 23/28] Rebuilt for Python 3.11 --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 563a4ec..0a66e3f 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -93,6 +93,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Mon Jun 13 2022 Python Maint - 0.9.0-6 +- Rebuilt for Python 3.11 + * Fri Jan 21 2022 Fedora Release Engineering - 0.9.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 4f4b32b780ff32434b0bf55b837fe72bf61f1989 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 7 Jul 2022 10:48:18 +0200 Subject: [PATCH 24/28] Don't import deprecated sre_parse and sre_constants modules Related to https://bugzilla.redhat.com/show_bug.cgi?id=2098971#c6 --- python-lark-parser.spec | 12 ++++++++++-- python3.11.patch | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 python3.11.patch diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 0a66e3f..3c52353 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,11 +2,16 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark Source: https://files.pythonhosted.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +# Adjust imports for Python 3.11, merged upstream +# https://github.com/lark-parser/lark/pull/1140 +Patch: python3.11.patch + BuildArch: noarch %description @@ -74,7 +79,7 @@ Features: - Unicode fully supported %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -p1 -n %{pypi_name}-%{version} %build %py3_build @@ -93,6 +98,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Thu Jul 07 2022 Miro Hrončok - 0.9.0-7 +- Don't import deprecated sre_parse and sre_constants modules + * Mon Jun 13 2022 Python Maint - 0.9.0-6 - Rebuilt for Python 3.11 diff --git a/python3.11.patch b/python3.11.patch new file mode 100644 index 0000000..59a9aed --- /dev/null +++ b/python3.11.patch @@ -0,0 +1,33 @@ +From 7bbb353dd258905510289bda3de87a8354daca3c Mon Sep 17 00:00:00 2001 +From: Florian Bruhin +Date: Tue, 26 Apr 2022 13:37:12 +0200 +Subject: [PATCH] Adjust imports for Python 3.11 + +sre_parse and sre_constants are deprecated in 3.11, see https://github.com/python/cpython/issues/91308 +--- + lark/utils.py | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/lark/utils.py b/lark/utils.py +index 36f50d1..29d998b 100644 +--- a/lark/utils.py ++++ b/lark/utils.py +@@ -173,8 +173,13 @@ except ImportError: + import sys, re + Py36 = (sys.version_info[:2] >= (3, 6)) + +-import sre_parse +-import sre_constants ++if sys.version_info >= (3, 11): ++ import re._parser as sre_parse ++ import re._constants as sre_constants ++else: ++ import sre_parse ++ import sre_constants ++ + categ_pattern = re.compile(r'\\p{[A-Za-z_]+}') + def get_regexp_width(expr): + if regex: +-- +2.35.3 + From 83cfda96c3fe87660c311a6bc82ea4ba8aa5584f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 19:41:14 +0000 Subject: [PATCH 25/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 3c52353..819fb95 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -98,6 +98,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 0.9.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jul 07 2022 Miro Hrončok - 0.9.0-7 - Don't import deprecated sre_parse and sre_constants modules From 3f5163bf5a3d30a9f159d06bb35db9e9b72067f5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 14:21:13 +0000 Subject: [PATCH 26/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 819fb95..40b5837 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -98,6 +98,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 0.9.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 0.9.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 05d85fa1fbcc76357d41e45c4f3ade446e0755ee Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 13 Jun 2023 20:42:17 +0200 Subject: [PATCH 27/28] Rebuilt for Python 3.12 --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index 40b5837..faa26a1 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -98,6 +98,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Tue Jun 13 2023 Python Maint - 0.9.0-10 +- Rebuilt for Python 3.12 + * Fri Jan 20 2023 Fedora Release Engineering - 0.9.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From a7e553967ec28aba1cb4c7929f9ac2a8bad3f028 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 11:00:02 +0000 Subject: [PATCH 28/28] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-lark-parser.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-lark-parser.spec b/python-lark-parser.spec index faa26a1..734c602 100644 --- a/python-lark-parser.spec +++ b/python-lark-parser.spec @@ -2,7 +2,7 @@ Name: python-%{pypi_name} Version: 0.9.0 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Lark is a modern general-purpose parsing library for Python License: MIT Url: https://github.com/lark-parser/lark @@ -98,6 +98,9 @@ rm -rfv %{buildroot}/%{python3_sitelib}/lark-stubs/ %{python3_sitelib}/lark/ %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 0.9.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue Jun 13 2023 Python Maint - 0.9.0-10 - Rebuilt for Python 3.12