Sync from SUSE:SLFO:Main python-inflect revision c128d2c8732f22823d5c06f3d29a0886

This commit is contained in:
Adrian Schröter 2024-12-13 11:35:27 +01:00
parent 727f27df68
commit dd165251fa
5 changed files with 50 additions and 9 deletions

BIN
inflect-7.0.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
inflect-7.3.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Sat Sep 7 00:08:11 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file.
- Add typing_extensions-version.patch cleaning up problematic
handling with Annotated type on different versions of Pythons.
-------------------------------------------------------------------
Wed Sep 4 12:42:21 UTC 2024 - Frantisek Simorda <frantisek.simorda@suse.com>
- update to 7.3.1:
* Set minimum version of more-itertools to 8.5 (#215)
- version 7.3.0:
* Restricted typing_extensions to Python 3.8. (#211)
- version 7.2.1:
* Refactored number_to_words toward reduced complexity.
- version 7.2.0:
* Replace pydantic with typeguard (#195)
- version 7.1.0:
* Now handle 'pair of x' in pl_sb_uninflected_complete (#188)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 7 14:57:37 UTC 2023 - Dirk Müller <dmueller@suse.com> Tue Nov 7 14:57:37 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-inflect # spec file for package python-inflect
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -18,24 +18,28 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-inflect Name: python-inflect
Version: 7.0.0 Version: 7.3.1
Release: 0 Release: 0
Summary: Methods for working on numbers and nouns Summary: Methods for working on numbers and nouns
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/jaraco/inflect URL: https://github.com/jaraco/inflect
Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/i/inflect/inflect-%{version}.tar.gz
# PATCH-FIX-UPSTREAM typing_extensions-version.patch bsc#[0-9]+ mcepl@suse.com
# Correct handling of the potential missing Annotated type
Patch0: typing_extensions-version.patch
BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module more-itertools >= 8.5.0}
BuildRequires: %{python_module pip} BuildRequires: %{python_module pip}
BuildRequires: %{python_module pydantic >= 1.9.1}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module toml} BuildRequires: %{python_module typeguard}
BuildRequires: %{python_module typing_extensions if %python-base < 3.9}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-pydantic >= 1.9.1 Requires: %{python_module typeguard}
Requires: python-toml Requires: python-more-itertools >= 8.5.0
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages

View File

@ -0,0 +1,16 @@
---
inflect/compat/py38.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/inflect/compat/py38.py
+++ b/inflect/compat/py38.py
@@ -1,7 +1,7 @@
import sys
-if sys.version_info >= (3, 9):
+try:
from typing import Annotated
-else: # pragma: no cover
+except ImportError:
from typing_extensions import Annotated # noqa: F401