From b600ad99f236f2f6ed647fc0581611e62e9bd757b0e97d327ca8ed6e751728a1 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 21 Aug 2017 07:57:56 +0000 Subject: [PATCH] Accepting request 517311 from home:dmolkentin:branches:devel:languages:python - Update to 0.8.14 - Converted to singlespec - Remove legacy macros - Ran spec-cleaner OBS-URL: https://build.opensuse.org/request/show/517311 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=24 --- httpretty-0.8.14.tar.gz | 3 +++ httpretty-0.8.8.tar.gz | 3 --- python-httpretty.changes | 8 +++++++ python-httpretty.spec | 45 +++++++++++++++++----------------------- 4 files changed, 30 insertions(+), 29 deletions(-) create mode 100644 httpretty-0.8.14.tar.gz delete mode 100644 httpretty-0.8.8.tar.gz diff --git a/httpretty-0.8.14.tar.gz b/httpretty-0.8.14.tar.gz new file mode 100644 index 0000000..288e0cf --- /dev/null +++ b/httpretty-0.8.14.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83c176bbac9d68a45a5cca54f2d5be7e6b16a063adf6f334e7fd0eee272e976e +size 43574 diff --git a/httpretty-0.8.8.tar.gz b/httpretty-0.8.8.tar.gz deleted file mode 100644 index 29828ca..0000000 --- a/httpretty-0.8.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19d65fe6f20502d5fee082d83c5c73ccfaba1519b9bbd0efdcb65cffe58e32d6 -size 40886 diff --git a/python-httpretty.changes b/python-httpretty.changes index 1cfdaf5..41591c6 100644 --- a/python-httpretty.changes +++ b/python-httpretty.changes @@ -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 diff --git a/python-httpretty.spec b/python-httpretty.spec index f830980..f7da338 100644 --- a/python-httpretty.spec +++ b/python-httpretty.spec @@ -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