%global pypi_name CacheControl %global pypi_name_lower cachecontrol %{?python_enable_dependency_generator} %global common_description %{expand: CacheControl is a port of the caching algorithms in httplib2 for use with requests session object. It was written because httplib2's better support for caching is often mitigated by its lack of thread safety. The same is true of requests in terms of caching.} Name: python-%{pypi_name} Summary: httplib2 caching for requests Version: 0.13.1 Release: 1%{?dist} License: MIT URL: https://github.com/ionrock/cachecontrol Source0: %{url}/archive/v%{version}/%{pypi_name_lower}-%{version}.tar.gz BuildArch: noarch %description %{common_description} %package -n python3-%{pypi_name} Summary: httplib2 caching for requests %{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros # optional dependencies %{?python_extras_subpkg:Recommends: python3-%{pypi_name}+filecache} %{!?python_extras_subpkg:Recommends: python3dist(filelock) >= 3.8.0} %{?python_extras_subpkg:Recommends: python3-%{pypi_name}+redis} %{!?python_extras_subpkg:Recommends: python3dist(redis) >= 2.10.5} %description -n python3-%{pypi_name} %{common_description} %{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypi_name} -i %{python3_sitelib}/%{pypi_name_lower}-%{version}.dist-info filecache redis} %prep %autosetup -n %{pypi_name_lower}-%{version} -p1 # the linter dependency is unwanted in Fedora sed -i '/types-redis/d' pyproject.toml %generate_buildrequires %pyproject_buildrequires -x dev %build %pyproject_wheel %install %pyproject_install %pyproject_save_files cachecontrol %check # skip a test requiring internet access %{__python3} -m pytest -v tests -k "not test_file_cache_recognizes_consumed_file_handle" %files -n python3-%{pypi_name} -f %{pyproject_files} %doc README.rst %license LICENSE.txt %{_bindir}/doesitcache %changelog * Mon Sep 04 2023 Tomáš Hrnčiar - 0.13.1-1 - Update to 0.13.1 * Tue Jun 06 2023 Ryan Erickson - 0.13.0-1 - Rebase to 0.13.0 * Tue Jun 06 2023 Ryan Erickson - 0.12.14-1 - Rebase to 0.12.14 * Mon Jun 05 2023 Ryan Erickson - 0.12.13-1 - Rebase to 0.12.13 * Fri Jul 21 2023 Fedora Release Engineering - 0.12.11-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jul 01 2023 Python Maint - 0.12.11-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.12.11-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.12.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 0.12.11-2 - Rebuilt for Python 3.11 * Mon May 09 2022 Tomáš Hrnčiar - 0.12.11-1 - Update to 0.12.11 - Fixes: rhbz#2077079 * Fri Jan 21 2022 Fedora Release Engineering - 0.12.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 13 2021 Tomáš Hrnčiar - 0.12.10-1 - Update to 0.12.10 * Fri Jul 23 2021 Fedora Release Engineering - 0.12.6-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.12.6-8 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.12.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.12.6-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Miro Hrončok - 0.12.6-5 - Add cachecontrol[filecache] and cachecontrol[redis] subpackages * Fri Jun 05 2020 Miro Hrončok - 0.12.6-4 - Rebuilt with cherrypy tests * Tue May 26 2020 Miro Hrončok - 0.12.6-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.12.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Dec 22 2019 Fabio Valentini - 0.12.6-1 - Update to version 0.12.6. * Fri Dec 13 2019 Fabio Valentini - 0.12.5-7 - Recommend optional dependencies. * Thu Oct 03 2019 Miro Hrončok - 0.12.5-6 - Rebuilt for Python 3.8.0rc1 (#1748018) * Tue Aug 20 2019 Fabio Valentini - 0.12.5-5 - Port to pytest >=4.0. * Mon Aug 19 2019 Miro Hrončok - 0.12.5-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.12.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.12.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Aug 16 2018 Miro Hrončok - 0.12.5-1 - Update to 0.12.5 - Remove python2 subpackage * Fri Jul 13 2018 Fedora Release Engineering - 0.12.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.12.3-5 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.12.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 15 2018 Iryna Shcherbina - 0.12.3-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Wed Sep 13 2017 Iryna Shcherbina - 0.10.0-2 - Fix Python 2 dependency from python3-CacheControl (rhbz#1490893) * Wed Aug 23 2017 Tomas Krizek - 0.12.3-1 - Update to 0.12.3 * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.11.5-8 - Python 2 binary package renamed to python2-cachecontrol See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.11.5-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.11.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.11.5-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.11.5-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.11.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Nov 10 2015 Fedora Release Engineering - 0.11.5-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Jun 19 2015 Slavek Kabrda - 0.11.5-1 - Update to 0.11.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Jun 04 2014 Bohuslav Kabrda - 0.10.1-1 - Initial package.