14
0

- Don't install testsuite globally

- Run testsuite
- Fix requirement list
- Recommend python-requests for the requests-based backend
  (don't recommend httplib2, it isn't any better than the stdlib
   module 'httplib' due to it's SSL insufficencies)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wsgi_intercept?expand=0&rev=8
This commit is contained in:
Sascha Peilicke
2014-01-17 15:49:16 +00:00
committed by Git OBS Bridge
parent 1ecb786cc5
commit f7cc06f990
2 changed files with 18 additions and 10 deletions

View File

@@ -27,14 +27,11 @@ Source: http://pypi.python.org/packages/source/w/wsgi_intercept/wsgi_int
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements:
BuildRequires: python-Paste
BuildRequires: python-WebTest
BuildRequires: python-httplib2
#BuildRequires: python-mechanize
#BuildRequires: python-mechanoid
BuildRequires: python-nose
#BuildRequires: python-webunit
#BuildRequires: python-zope.testbrowser
BuildRequires: python-pytest >= 2.4
BuildRequires: python-requests
Recommends: python-requests
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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()")}
@@ -57,13 +54,14 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitelib}/test
#NOTE(saschpe): Fix broken tests
#%%check
#python setup.py test
%check
nosetests
%files
%defattr(-,root,root,-)
%{python_sitelib}/*
%{python_sitelib}/wsgi_intercept-0.6.0-py2.7.egg-info
%{python_sitelib}/wsgi_intercept
%changelog