Accepting request 319400 from home:TheBlackCat:branches:devel:languages:python

Make tests conditional to avoid dependency loop.

OBS-URL: https://build.opensuse.org/request/show/319400
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-six?expand=0&rev=36
This commit is contained in:
Todd R 2015-07-29 13:06:12 +00:00 committed by Git OBS Bridge
parent 67eeb13a64
commit 277dadddc6
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 29 13:01:56 UTC 2015 - toddrme2178@gmail.com
- Make tests conditional to avoid dependency loop.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 16 10:41:33 UTC 2015 - hpj@urpla.net Thu Apr 16 10:41:33 UTC 2015 - hpj@urpla.net

View File

@ -15,6 +15,9 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# NOTE(saschpe): git invocation and pythonpath issues with testrepository
# enable testing with a build conditional (off by default):
%bcond_with test
Name: python-six Name: python-six
Version: 1.9.0 Version: 1.9.0
@ -26,9 +29,11 @@ Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel BuildRequires: python-devel
%if %{with test}
# Test requirements: # Test requirements:
BuildRequires: python-py BuildRequires: python-py
BuildRequires: python-pytest BuildRequires: python-pytest
%endif
%if 0%{?suse_version} <= 1110 %if 0%{?suse_version} <= 1110
BuildRequires: python-argparse BuildRequires: python-argparse
Requires: python-argparse Requires: python-argparse
@ -56,8 +61,10 @@ python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if %{with test}
%check %check
python test_six.py python test_six.py
%endif
%files %files
%defattr(-,root,root) %defattr(-,root,root)