14
0

- 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
This commit is contained in:
2024-03-13 10:16:59 +00:00
committed by Git OBS Bridge
parent e8d7b2a5bd
commit 81288eb2bd
4 changed files with 47 additions and 6 deletions

View File

@@ -1,3 +1,44 @@
-------------------------------------------------------------------
Wed Mar 13 10:16:28 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <mcepl@cepl.eu> Tue Nov 21 06:22:09 UTC 2023 - Matej Cepl <mcepl@cepl.eu>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-requests-cache # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-requests-cache Name: python-requests-cache
Version: 1.1.1 Version: 1.2.0
Release: 0 Release: 0
Summary: Persistent cache for requests library Summary: Persistent cache for requests library
License: BSD-2-Clause License: BSD-2-Clause

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c36da550f7c2651cbee7b49f9c252421f2b03d561b91462b82028a5b6426541
size 2927360

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd4cb28e57b25456f348a93185f565d10c90529c619847fe4bbc23dc569fcd4b
size 3057187