python-requests-toolbelt/python-requests-toolbelt.spec

77 lines
2.9 KiB
RPMSpec

#
# spec file for package python-requests-toolbelt
#
# Copyright (c) 2015 SUSE LINUX Products 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.3.1
Release: 0
Summary: Utility belt for advanced users of python-requests
License: Apache-2.0
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/requests-toolbelt/0.3.1
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
%dir %{python_sitelib}/requests_toolbelt
%dir %{python_sitelib}/requests_toolbelt-*.egg-info
%dir %{python_sitelib}/requests_toolbelt/adapters
%dir %{python_sitelib}/requests_toolbelt/multipart
%{python_sitelib}/requests_toolbelt-*.egg-info/PKG-INFO
%{python_sitelib}/requests_toolbelt-*.egg-info/SOURCES.txt
%{python_sitelib}/requests_toolbelt-*.egg-info/dependency_links.txt
%{python_sitelib}/requests_toolbelt-*.egg-info/requires.txt
%{python_sitelib}/requests_toolbelt-*.egg-info/top_level.txt
%{python_sitelib}/requests_toolbelt/__init__.py*
%{python_sitelib}/requests_toolbelt/adapters/__init__.py*
%{python_sitelib}/requests_toolbelt/adapters/source.py*
%{python_sitelib}/requests_toolbelt/adapters/ssl.py*
%{python_sitelib}/requests_toolbelt/auth.py*
%{python_sitelib}/requests_toolbelt/multipart/__init__.py*
%{python_sitelib}/requests_toolbelt/multipart/decoder.py*
%{python_sitelib}/requests_toolbelt/multipart/encoder.py*
%{python_sitelib}/requests_toolbelt/streaming_iterator.py*
%{python_sitelib}/requests_toolbelt/user_agent.py*
%changelog