Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflect?expand=0&rev=20
This commit is contained in:
parent
91606b508b
commit
87e7d1e60c
@ -25,18 +25,21 @@ 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}
|
BuildRequires: %{python_module more-itertools >= 8.5.0}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
Requires: %{python_module typeguard}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module typeguard}
|
BuildRequires: %{python_module typeguard}
|
||||||
BuildRequires: %{python_module typing_extensions}
|
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: more-itertools
|
Requires: %{python_module typeguard}
|
||||||
|
Requires: python-more-itertools >= 8.5.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%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