Accepting request 205011 from devel:languages:python

- Don't install global "tests" module into python_sitelib

- update to 0.7.0:
  * Refactored core.py and increased its unit test coverage to 80%. 
  HTTPretty is slightly more robust now

OBS-URL: https://build.opensuse.org/request/show/205011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpretty?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2013-10-29 10:04:12 +00:00 committed by Git OBS Bridge
commit 8312233b31
5 changed files with 32 additions and 4 deletions

13
deps-cleanup.diff Normal file
View File

@ -0,0 +1,13 @@
--- requirements.pip
+++ requirements.pip
@@ -7,6 +7,6 @@
requests==1.1.0
steadymark==0.4.5
sure>=1.2.1
-tornado==2.4
-tox==1.4.2
-urllib3
\ No newline at end of file
+tornado
+tox
+urllib3

View File

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

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

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

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Oct 28 13:09:26 UTC 2013 - speilicke@suse.com
- Don't install global "tests" module into python_sitelib
-------------------------------------------------------------------
Mon Oct 21 12:22:31 UTC 2013 - dmueller@suse.com
- update to 0.7.0:
* Refactored core.py and increased its unit test coverage to 80%.
HTTPretty is slightly more robust now
-------------------------------------------------------------------
Thu Sep 26 13:30:37 UTC 2013 - dmueller@suse.com

View File

@ -17,13 +17,14 @@
Name: python-httpretty
Version: 0.6.4
Version: 0.7.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
Patch0: deps-cleanup.diff
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -39,12 +40,14 @@ unit tests.
%prep
%setup -q -n httpretty-%{version}
%patch0
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -r %{buildroot}%{python_sitelib}/tests # Remove global "tests" module
%files
%defattr(-,root,root,-)