Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pegen for openSUSE:Factory checked in at 2024-12-04 15:27:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pegen (Old) and /work/SRC/openSUSE:Factory/.python-pegen.new.28523 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pegen" Wed Dec 4 15:27:05 2024 rev:4 rq:1228134 version:0.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pegen/python-pegen.changes 2024-02-21 17:57:55.450574661 +0100 +++ /work/SRC/openSUSE:Factory/.python-pegen.new.28523/python-pegen.changes 2024-12-04 15:27:09.237302555 +0100 @@ -1,0 +2,6 @@ +Wed Dec 4 05:33:17 UTC 2024 - Steve Kowalik <steven.kowa...@suse.com> + +- Add patch support-python-313.patch: + * Support Python 3.13's grammar changes. + +------------------------------------------------------------------- New: ---- support-python-313.patch BETA DEBUG BEGIN: New: - Add patch support-python-313.patch: * Support Python 3.13's grammar changes. BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pegen.spec ++++++ --- /var/tmp/diff_new_pack.xlz9C9/_old 2024-12-04 15:27:09.981333753 +0100 +++ /var/tmp/diff_new_pack.xlz9C9/_new 2024-12-04 15:27:09.985333921 +0100 @@ -23,6 +23,8 @@ License: MIT URL: https://github.com/we-like-parsers/pegen Source: https://files.pythonhosted.org/packages/source/p/pegen/pegen-%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#we-like-parsers/pegen#104 +Patch0: support-python-313.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} ++++++ support-python-313.patch ++++++ >From 47ae0a4c96a23bc086c712870ff831f42484bdf5 Mon Sep 17 00:00:00 2001 From: Daniel Fremont <dfrem...@ucsc.edu> Date: Wed, 16 Oct 2024 15:37:42 -0700 Subject: [PATCH 1/2] fix Python grammar to compile under Python 3.13 --- data/python.gram | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/python.gram b/data/python.gram index 4777ebb..5b52b30 100644 --- a/data/python.gram +++ b/data/python.gram @@ -2354,7 +2354,7 @@ invalid_while_stmt[NoReturn]: ) } invalid_for_stmt[NoReturn]: - | [ASYNC] 'for' star_targets 'in' star_expressions NEWLINE { self.raise_syntax_error("expected ':'") } + | ['async'] 'for' star_targets 'in' star_expressions NEWLINE { self.raise_syntax_error("expected ':'") } | ['async'] a='for' star_targets 'in' star_expressions ':' NEWLINE !INDENT { self.raise_indentation_error( f"expected an indented block after 'for' statement on line {a.start[0]}" >From c46fc0bc0747a7967b7efd88b6f9b290c021d788 Mon Sep 17 00:00:00 2001 From: Daniel Fremont <dfrem...@ucsc.edu> Date: Wed, 16 Oct 2024 15:53:27 -0700 Subject: [PATCH 2/2] update Python classifiers and add 3.13 to CI --- .github/workflows/test.yml | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b0214c7..f5db48e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8','3.9','3.10', '3.11', '3.12'] + python-version: ['3.8','3.9','3.10', '3.11', '3.12', '3.13'] steps: - uses: actions/checkout@v4 - name: Get history and tags for SCM versioning to work diff --git a/pyproject.toml b/pyproject.toml index 1aeb3da..951da71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,9 @@ classifiers = [ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3 :: Only", ] keywords = ["parser", "CPython", "PEG", "pegen"]