diff --git a/inflect-7.0.0.tar.gz b/inflect-7.0.0.tar.gz deleted file mode 100644 index e290faf..0000000 --- a/inflect-7.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:63da9325ad29da81ec23e055b41225795ab793b4ecb483be5dc1fa363fd4717e -size 70963 diff --git a/inflect-7.3.1.tar.gz b/inflect-7.3.1.tar.gz new file mode 100644 index 0000000..ec0104d --- /dev/null +++ b/inflect-7.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:edd785148a673b0c6dfef1a7d80cc1bcb2dd6d041cdb313b60032e464fd4e808 +size 71980 diff --git a/python-inflect.changes b/python-inflect.changes index ec390cc..7616935 100644 --- a/python-inflect.changes +++ b/python-inflect.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Sat Sep 7 00:08:11 UTC 2024 - Matej Cepl + +- 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 + +- 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 diff --git a/python-inflect.spec b/python-inflect.spec index c08ec8b..56eb079 100644 --- a/python-inflect.spec +++ b/python-inflect.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -18,24 +18,28 @@ %{?sle15_python_module_pythons} Name: python-inflect -Version: 7.0.0 +Version: 7.3.1 Release: 0 Summary: Methods for working on numbers and nouns License: MIT Group: Development/Languages/Python URL: https://github.com/jaraco/inflect 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 more-itertools >= 8.5.0} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pydantic >= 1.9.1} BuildRequires: %{python_module pytest} 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: fdupes BuildRequires: python-rpm-macros -Requires: python-pydantic >= 1.9.1 -Requires: python-toml +Requires: %{python_module typeguard} +Requires: python-more-itertools >= 8.5.0 BuildArch: noarch %python_subpackages diff --git a/typing_extensions-version.patch b/typing_extensions-version.patch new file mode 100644 index 0000000..c86b3a1 --- /dev/null +++ b/typing_extensions-version.patch @@ -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