# # spec file for package python-requests-toolbelt # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define short_name requests-toolbelt Name: python-requests-toolbelt Version: 0.7.0 Release: 0 Summary: Utility belt for advanced users of python-requests 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} > 1110 BuildArch: noarch %endif %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. %prep %setup -q -n %{short_name}-%{version} %build python setup.py build %install python setup.py install --root %{buildroot} --prefix %{_prefix} %check python setup.py test %files %defattr(-,root,root) %doc AUTHORS.rst HISTORY.rst README.rst LICENSE %{python_sitelib}/* %changelog