Accepting request 1199303 from devel:languages:python
- Clean up the SPEC file. - Add typing_extensions-version.patch cleaning up problematic handling with Annotated type on different versions of Pythons. - 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) OBS-URL: https://build.opensuse.org/request/show/1199303 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-inflect?expand=0&rev=9
This commit is contained in:
commit
ccccb265ef
BIN
inflect-7.0.0.tar.gz
(Stored with Git LFS)
BIN
inflect-7.0.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
3
inflect-7.3.1.tar.gz
Normal file
3
inflect-7.3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:edd785148a673b0c6dfef1a7d80cc1bcb2dd6d041cdb313b60032e464fd4e808
|
||||
size 71980
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
16
typing_extensions-version.patch
Normal file
16
typing_extensions-version.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user