forked from pool/python-typing_extensions
		
	Accepting request 717373 from home:sebix:branches:devel:languages:python
- Update to version 3.7.4: - No changelog available. - Drop test-sys-executable.patch, merged upstream. OBS-URL: https://build.opensuse.org/request/show/717373 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=12
This commit is contained in:
		| @@ -1,3 +1,10 @@ | ||||
| ------------------------------------------------------------------- | ||||
| Sun Jul 21 17:04:41 UTC 2019 - Sebastian Wagner <sebix+novell.com@sebix.at> | ||||
|  | ||||
| - 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 <tchvatal@suse.com> | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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: | ||||
| @@ -1,3 +0,0 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:fb2cd053238d33a8ec939190f30cfd736c00653a85a2919415cecf7dc3d9da71 | ||||
| size 34042 | ||||
							
								
								
									
										3
									
								
								typing_extensions-3.7.4.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								typing_extensions-3.7.4.tar.gz
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,3 @@ | ||||
| version https://git-lfs.github.com/spec/v1 | ||||
| oid sha256:2ed632b30bb54fc3941c382decfd0ee4148f5c591651c9272473fea2c6397d95 | ||||
| size 36058 | ||||
		Reference in New Issue
	
	Block a user