From 5782eb35d25ca1138893ecd765e34457fcb09fb6d7e6f8956705c6717a5e2b3b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 29 Nov 2021 15:48:01 +0000 Subject: [PATCH] - update to 2.21: - Much improved support for C11 (multiple PRs) - Support for parehthesized compount statements (#423) - Support for modern Python versions (3.9 and 3.10) - Fix support for structs with nested enums (#387) - Multiple small bug fixes OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycparser?expand=0&rev=29 --- fix-lexer-build.patch | 10 +++++----- pycparser-2.20.tar.gz | 3 --- pycparser-2.21.tar.gz | 3 +++ python-pycparser.changes | 10 ++++++++++ python-pycparser.spec | 7 ++++--- 5 files changed, 22 insertions(+), 11 deletions(-) delete mode 100644 pycparser-2.20.tar.gz create mode 100644 pycparser-2.21.tar.gz diff --git a/fix-lexer-build.patch b/fix-lexer-build.patch index 90ea5a7..c40d689 100644 --- a/fix-lexer-build.patch +++ b/fix-lexer-build.patch @@ -1,7 +1,7 @@ -Index: pycparser-release_v2.14/setup.py +Index: pycparser-2.21/setup.py =================================================================== ---- pycparser-release_v2.14.orig/setup.py -+++ pycparser-release_v2.14/setup.py +--- pycparser-2.21.orig/setup.py ++++ pycparser-2.21/setup.py @@ -1,11 +1,11 @@ import os, sys try: @@ -30,8 +30,8 @@ Index: pycparser-release_v2.14/setup.py msg="Build the lexing/parsing tables") -@@ -60,7 +60,7 @@ setup( - 'Programming Language :: Python :: 3.6', +@@ -64,7 +64,7 @@ setup( + 'Programming Language :: Python :: 3.10', ], python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", - packages=['pycparser', 'pycparser.ply'], diff --git a/pycparser-2.20.tar.gz b/pycparser-2.20.tar.gz deleted file mode 100644 index 278adf2..0000000 --- a/pycparser-2.20.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0 -size 161330 diff --git a/pycparser-2.21.tar.gz b/pycparser-2.21.tar.gz new file mode 100644 index 0000000..f58a3f1 --- /dev/null +++ b/pycparser-2.21.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 +size 170877 diff --git a/python-pycparser.changes b/python-pycparser.changes index d9b849a..2805238 100644 --- a/python-pycparser.changes +++ b/python-pycparser.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Nov 29 15:44:31 UTC 2021 - Dirk Müller + +- update to 2.21: + - Much improved support for C11 (multiple PRs) + - Support for parehthesized compount statements (#423) + - Support for modern Python versions (3.9 and 3.10) + - Fix support for structs with nested enums (#387) + - Multiple small bug fixes + ------------------------------------------------------------------- Mon Mar 9 20:59:13 UTC 2020 - Dirk Mueller diff --git a/python-pycparser.spec b/python-pycparser.spec index 9e129ea..34ce1bb 100644 --- a/python-pycparser.spec +++ b/python-pycparser.spec @@ -1,7 +1,7 @@ # # spec file for package python-pycparser # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pycparser -Version: 2.20 +Version: 2.21 Release: 0 Summary: C parser in Python License: BSD-3-Clause @@ -27,6 +27,7 @@ URL: https://github.com/eliben/pycparser Source0: https://files.pythonhosted.org/packages/source/p/pycparser/pycparser-%{version}.tar.gz Source99: %{name}-rpmlintrc Patch1: fix-lexer-build.patch +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -53,7 +54,7 @@ sed -i 's/\r//' LICENSE %{python_expand %fdupes %{buildroot}%{$python_sitelib}} %check -%python_exec tests/all_tests.py +%pytest %files %{python_files} %doc README.rst