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
|
|
|
#
|
2019-04-25 21:58:22 +02:00
|
|
|
# Copyright (c) 2019 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.
|
|
|
|
|
2019-04-25 21:58:22 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-14 11:28:52 +01:00
|
|
|
#
|
|
|
|
|
2014-11-17 16:59:46 +01:00
|
|
|
|
2017-05-16 18:06:21 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-11-14 11:28:52 +01:00
|
|
|
Name: python-requests-toolbelt
|
2019-04-25 21:58:22 +02:00
|
|
|
Version: 0.9.1
|
2014-11-17 16:59:46 +01:00
|
|
|
Release: 0
|
2017-07-04 08:32:47 +02:00
|
|
|
Summary: A utility belt for advanced users of python3-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-07-04 08:32:47 +02:00
|
|
|
Url: https://toolbelt.readthedocs.org
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/requests-toolbelt/requests-toolbelt-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module requests >= 2.0.1}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
# SECTION test requirements
|
2017-05-16 18:05:09 +02:00
|
|
|
BuildRequires: %{python_module betamax}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-07-04 08:32:47 +02:00
|
|
|
# /SECTION
|
|
|
|
BuildRequires: fdupes
|
2017-05-16 18:05:09 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-07-04 08:32:47 +02:00
|
|
|
Requires: python-requests >= 2.0.1
|
2014-11-14 11:28:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-07-04 08:32:47 +02:00
|
|
|
BuildArch: noarch
|
2017-05-16 18:05:09 +02:00
|
|
|
%python_subpackages
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%description
|
2017-07-04 08:32:47 +02:00
|
|
|
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.
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%prep
|
2017-07-04 08:32:47 +02:00
|
|
|
%setup -q -n requests-toolbelt-%{version}
|
|
|
|
rm -rf requests_toolbelt.egg-info
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%build
|
2017-05-16 18:05:09 +02:00
|
|
|
%python_build
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%install
|
2017-05-16 18:05:09 +02:00
|
|
|
%python_install
|
2017-07-04 08:32:47 +02:00
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%check
|
2017-05-16 18:05:09 +02:00
|
|
|
%python_exec setup.py test
|
2014-11-14 11:28:52 +01:00
|
|
|
|
2017-05-16 18:05:09 +02:00
|
|
|
%files %{python_files}
|
2017-07-04 08:32:47 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS.rst HISTORY.rst LICENSE README.rst
|
2017-01-19 11:09:34 +01:00
|
|
|
%{python_sitelib}/*
|
2014-11-14 11:28:52 +01:00
|
|
|
|
|
|
|
%changelog
|