2014-11-14 11:28:52 +01:00
|
|
|
#
|
2014-11-17 16:59:46 +01:00
|
|
|
# spec file for package python-requests-toolbelt
|
2014-11-14 11:28:52 +01:00
|
|
|
#
|
2017-01-19 11:11:00 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-11-14 11:28:52 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2014-11-17 16:59:46 +01:00
|
|
|
|
2014-11-14 11:28:52 +01:00
|
|
|
%define short_name requests-toolbelt
|
|
|
|
|
|
|
|
Name: python-requests-toolbelt
|
2017-01-19 11:09:34 +01:00
|
|
|
Version: 0.7.0
|
2014-11-17 16:59:46 +01:00
|
|
|
Release: 0
|
2014-11-14 11:28:52 +01:00
|
|
|
Summary: Utility belt for advanced users of python-requests
|
2014-11-17 16:59:46 +01:00
|
|
|
License: Apache-2.0
|
2014-11-14 11:28:52 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-01-19 11:11:00 +01:00
|
|
|
Url: https://pypi.io/packages/source/r/requests-toolbelt/%{version}
|
2014-11-14 11:28:52 +01:00
|
|
|
Source: %{short_name}-%{version}.tar.gz
|
2014-11-17 16:59:46 +01:00
|
|
|
BuildRequires: python-requests >= 2.0.1
|
2014-11-14 11:28:52 +01:00
|
|
|
BuildRequires: python-setuptools
|
2014-11-17 16:59:46 +01:00
|
|
|
Requires: python-requests >= 2.0.1
|
2014-11-14 11:28:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-07-14 09:44:44 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%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
|
2017-01-19 11:09:34 +01:00
|
|
|
%{python_sitelib}/*
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%changelog
|