3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Backported and Experimental Type Hints for Python 3.5+
8 Summary(pl.UTF-8): Backportowane i eksperymentalne podpowiedzi typów dla Pythona 3.5+
9 Name: python-typing_extensions
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/typing-extensions/
15 Source0: https://files.pythonhosted.org/packages/source/t/typing-extensions/typing_extensions-%{version}.tar.gz
16 # Source0-md5: ed80ecc8eac5cb15840535ca54eb43f3
17 URL: https://pypi.org/project/typing-extensions/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-typing >= 3.7.4
26 BuildRequires: python3-modules >= 1:3.4
27 BuildRequires: python3-setuptools
29 %if "%{py3_ver}" < "3.4"
30 BuildRequires: python3-typing >= 3.7.4
34 BuildRequires: rpm-pythonprov
35 BuildRequires: rpmbuild(macros) >= 1.714
36 Requires: python-modules >= 1:2.7
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 The typing_extensions module contains both backports of Python typing
42 module changes from Python 3.6-3.7 (includes types like Text or
43 Coroutine) as well as experimental types that will eventually be added
44 to the typing module, such as Protocol or TypedDict.
46 %description -l pl.UTF-8
47 Moduł typing_extensions zawiera backporty zmian modułu Pythona typing
48 z wersji 3.6-3.7 (w tym typy takie jak Text czy Coroutine), a także
49 eksperymentalne typy, które być może zostaną dodane do modułu typing,
50 takie jak Protocol czy TypedDict.
52 %package -n python3-typing_extensions
53 Summary: Backported and Experimental Type Hints for Python 3.5+
54 Summary(pl.UTF-8): Backportowane i eksperymentalne podpowiedzi typów dla Pythona 3.5+
55 Group: Libraries/Python
56 Requires: python3-modules >= 1:3.4
58 %description -n python3-typing_extensions
59 The typing_extensions module contains both backports of Python typing
60 module changes from Python 3.5-3.7 (includes types like Text or
61 Coroutine) as well as experimental types that will eventually be added
62 to the typing module, such as Protocol or TypedDict.
64 %description -n python3-typing_extensions -l pl.UTF-8
65 Moduł typing_extensions zawiera backporty zmian modułu Pythona typing
66 z wersji 3.6-3.7 (w tym typy takie jak Text czy Coroutine), a także
67 eksperymentalne typy, które być może zostaną dodane do modułu typing,
68 takie jak Protocol czy TypedDict.
71 %setup -q -n typing_extensions-%{version}
78 %{__python} -m unittest discover -s src_py2
86 %{__python3} -m unittest discover -s src_py3
91 rm -rf $RPM_BUILD_ROOT
104 rm -rf $RPM_BUILD_ROOT
108 %defattr(644,root,root,755)
109 %doc LICENSE README.rst
110 %{py_sitescriptdir}/typing_extensions.py[co]
111 %{py_sitescriptdir}/typing_extensions-%{version}-py*.egg-info
115 %files -n python3-typing_extensions
116 %defattr(644,root,root,755)
117 %doc LICENSE README.rst
118 %{py3_sitescriptdir}/typing_extensions.py
119 %{py3_sitescriptdir}/__pycache__/typing_extensions.cpython-*.py[co]
120 %{py3_sitescriptdir}/typing_extensions-%{version}-py*.egg-info