commit 3d42a33257643fc8175656caf1d0a32cbc318304a8b3a7249a4242f8dfdae192 Author: Dirk Mueller Date: Sun Nov 10 21:34:33 2024 +0000 - update to 0.14.1: * Drop support for Python 3.8. * Explicitly support Python 3.13. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-CacheControl?expand=0&rev=34 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cachecontrol-0.14.0.tar.gz b/cachecontrol-0.14.0.tar.gz new file mode 100644 index 0000000..e3cdab6 --- /dev/null +++ b/cachecontrol-0.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:159f4341e015d11b16de5b9f86e207cff753d6080642671f4cd09717e34a12a0 +size 43598 diff --git a/cachecontrol-0.14.1.tar.gz b/cachecontrol-0.14.1.tar.gz new file mode 100644 index 0000000..d945ac0 --- /dev/null +++ b/cachecontrol-0.14.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:012e5eb94b9a0b7261572f07675f8f0cb78723e37e4c79ddd5f4e1e6ba413834 +size 43724 diff --git a/python-CacheControl.changes b/python-CacheControl.changes new file mode 100644 index 0000000..75888a7 --- /dev/null +++ b/python-CacheControl.changes @@ -0,0 +1,136 @@ +------------------------------------------------------------------- +Sun Nov 10 21:34:23 UTC 2024 - Dirk Müller + +- update to 0.14.1: + * Drop support for Python 3.8. + * Explicitly support Python 3.13. + +------------------------------------------------------------------- +Sat Feb 3 13:34:32 UTC 2024 - Dirk Müller + +- update to 0.14.0: + * Explicitly allow pathlib.Path as a type for + FileCache.directory. + * Drop support for Python 3.7. Python 3.8 is now the minimum + version. + * Don't use the cache to return a full response if a request + has a Range header. + +------------------------------------------------------------------- +Fri Dec 29 11:48:07 UTC 2023 - Antonio Larrosa + +- Remove BuildRequires and Suggests python-redis since it's not + really used when building and there's no reason to suggest it + unless someone wants to explicitly use redis, this simplifies + the dependencies which is useful for SLE. + +------------------------------------------------------------------- +Mon Jun 19 12:38:35 UTC 2023 - Torsten Gruner + +- Update to v0.13.1 + * Support for old serialization formats has been removed. + * Move the serialization implementation into own method. + * Drop support for Python older than 3.7. +- version 0.13.0 + * YANKED + * The project has been moved to the PSF organization. + * Discard the strict attribute when serializing and deserializing responses. + * Fix the IncompleteRead error thrown by urllib3 2.0. + * Remove usage of utcnow in favor of timezone-aware datetimes. + * Remove the compat module. + * Use Python's unittest.mock library instead of mock. + * Add type annotations. + * Exclude the tests directory from the wheel. +- version 0.12.14 + * Revert the change "switch lockfile to filelock" to fix the compatibility issue. +- version 0.12.13 + * Discard the strict attribute when serializing and deserializing responses. + * Fix the IncompleteRead error thrown by urllib3 2.0. + * Exclude the tests directory from the wheel. +- Remove requests-fix.patch (obsolete) + +------------------------------------------------------------------- +Tue May 30 07:53:24 UTC 2023 - Daniel Garcia + +- Add requests-fix.patch to support latest version of urllib3 and + requests + gh#ionrock/cachecontrol#301, gh#ionrock/cachecontrol#304 + +------------------------------------------------------------------- +Mon May 8 06:37:48 UTC 2023 - Johannes Kastl + +- add sle15_python_module_pythons + +------------------------------------------------------------------- +Tue Aug 2 10:26:39 UTC 2022 - Otto Hollmann + +- Update to v0.12.11 + * Added new variant of FileCache, SeparateBodyFileCache, which uses + less memory by storing the body in a separate file than metadata, + and streaming data in and out directly to/from that file. + +------------------------------------------------------------------- +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 + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Thu Jan 2 11:57:41 UTC 2020 - John Vandenberg + +- Drop merged pytest4.patch +- Add explanation of one test failure +- Remove mention of httplib2 from package summary +- Update to v0.12.6 + * Test if cache is None before falling back to DictCache + * Fixed body in 304 response to etag request + * Added check for "*" value in Vary header + * Make v4 cache compatible with msgpack 1.0 in the future + +------------------------------------------------------------------- +Fri Nov 1 09:31:12 UTC 2019 - Tomáš Chvátal + +- Add patch to work with new pytest: + * pytest4.patch + +------------------------------------------------------------------- +Wed Sep 18 09:15:22 UTC 2019 - Tomáš Chvátal + +- Restrict pytest to 3.x as newer released do not work with + this package + +------------------------------------------------------------------- +Fri Apr 5 07:14:44 UTC 2019 - Tomáš Chvátal + +- Run tests only under py3 as CherryPy is available only there + +------------------------------------------------------------------- +Mon Mar 25 09:46:31 UTC 2019 - John Vandenberg + +- Activate test suite, with two tests currently failing +- Trim description, removing irrelevant information about httplib2 +- Recommend lockfile, as a lightweight dependency needed for FileCache, + which is a primary use of CacheControl. + +------------------------------------------------------------------- +Thu Feb 28 09:10:36 UTC 2019 - Tomáš Chvátal + +- Update to 0.12.5: + * various test fixes + * few crasher fixes + +------------------------------------------------------------------- +Tue Dec 4 12:46:22 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Mar 23 15:11:34 UTC 2018 - tbechtold@suse.com + +- Initial packaging (version 0.12.4) diff --git a/python-CacheControl.spec b/python-CacheControl.spec new file mode 100644 index 0000000..3921ad6 --- /dev/null +++ b/python-CacheControl.spec @@ -0,0 +1,86 @@ +# +# spec file for package python-CacheControl +# +# Copyright (c) 2024 SUSE LLC +# +# 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-CacheControl +Version: 0.14.1 +Release: 0 +Summary: Caching library for Python requests +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/psf/cachecontrol +Source: https://github.com/psf/cachecontrol/archive/v%{version}.tar.gz#/cachecontrol-%{version}.tar.gz +BuildRequires: %{python_module flit-core >= 3.2} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-msgpack >= 0.5.2 +Requires: python-requests >= 2.16.0 +Provides: python-cachecontrol = %{version}-%{release} +Requires(post): update-alternatives +Requires(postun): update-alternatives +Recommends: python-filelock >= 3.8.0 +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module CherryPy} +BuildRequires: %{python_module filelock >= 3.8.0} +BuildRequires: %{python_module msgpack >= 0.5.2} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.16.0} +# /SECTION +%python_subpackages + +%description +CacheControl is a port of the caching algorithms in httplib2 for use with +requests session object. + +%prep +%autosetup -p1 -n cachecontrol-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install + +# do not pack tests +%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests + +%python_clone -a %{buildroot}%{_bindir}/doesitcache +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_file_cache_recognizes_consumed_file_handle uses httpbin.org directly +%pytest -v -k 'not test_file_cache_recognizes_consumed_file_handle' + +%post +%python_install_alternative doesitcache + +%postun +%python_uninstall_alternative doesitcache + +%files %{python_files} +%license LICENSE.txt +%doc README.rst +%python_alternative %{_bindir}/doesitcache +%{python_sitelib}/cachecontrol +%{python_sitelib}/cachecontrol-%{version}*-info + +%changelog