From 81288eb2bd996e2ed4263b602841a258c90b38ef2cdd5f70b8eda5324d043964 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 13 Mar 2024 10:16:59 +0000 Subject: [PATCH] - update to 1.2.0: * Drop support for python 3.7 * Remove methods deprecated in 1.0 from `CachedSession` and `BaseCache` * Add support for `X-HTTP-Method-Override` and other headers that can override request method * Add `CachedSession.wrap()` classmethod to add caching to an existing `requests.Session` object * Add `vacuum` parameter to `SQLiteCache.delete()` to optionally skip vacuuming after deletion (enabled by default to free up disk space) * Optimize `SQLiteCache.delete()` when deleting a single key * Add support for RFC 7159 JSON body with `decode_content=True` (root element with any type) * Use timezone-aware UTC datetimes for all internal expiration values * Add support for python 3.12 * Note: There is a known bug with multiprocess/multithreaded usage of the SQLite backend on python 3.12. * Add support for cattrs 23.2 * Fix `IncompleteRead` error that could sometimes occur with streaming requests due to mismatch with `Content-Length` header * Handle a corner case with streaming requests, conditional requests, and redirects * When redacting ignored parameters from a cached response, keep the rest of the original URL and headers without normalizing * Add `CachedHTTPResponse._request_url` property for compatibility with urllib3 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-cache?expand=0&rev=20 --- python-requests-cache.changes | 43 ++++++++++++++++++++++++++++++++++- python-requests-cache.spec | 4 ++-- requests-cache-1.1.1.tar.gz | 3 --- requests-cache-1.2.0.tar.gz | 3 +++ 4 files changed, 47 insertions(+), 6 deletions(-) delete mode 100644 requests-cache-1.1.1.tar.gz create mode 100644 requests-cache-1.2.0.tar.gz diff --git a/python-requests-cache.changes b/python-requests-cache.changes index 0e6bb71..97c0a7d 100644 --- a/python-requests-cache.changes +++ b/python-requests-cache.changes @@ -1,3 +1,44 @@ +------------------------------------------------------------------- +Wed Mar 13 10:16:28 UTC 2024 - Dirk Müller + +- update to 1.2.0: + * Drop support for python 3.7 + * Remove methods deprecated in 1.0 from `CachedSession` and + `BaseCache` + * Add support for `X-HTTP-Method-Override` and other headers + that can override request method + * Add `CachedSession.wrap()` classmethod to add caching to an + existing `requests.Session` object + * Add `vacuum` parameter to `SQLiteCache.delete()` to + optionally skip vacuuming after deletion (enabled by default + to free up disk space) + * Optimize `SQLiteCache.delete()` when deleting a single key + * Add support for RFC 7159 JSON body with `decode_content=True` + (root element with any type) + * Use timezone-aware UTC datetimes for all internal expiration + values + * Add support for python 3.12 + * Note: There is a known bug with multiprocess/multithreaded + usage of the SQLite backend on python 3.12. + * Add support for cattrs 23.2 + * Fix `IncompleteRead` error that could sometimes occur with + streaming requests due to mismatch with `Content-Length` + header + * Handle a corner case with streaming requests, conditional + requests, and redirects + * When redacting ignored parameters from a cached response, + keep the rest of the original URL and headers without + normalizing + * Add `CachedHTTPResponse._request_url` property for + compatibility with urllib3 + * Fix form boundary used for cached multipart requests to + comply with RFC 2046 + * If an explicit CA bundle path is passed via `verify` param, + cache the response under the same key as `verify=True` + * Handle JSON Content-Type charsets and MIME type variations + (such as `application/vnd.api+json`) during request + normalization and serialization + ------------------------------------------------------------------- Tue Nov 21 06:22:09 UTC 2023 - Matej Cepl @@ -115,5 +156,5 @@ Tue Dec 4 12:53:42 UTC 2018 - Matej Cepl ------------------------------------------------------------------- Tue Mar 28 17:27:40 UTC 2017 - alarrosa@suse.com -- Initial release +- Initial release diff --git a/python-requests-cache.spec b/python-requests-cache.spec index 2249c21..290d2d2 100644 --- a/python-requests-cache.spec +++ b/python-requests-cache.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-cache # -# Copyright (c) 2023 SUSE LLC +# 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 @@ -17,7 +17,7 @@ Name: python-requests-cache -Version: 1.1.1 +Version: 1.2.0 Release: 0 Summary: Persistent cache for requests library License: BSD-2-Clause diff --git a/requests-cache-1.1.1.tar.gz b/requests-cache-1.1.1.tar.gz deleted file mode 100644 index bd4a4ae..0000000 --- a/requests-cache-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8c36da550f7c2651cbee7b49f9c252421f2b03d561b91462b82028a5b6426541 -size 2927360 diff --git a/requests-cache-1.2.0.tar.gz b/requests-cache-1.2.0.tar.gz new file mode 100644 index 0000000..94128f4 --- /dev/null +++ b/requests-cache-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd4cb28e57b25456f348a93185f565d10c90529c619847fe4bbc23dc569fcd4b +size 3057187