diff --git a/python-typing_extensions.changes b/python-typing_extensions.changes index b199057..b88b2a9 100644 --- a/python-typing_extensions.changes +++ b/python-typing_extensions.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sun Jul 21 17:04:41 UTC 2019 - Sebastian Wagner + +- Update to version 3.7.4: + - No changelog available. +- Drop test-sys-executable.patch, merged upstream. + ------------------------------------------------------------------- Sat Mar 2 14:11:52 UTC 2019 - Tomáš Chvátal diff --git a/python-typing_extensions.spec b/python-typing_extensions.spec index 8dbaeb6..24cf768 100644 --- a/python-typing_extensions.spec +++ b/python-typing_extensions.spec @@ -19,26 +19,28 @@ %define modname typing_extensions %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-typing_extensions -Version: 3.7.2 +Version: 3.7.4 Release: 0 Summary: Backported and Experimental Type Hints for Python 35+ License: Python-2.0 Group: Development/Languages/Python URL: https://github.com/python/typing/ Source0: https://files.pythonhosted.org/packages/source/t/typing_extensions/%{modname}-%{version}.tar.gz -Patch0: test-sys-executable.patch BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing} +%if %{python3_version_nodots} < 35 +BuildRequires: python3-typing >= 3.7.4 +%endif +BuildRequires: python2-typing >= 3.7.4 %if 0%{?suse_version} > 1320 BuildRequires: python3-testsuite %endif BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{python3_version_nodots} < 35 -Requires: python3-typing +Requires: python3-typing >= 3.7.4 %endif %ifpython2 -Requires: python2-typing +Requires: python2-typing >= 3.7.4 %endif BuildArch: noarch @@ -63,7 +65,6 @@ Python versions or requires experimental types. %prep %setup -q -n %{modname}-%{version} -%patch0 -p2 %build %python_build diff --git a/test-sys-executable.patch b/test-sys-executable.patch deleted file mode 100644 index 6f9bec9..0000000 --- a/test-sys-executable.patch +++ /dev/null @@ -1,39 +0,0 @@ -From 1f49677868a60ed697b0eafb2fb56471233b4ea5 Mon Sep 17 00:00:00 2001 -From: "Michael R. Crusoe" <1330696+mr-c@users.noreply.github.com> -Date: Thu, 14 Feb 2019 12:25:27 +0200 -Subject: [PATCH] Run the tests using the current Python executable (#615) - -Not whatever "python" might be. ---- - typing_extensions/src_py2/test_typing_extensions.py | 3 ++- - typing_extensions/src_py3/test_typing_extensions.py | 3 ++- - 2 files changed, 4 insertions(+), 2 deletions(-) - -diff --git a/typing_extensions/src_py2/test_typing_extensions.py b/typing_extensions/src_py2/test_typing_extensions.py -index eb5acf3..922d8cd 100644 ---- a/typing_extensions/src_py2/test_typing_extensions.py -+++ b/typing_extensions/src_py2/test_typing_extensions.py -@@ -860,7 +860,8 @@ def test_typing_extensions_compiles_with_opt(self): - file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), - 'typing_extensions.py') - try: -- subprocess.check_output('python -OO {}'.format(file_path), -+ subprocess.check_output('{} -OO {}'.format(sys.executable, -+ file_path), - stderr=subprocess.STDOUT, - shell=True) - except subprocess.CalledProcessError: -diff --git a/typing_extensions/src_py3/test_typing_extensions.py b/typing_extensions/src_py3/test_typing_extensions.py -index eb0c64f..815e425 100644 ---- a/typing_extensions/src_py3/test_typing_extensions.py -+++ b/typing_extensions/src_py3/test_typing_extensions.py -@@ -1389,7 +1389,8 @@ def test_typing_extensions_compiles_with_opt(self): - file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), - 'typing_extensions.py') - try: -- subprocess.check_output('python -OO {}'.format(file_path), -+ subprocess.check_output('{} -OO {}'.format(sys.executable, -+ file_path), - stderr=subprocess.STDOUT, - shell=True) - except subprocess.CalledProcessError: diff --git a/typing_extensions-3.7.2.tar.gz b/typing_extensions-3.7.2.tar.gz deleted file mode 100644 index 5960c87..0000000 --- a/typing_extensions-3.7.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb2cd053238d33a8ec939190f30cfd736c00653a85a2919415cecf7dc3d9da71 -size 34042 diff --git a/typing_extensions-3.7.4.tar.gz b/typing_extensions-3.7.4.tar.gz new file mode 100644 index 0000000..541e243 --- /dev/null +++ b/typing_extensions-3.7.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ed632b30bb54fc3941c382decfd0ee4148f5c591651c9272473fea2c6397d95 +size 36058