%global srcname requests-toolbelt %global altname requests_toolbelt Name: python-%{srcname} Version: 0.9.1 Release: 16%{?dist} Summary: Utility belt for advanced users of python-requests License: ASL 2.0 URL: https://toolbelt.readthedocs.io Source0: https://github.com/sigmavirus24/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz # present in upstream master but not in a stable release yet Patch0: python-requests-toolbelt-fix-unhandled-exception-from-tests.patch # upstream PR 261, currently the upstream tests are broken as some network # resources vanished Patch1: python-requests-toolbelt-pass-session-into-tests.patch BuildArch: noarch %global _description \ This is just a collection of utilities for python-requests, but don’t really\ belong in requests proper. %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %{?python_provide:%python_provide python3-%{altname}} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-betamax BuildRequires: python3-mock BuildRequires: python3-pyOpenSSL BuildRequires: python3-pytest BuildRequires: python3-requests Requires: python3-requests %description -n python3-%{srcname} %{_description} Python 3 version. %prep %autosetup -p1 -n toolbelt-%{version} %build %py3_build %install %py3_install %check # Some tests are disabled due to compatibility issues with Python 3.10, once it is fixed it # can be enabled again. # Downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1926358 py.test-%{python3_version} -v --ignore=tests/test_x509_adapter.py -k "not test_stream_response_to_specific_filename and not test_stream_response_to_directory and not test_stream_response_to_existing_file and not test_stream_response_to_file_like_object and not test_stream_response_to_file_chunksize" %files -n python3-%{srcname} %license LICENSE %doc README.rst HISTORY.rst %{python3_sitelib}/%{altname}/ %{python3_sitelib}/%{altname}-*.egg-info/ %changelog * Mon Oct 25 2021 Kaleb S. KEITHLEY - 0.9.1-16 - Rebuild from lookaside * Fri Jul 23 2021 Fedora Release Engineering - 0.9.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.9.1-14 - Rebuilt for Python 3.10 * Sat May 15 2021 Parag Nemade - 0.9.1-13 - Disable some tests for Python 3.10 bootstrap process * Wed Jan 27 2021 Fedora Release Engineering - 0.9.1-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Oct 18 2020 Parag Nemade - 0.9.1-11 - Ignore failing tests (rh#1863713) * Sat Aug 01 2020 Fedora Release Engineering - 0.9.1-10 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.9.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon May 25 2020 Miro Hrončok - 0.9.1-8 - Rebuilt for Python 3.9 * Sat Apr 11 2020 Felix Schwarz - 0.9.1-7 - run test suite in %%check * Thu Jan 30 2020 Fedora Release Engineering - 0.9.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.9.1-5 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.9.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Apr 04 2019 Parag Nemade - 0.9.1-2 - Remove python2 subpackage (#1696338) * Thu Jan 31 2019 Parag Nemade - 0.9.1-1 - Update to 0.9.1 version (#1670521) * Sat Jul 14 2018 Fedora Release Engineering - 0.8.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.8.0-4 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.8.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun May 21 2017 Parag Nemade - 0.8.0-1 - Update to 0.8.0 version * Mon Mar 20 2017 Parag Nemade - 0.7.1-1 - Update to 0.7.1 version * Sat Feb 11 2017 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.7.0-2 - Rebuild for Python 3.6 * Sun Jul 24 2016 Igor Gnatenko - 0.7.0-1 - Update to 0.7.0 (RHBZ #1359456) * Tue Jul 19 2016 Fedora Release Engineering - 0.6.2-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Jun 29 2016 Igor Gnatenko - 0.6.2-1 - Update to 0.6.2 - Add proper python2 subpackage - Run tests properly - Other fixes * Mon May 09 2016 Parag Nemade - 0.6.1-1 - update to 0.6.1 release * Thu Feb 04 2016 Fedora Release Engineering - 0.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jan 28 2016 Parag Nemade - 0.6.0-1 - update to 0.6.0 release * Mon Dec 21 2015 Parag Nemade - 0.5.1-1 - update to 0.5.1 release * Thu Nov 26 2015 Parag Nemade - 0.5.0-1 - update to 0.5.0 release * Tue Nov 10 2015 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Apr 06 2015 Parag Nemade - 0.4.0-1 - update to 0.4.0 release * Fri Feb 13 2015 Parag Nemade - 0.3.1-2 - Add missing LICENSE file * Mon Feb 02 2015 Parag Nemade - 0.3.1-1 - Initial packaging