forked from pool/python-typing_extensions
Accepting request 679992 from home:jayvdb:noflake8
- Replace test_modules.tar.gz with python-testsuite - Remove fix_tests.patch which is half fixing test_modules.tar.gz, and the other half is replaced with a less brittle sed. - Remove unnecessary build dependencies - Update to 3.7.2 OBS-URL: https://build.opensuse.org/request/show/679992 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=4
This commit is contained in:
parent
0553a6adc6
commit
b961c694e3
@ -1,29 +0,0 @@
|
||||
--- a/src_py3/test_typing_extensions.py
|
||||
+++ b/src_py3/test_typing_extensions.py
|
||||
@@ -31,7 +31,7 @@ except ImportError:
|
||||
|
||||
# We assume Python versions *below* 3.5.0 will have the most
|
||||
# up-to-date version of the typing module installed. Since
|
||||
-# the typing module isn't a part of the standard library in older
|
||||
+# the typing module isn't a part of the standard library in older
|
||||
# versions of Python, those users are likely to have a reasonably
|
||||
# modern version of `typing` installed from PyPi.
|
||||
TYPING_LATEST = sys.version_info[:3] < (3, 5, 0)
|
||||
@@ -288,7 +288,7 @@ else:
|
||||
AwaitableWrapper = AsyncIteratorWrapper = ACM = object
|
||||
|
||||
PY36_TESTS = """
|
||||
-from test import ann_module, ann_module2, ann_module3
|
||||
+import ann_module, ann_module2, ann_module3
|
||||
from typing_extensions import AsyncContextManager
|
||||
from typing import NamedTuple
|
||||
|
||||
@@ -1313,7 +1313,7 @@ class AllTests(BaseTestCase):
|
||||
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('python3 -OO {}'.format(file_path),
|
||||
stderr=subprocess.STDOUT,
|
||||
shell=True)
|
||||
except subprocess.CalledProcessError:
|
@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 04:57:58 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Replace test_modules.tar.gz with python-testsuite
|
||||
- Remove fix_tests.patch which is half fixing test_modules.tar.gz,
|
||||
and the other half is replaced with a less brittle sed.
|
||||
- Remove unnecessary build dependencies
|
||||
- Update to 3.7.2
|
||||
* Pass *args and **kwargs to superclass in Generic.__new__
|
||||
* Fix for issue #524
|
||||
* Fix typing_extensions to support PEP 560
|
||||
* Add annotations to NamedTuple children __new__ constructors
|
||||
* Add missing 'NoReturn' to __all__ in typing.py
|
||||
* Backport Generic.__new__ fix
|
||||
* Fix IO.closed to be property
|
||||
* Add Final to typing_extensions
|
||||
* Fix instance/subclass checks of functions against runtime protocols
|
||||
* Add Literal[...] types to typing_extensions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 23 10:24:22 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-typing_extensions
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -20,22 +20,17 @@
|
||||
%define modname typing_extensions
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-typing_extensions
|
||||
Version: 3.6.6
|
||||
Version: 3.7.2
|
||||
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
|
||||
Source1: test_modules.tar.gz
|
||||
Patch0: fix_tests.patch
|
||||
BuildRequires: %{python_module flake8-bugbear}
|
||||
BuildRequires: %{python_module flake8-pyi}
|
||||
BuildRequires: %{python_module flake8}
|
||||
BuildRequires: %{python_module pytest >= 3.0}
|
||||
BuildRequires: %{python_module pytest-cov >= 2.4.0}
|
||||
BuildRequires: %{python_module pytest-xdist >= 1.18}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module testsuite}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@ -60,7 +55,8 @@ Python versions or requires experimental types.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%autopatch -p1
|
||||
# Workaround https://github.com/python/typing/pull/615
|
||||
sed -i 's/python -OO/python3 -OO/' src_py3/test_typing_extensions.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -71,7 +67,6 @@ Python versions or requires experimental types.
|
||||
|
||||
%check
|
||||
cd src_py3
|
||||
tar xvf %{SOURCE1}
|
||||
%__python3 test_typing_extensions.py
|
||||
|
||||
%files %{python_files}
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:197b3c64106db87f9f11522e24307125038bd38b0acd7ad7b3b64c1423d48e03
|
||||
size 17042
|
3
typing_extensions-3.7.2.tar.gz
Normal file
3
typing_extensions-3.7.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fb2cd053238d33a8ec939190f30cfd736c00653a85a2919415cecf7dc3d9da71
|
||||
size 34042
|
Loading…
Reference in New Issue
Block a user