1
0

Accepting request 517861 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/517861
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-httpretty?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2017-08-22 09:09:14 +00:00 committed by Git OBS Bridge
commit e93d5a6202
4 changed files with 30 additions and 29 deletions

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

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

View File

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

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Aug 15 20:13:58 UTC 2017 - daniel.molkentin@suse.com
- Update to 0.8.14
- Converted to singlespec
- Remove legacy macros
- Ran spec-cleaner
-------------------------------------------------------------------
Sun Mar 13 21:05:33 UTC 2016 - dmueller@suse.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-httpretty
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,28 +16,21 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-httpretty
Version: 0.8.8
Version: 0.8.14
Release: 0
Summary: HTTP client mock for Python
Summary: HTTP client mocking tool for Python, it's like ruby's FakeWeb 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
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()")}
%else
Url: https://github.com/gabrielfalcao/HTTPretty
Source: https://files.pythonhosted.org/packages/source/h/httpretty/httpretty-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
%python_subpackages
%description
This libary allows mocking of http protocol based
@ -47,20 +40,20 @@ unit tests.
%setup -q -n httpretty-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_build
# crazy deps still
%if 0
%check
python setup.py test
%python_exec setup.py test
%endif
%files
%defattr(-,root,root,-)
%doc README.rst COPYING
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc COPYING README.rst
%{python_sitelib}/httpretty
%{python_sitelib}/httpretty*egg-info