15
0
forked from pool/python-six

Accepting request 458703 from devel:languages:python:singlespec

- update to run tests against python3 as well

- update for multipython build

OBS-URL: https://build.opensuse.org/request/show/458703
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-six?expand=0&rev=46
This commit is contained in:
Jan Matejek
2017-02-17 15:47:03 +00:00
committed by Git OBS Bridge
parent 3f2604065e
commit 3ca5d26bf6
4 changed files with 31 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-six-doc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 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
@@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%1 python3-%1}
Name: python-six-doc
Version: 1.10.0
Release: 0
@@ -25,12 +26,13 @@ License: MIT
Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-six
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module six}
# Documentation requirements:
BuildRequires: python-Sphinx
# Test requirements:
BuildRequires: python-py
BuildRequires: python-pytest
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module py}
BuildRequires: python-rpm-macros
BuildArch: noarch
%description
@@ -56,7 +58,7 @@ cd documentation && make html && rm _build/html/.buildinfo
mkdir test
cp test_six.py test
pushd test
py.test test_six.py
%python_exec %{_bindir}/py.test test_six.py
popd
rm -rf test