Dirk Mueller
7838fbfd74
- Fix import of pyOpenSSL shim from urllib3 for PKCS12 adapter - Add X509 Adapter that can handle PKCS12 - Add stateless solution for streaming files by MultipartEncoder from one host to another (in chunks) - Update link to example - Move import of ``ABCs`` from collections into version-specific part of _compat module - Fix backwards incompatibility in ``get_encodings_from_content`` - Correct callback documentation for ``MultipartEncoderMonitor`` - Fix bug when ``MultipartEncoder`` is asked to encode zero parts - Correct the type of non string request body dumps - Removed content from being stored in MultipartDecoder - Fix bug by enabling support for contenttype with capital letters. - Coerce proxy URL to bytes before dumping request - Avoid bailing out with exception upon empty response reason - Corrected Pool documentation - Corrected parentheses match in example usage - Fix "oject" to "object" in ``MultipartEncoder`` - Fix URL for the project after the move - Add fix for OSX TCPKeepAliveAdapter OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-toolbelt?expand=0&rev=12
68 lines
2.3 KiB
RPMSpec
68 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-requests-toolbelt
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-requests-toolbelt
|
|
Version: 0.9.1
|
|
Release: 0
|
|
Summary: A utility belt for advanced users of python3-requests
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
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
|
|
BuildRequires: %{python_module betamax}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-requests >= 2.0.1
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
%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.
|
|
|
|
%prep
|
|
%setup -q -n requests-toolbelt-%{version}
|
|
rm -rf requests_toolbelt.egg-info
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%python_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS.rst HISTORY.rst LICENSE README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|