From 44fedeb0f8990554d82cb4b18cec88a8e38b1569d758ff306746b70a22ad46f8 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 16 May 2017 16:05:09 +0000 Subject: [PATCH 1/2] - convert to singlespec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-toolbelt?expand=0&rev=7 --- python-requests-toolbelt.changes | 5 +++++ python-requests-toolbelt.spec | 22 ++++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/python-requests-toolbelt.changes b/python-requests-toolbelt.changes index d9f331a..eb8e84d 100644 --- a/python-requests-toolbelt.changes +++ b/python-requests-toolbelt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 16 16:04:50 UTC 2017 - dmueller@suse.com + +- convert to singlespec + ------------------------------------------------------------------- Thu Jan 19 10:10:48 UTC 2017 - dmueller@suse.com diff --git a/python-requests-toolbelt.spec b/python-requests-toolbelt.spec index 9cba325..71965cf 100644 --- a/python-requests-toolbelt.spec +++ b/python-requests-toolbelt.spec @@ -26,13 +26,15 @@ License: Apache-2.0 Group: Development/Languages/Python Url: https://pypi.io/packages/source/r/requests-toolbelt/%{version} Source: %{short_name}-%{version}.tar.gz -BuildRequires: python-requests >= 2.0.1 -BuildRequires: python-setuptools -Requires: python-requests >= 2.0.1 +BuildRequires: %{python_module betamax} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +Requires: %{python_module requests} BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} > 1110 -BuildArch: noarch -%endif +%python_subpackages %description This is just a collection of utilities for python-requests, but don't really belong in requests proper. The minimum tested requests version is 2.1.0. In reality, the toolbelt should work with 2.0.1 as well, but some idiosyncracies prevent effective or sane testing on that version. @@ -41,15 +43,15 @@ This is just a collection of utilities for python-requests, but don't really bel %setup -q -n %{short_name}-%{version} %build -python setup.py build +%python_build %install -python setup.py install --root %{buildroot} --prefix %{_prefix} +%python_install %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root) %doc AUTHORS.rst HISTORY.rst README.rst LICENSE %{python_sitelib}/* From e0004aa32b6c7859e154a1e79ce4f825675d491e23b2d14a66cea986eebb3b54 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 16 May 2017 16:06:21 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-toolbelt?expand=0&rev=8 --- python-requests-toolbelt.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/python-requests-toolbelt.spec b/python-requests-toolbelt.spec index 71965cf..70bc8c0 100644 --- a/python-requests-toolbelt.spec +++ b/python-requests-toolbelt.spec @@ -18,6 +18,7 @@ %define short_name requests-toolbelt +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-requests-toolbelt Version: 0.7.0 Release: 0