From eaf11dd8ba66ac39a20ef5f597324435105b75139be804283d420de413eb9dd7 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 31 Jan 2012 14:11:32 +0000 Subject: [PATCH] - Run testsuite OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=12 --- python-pip.changes | 5 +++++ python-pip.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-pip.changes b/python-pip.changes index 7215db1..496b9cd 100644 --- a/python-pip.changes +++ b/python-pip.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 31 14:11:43 UTC 2012 - saschpe@suse.de + +- Run testsuite + ------------------------------------------------------------------- Mon Dec 5 12:31:47 UTC 2011 - saschpe@suse.de diff --git a/python-pip.spec b/python-pip.spec index 89c86a4..2ca9189 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -26,9 +26,10 @@ Source: http://pypi.python.org/packages/source/p/pip/pip-%{version}.tar. BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-distribute +BuildRequires: python-nose Requires: python-distribute %if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif @@ -48,6 +49,9 @@ python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%check +cd tests && nosetests + %files %defattr(-,root,root,-) %doc AUTHORS.txt LICENSE.txt docs/*