- 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
This commit is contained in:
Dirk Mueller 2021-11-29 15:48:01 +00:00 committed by Git OBS Bridge
parent 30c072d111
commit 5782eb35d2
5 changed files with 22 additions and 11 deletions

View File

@ -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'],

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0
size 161330

BIN
pycparser-2.21.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Nov 29 15:44:31 UTC 2021 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com>

View File

@ -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