Accepting request 1225956 from devel:languages:python

- update to 3.2.0:
  * Discontinued support for Python 3.6, 3.7, and 3.8. Adopted
    new Python features from Python versions 3.7-3.9:
    - Updated type annotations to use built-in container types
      instead of names imported from the `typing` module
      (e.g., `list[str]` vs `List[str]`).
    - Reworked portions of the packrat cache to leverage
      insertion-preserving ordering in dicts (including removal of
      uses of `OrderedDict`).
    - Changed `pdb.set_trace()` call in `ParserElement.set_break()`
      to `breakpoint()`.
    - Converted `typing.NamedTuple` to `dataclasses.dataclass`
      in railroad diagramming code.
    - Added `from __future__ import annotations` to clean up
      some type annotations.

OBS-URL: https://build.opensuse.org/request/show/1225956
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyparsing?expand=0&rev=51
This commit is contained in:
Ana Guerrero 2024-11-26 19:55:19 +00:00 committed by Git OBS Bridge
commit 2cc21bd34a
4 changed files with 24 additions and 4 deletions

View File

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

3
pyparsing-3.2.0.tar.gz Normal file
View File

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

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon Oct 28 17:00:03 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.2.0:
* Discontinued support for Python 3.6, 3.7, and 3.8. Adopted
new Python features from Python versions 3.7-3.9:
- Updated type annotations to use built-in container types
instead of names imported from the `typing` module
(e.g., `list[str]` vs `List[str]`).
- Reworked portions of the packrat cache to leverage
insertion-preserving ordering in dicts (including removal of
uses of `OrderedDict`).
- Changed `pdb.set_trace()` call in `ParserElement.set_break()`
to `breakpoint()`.
- Converted `typing.NamedTuple` to `dataclasses.dataclass`
in railroad diagramming code.
- Added `from __future__ import annotations` to clean up
some type annotations.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Aug 31 12:00:10 UTC 2024 - Dirk Müller <dmueller@suse.com> Sat Aug 31 12:00:10 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -56,7 +56,7 @@ ExclusiveArch: do-not-build
%endif %endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: %{pprefix}-pyparsing%{?psuffix} Name: %{pprefix}-pyparsing%{?psuffix}
Version: 3.1.4 Version: 3.2.0
Release: 0 Release: 0
Summary: Grammar Parser Library for Python Summary: Grammar Parser Library for Python
License: GPL-2.0-or-later AND MIT AND GPL-3.0-or-later License: GPL-2.0-or-later AND MIT AND GPL-3.0-or-later
@ -69,6 +69,7 @@ BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module jinja2} BuildRequires: %{python_module jinja2}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module railroad-diagrams} BuildRequires: %{python_module railroad-diagrams}
%endif %endif