[packages/python3-typing_extensions] - python-typing_extensions.spec updated to 4.5.0 for python 3.7+

qboosh qboosh at pld-linux.org
Sun Apr 2 09:21:12 CEST 2023


commit bf8632b56b43a68bfcc5cdf2a98968da1328ef9d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Apr 2 09:23:41 2023 +0200

    - python-typing_extensions.spec updated to 4.5.0 for python 3.7+

 python-typing_extensions.spec  | 122 -----------------------------------------
 python3-typing_extensions.spec |  76 +++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 122 deletions(-)
---
diff --git a/python-typing_extensions.spec b/python-typing_extensions.spec
deleted file mode 100644
index 894442e..0000000
--- a/python-typing_extensions.spec
+++ /dev/null
@@ -1,122 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Backported and Experimental Type Hints for Python 3.5+
-Summary(pl.UTF-8):	Backportowane i eksperymentalne podpowiedzi typów dla Pythona 3.5+
-Name:		python-typing_extensions
-# keep 3.x here for python2 support
-Version:	3.10.0.2
-Release:	3
-License:	PSF
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/typing-extensions/
-Source0:	https://files.pythonhosted.org/packages/source/t/typing-extensions/typing_extensions-%{version}.tar.gz
-# Source0-md5:	ed80ecc8eac5cb15840535ca54eb43f3
-URL:		https://pypi.org/project/typing-extensions/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-typing >= 3.7.4
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-%if "%{py3_ver}" == "3.4"
-BuildRequires:	python3-typing >= 3.7.4
-%endif
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-The typing_extensions module contains both backports of Python typing
-module changes from Python 3.6-3.7 (includes types like Text or
-Coroutine) as well as experimental types that will eventually be added
-to the typing module, such as Protocol or TypedDict.
-
-%description -l pl.UTF-8
-Moduł typing_extensions zawiera backporty zmian modułu Pythona typing
-z wersji 3.6-3.7 (w tym typy takie jak Text czy Coroutine), a także
-eksperymentalne typy, które być może zostaną dodane do modułu typing,
-takie jak Protocol czy TypedDict.
-
-%package -n python3-typing_extensions
-Summary:	Backported and Experimental Type Hints for Python 3.5+
-Summary(pl.UTF-8):	Backportowane i eksperymentalne podpowiedzi typów dla Pythona 3.5+
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-typing_extensions
-The typing_extensions module contains both backports of Python typing
-module changes from Python 3.5-3.7 (includes types like Text or
-Coroutine) as well as experimental types that will eventually be added
-to the typing module, such as Protocol or TypedDict.
-
-%description -n python3-typing_extensions -l pl.UTF-8
-Moduł typing_extensions zawiera backporty zmian modułu Pythona typing
-z wersji 3.6-3.7 (w tym typy takie jak Text czy Coroutine), a także
-eksperymentalne typy, które być może zostaną dodane do modułu typing,
-takie jak Protocol czy TypedDict.
-
-%prep
-%setup -q -n typing_extensions-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s src_py2
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest discover -s src_py3
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/typing_extensions.py[co]
-%{py_sitescriptdir}/typing_extensions-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-typing_extensions
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/typing_extensions.py
-%{py3_sitescriptdir}/__pycache__/typing_extensions.cpython-*.py[co]
-%{py3_sitescriptdir}/typing_extensions-%{version}-py*.egg-info
-%endif
diff --git a/python3-typing_extensions.spec b/python3-typing_extensions.spec
new file mode 100644
index 0000000..a8cd1af
--- /dev/null
+++ b/python3-typing_extensions.spec
@@ -0,0 +1,76 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Backported and Experimental Type Hints for Python 3.7+
+Summary(pl.UTF-8):	Backportowane i eksperymentalne podpowiedzi typów dla Pythona 3.7+
+Name:		python3-typing_extensions
+Version:	4.5.0
+Release:	1
+License:	PSF
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/typing-extensions/
+Source0:	https://files.pythonhosted.org/packages/source/t/typing-extensions/typing_extensions-%{version}.tar.gz
+# Source0-md5:	03a01698ace869506cab825697dfb7e1
+URL:		https://pypi.org/project/typing-extensions/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:61
+%if %{with tests}
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The typing_extensions module serves two related purposes:
+- Enable use of new type system features on older Python versions. For
+  example, typing.TypeGuard is new in Python 3.10, but
+  typing_extensions allows users on previous Python versions to use it
+  too.
+- Enable experimentation with new type system PEPs before they are
+  accepted and added to the typing module.
+
+%description -l pl.UTF-8
+Moduł typing_extensions służy dwóm celom:
+- umożlwia korzystanie z nowych cech systemu typów w starszych
+  wersjach Pythona - np. typing.TypeGuard pojawił się w Pythonie 3.10,
+  ale typing_extensions pozwala na korzystanie z niego użytkownikom
+  starszych wersji;
+- pozwala na eksperymentowanie z nowymi PEP systemu typów zanim
+  zostaną zaakceptowane i dodane do moduły typing.
+
+%prep
+%setup -q -n typing_extensions-%{version}
+
+# stub to build using setuptools instead of flit.core
+cat >setup.py <<EOF
+from setuptools import setup
+setup()
+EOF
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s src
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/{_typed_dict_test_helper,test_typing_extensions}.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/__pycache__/{_typed_dict_test_helper,test_typing_extensions}.*
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%{py3_sitescriptdir}/typing_extensions.py
+%{py3_sitescriptdir}/__pycache__/typing_extensions.cpython-*.py[co]
+%{py3_sitescriptdir}/typing_extensions-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-typing_extensions.git/commitdiff/bf8632b56b43a68bfcc5cdf2a98968da1328ef9d



More information about the pld-cvs-commit mailing list