14
0

osc copypac from project:home:mcepl:work package:python-typing_extensions revision:3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-typing_extensions?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2018-12-06 11:56:31 +00:00
committed by Git OBS Bridge
parent 98f73ae30a
commit 26d7a8d376
3 changed files with 54 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-typing-extensions
# spec file for package python-typing_extensions
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
@@ -12,7 +12,9 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
%define modname typing_extensions
@@ -20,16 +22,23 @@
Name: python-typing_extensions
Version: 3.6.6
Release: 0
License: Python-2.0
Summary: Backported and Experimental Type Hints for Python 35+
Url: https://github.com/python/typing/
License: Python-2.0
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires: python-rpm-macros
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: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
@@ -49,9 +58,9 @@ the ``typing`` module from PyPi instead of using this one unless
specifically writing code that must be compatible with multiple
Python versions or requires experimental types.
%prep
%setup -q -n %{modname}-%{version}
%autopatch -p1
%build
%python_build
@@ -61,10 +70,13 @@ Python versions or requires experimental types.
%fdupes %{buildroot}%{python3_sitelib}
%check
%python_exec setup.py test
cd src_py3
tar xvf %{SOURCE1}
%__python3 test_typing_extensions.py
%files %{python_files}
%doc LICENSE README.rst
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%changelog