1
0

Accepting request 222550 from Cloud:OpenStack:Master

- update to 0.8.0:
  * This new version brings Python 3 support, leaner requirements

OBS-URL: https://build.opensuse.org/request/show/222550
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=13
This commit is contained in:
Dirk Mueller 2014-02-17 10:09:26 +00:00 committed by Git OBS Bridge
parent 96836dd1ac
commit 2c31a1964e
3 changed files with 22 additions and 5 deletions

3
httpretty-0.8.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5512b38ad3bfb9f7d275c957b4a7eddc69e4b3a749e3b62a984c86fb6ab329b
size 34291

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 17 10:02:32 UTC 2014 - dmueller@suse.com
- update to 0.8.0:
* This new version brings Python 3 support, leaner requirements
-------------------------------------------------------------------
Fri Jan 17 10:22:22 UTC 2014 - speilicke@suse.com

View File

@ -17,17 +17,21 @@
Name: python-httpretty
Version: 0.7.1
Version: 0.8.0
Release: 0
Summary: HTTP client mock for Python
License: MIT
Group: Development/Languages/Python
Url: http://github.com/gabrielfalcao/httpretty
Source: https://pypi.python.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz
# PATCH-FIX-OPENSUSE speilicke@suse.com -- Don't require fixed versions
Patch0: deps-cleanup.diff
BuildRequires: python-devel
BuildRequires: python-setuptools
# Test requirements
#BuildRequires: python-httplib2
#BuildRequires: python-requests
#BuildRequires: python-sure
BuildRequires: python-urllib3
Requires: python-urllib3
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()")}
@ -41,14 +45,18 @@ unit tests.
%prep
%setup -q -n httpretty-%{version}
%patch0 -p1
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}%{python_sitelib}/tests # Remove global "tests" module
# crazy deps still
%if 0
%check
python setup.py test
%endif
%files
%defattr(-,root,root,-)