14
0

Accepting request 214252 from devel:languages:python

- 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)

- remove excessive buildrequires that are not used due to
  tests being commented out

OBS-URL: https://build.opensuse.org/request/show/214252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-wsgi_intercept?expand=0&rev=5
This commit is contained in:
Stephan Kulow
2014-01-20 06:55:50 +00:00
committed by Git OBS Bridge
2 changed files with 25 additions and 11 deletions

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Fri Jan 17 15:47:55 UTC 2014 - speilicke@suse.com
- 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)
-------------------------------------------------------------------
Fri Jan 17 10:09:12 UTC 2014 - dmueller@suse.com
- remove excessive buildrequires that are not used due to
tests being commented out
-------------------------------------------------------------------
Fri Nov 15 19:59:53 UTC 2013 - p.drouand@gmail.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-wsgi_intercept
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -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-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/wsgi_intercept
%changelog