diff --git a/CacheControl-0.12.10.tar.gz b/CacheControl-0.12.10.tar.gz new file mode 100644 index 0000000..df2806c --- /dev/null +++ b/CacheControl-0.12.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc8bc1ecc67ac2946b79a6a79da57c8ad510517787afd3db997ca0d432e56e3d +size 39944 diff --git a/CacheControl-0.12.6.tar.gz b/CacheControl-0.12.6.tar.gz deleted file mode 100644 index f4f0014..0000000 --- a/CacheControl-0.12.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2ec120838f445bff473cd8b8206ddae3650679142976927179743fabb876f3e3 -size 38346 diff --git a/python-CacheControl.changes b/python-CacheControl.changes index dafcd1e..f19e092 100644 --- a/python-CacheControl.changes +++ b/python-CacheControl.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Dec 4 21:10:51 UTC 2021 - Ben Greiner + +- Update to v0.12.10 + * Dropped support for Python 2.7, 3.4, 3.5. + * Reduced memory usage when caching large files. + ------------------------------------------------------------------- Wed May 27 09:36:33 UTC 2020 - Petr Gajdos diff --git a/python-CacheControl.spec b/python-CacheControl.spec index 7b05801..b9db56c 100644 --- a/python-CacheControl.spec +++ b/python-CacheControl.spec @@ -1,7 +1,7 @@ # # spec file for package python-CacheControl # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,9 +16,10 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-CacheControl -Version: 0.12.6 +Version: 0.12.10 Release: 0 Summary: Caching library for Python requests License: Apache-2.0 @@ -28,22 +29,21 @@ Source: https://github.com/ionrock/cachecontrol/archive/v%{version}.tar. BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-msgpack +Requires: python-msgpack >= 0.5.2 Requires: python-requests +Provides: python-cachecontrol = %{version}-%{release} Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives Recommends: python-lockfile >= 0.9 Suggests: python-redis >= 2.10.5 BuildArch: noarch # SECTION test requirements -## cherrypy is python3 only from 18.x series -BuildRequires: python3-CherryPy -BuildRequires: python3-lockfile >= 0.9 -BuildRequires: python3-mock -BuildRequires: python3-msgpack -BuildRequires: python3-pytest -BuildRequires: python3-redis >= 2.10.5 -BuildRequires: python3-requests +BuildRequires: %{python_module CherryPy} +BuildRequires: %{python_module lockfile >= 0.9} +BuildRequires: %{python_module msgpack >= 0.5.2} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module redis >= 2.10.5} +BuildRequires: %{python_module requests} # /SECTION %python_subpackages @@ -53,6 +53,7 @@ requests session object. %prep %setup -q -n cachecontrol-%{version} +sed -i -e 's/^from mock/from unittest.mock/' -e 's/^import mock/from unittest import mock/' tests/*.py %build %python_build @@ -64,7 +65,7 @@ requests session object. %check # test_file_cache_recognizes_consumed_file_handle uses httpbin.org directly -PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_bin_suffix} -v -k 'not test_file_cache_recognizes_consumed_file_handle' +%pytest -v -k 'not test_file_cache_recognizes_consumed_file_handle' %post %python_install_alternative doesitcache @@ -76,6 +77,7 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_bin_suffix} -v -k 'n %license LICENSE.txt %doc README.rst %python_alternative %{_bindir}/doesitcache -%{python_sitelib}/* +%{python_sitelib}/cachecontrol +%{python_sitelib}/CacheControl-%{version}*-info %changelog