Accepting request 228847 from devel:languages:python

- Drop old tarball

- update to 0.8.0:
  * This new version brings Python 3 support, leaner requirements
- remove deps-cleanup.diff

OBS-URL: https://build.opensuse.org/request/show/228847
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpretty?expand=0&rev=5
This commit is contained in:
Stephan Kulow 2014-04-03 15:14:28 +00:00 committed by Git OBS Bridge
commit 5b2f5ae54b
5 changed files with 28 additions and 22 deletions

View File

@ -1,14 +0,0 @@
diff -ruN a/requirements.txt b/requirements.txt
--- a/requirements.txt 2013-12-12 17:45:55.000000000 +0100
+++ b/requirements.txt 2014-01-17 11:26:48.142281366 +0100
@@ -22,8 +22,8 @@
requests==1.1.0
speakers==0.0.3
steadymark==0.4.5
-tornado==2.4
-tox==1.4.2
+tornado
+tox
virtualenv==1.8.2
Werkzeug==0.9.1
sure==1.2.2

View File

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

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,15 @@
-------------------------------------------------------------------
Mon Feb 17 12:50:39 UTC 2014 - speilicke@suse.com
- Drop old tarball
-------------------------------------------------------------------
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
- remove deps-cleanup.diff
-------------------------------------------------------------------
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,-)