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:
committed by
Git OBS Bridge
parent
0553a6adc6
commit
b961c694e3
@@ -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}
|
||||
|
Reference in New Issue
Block a user