We are pumped to announce the release of: oslo.cache 4.0.0 This release is part of the gazpacho release series. The source is available from: https://opendev.org/openstack/oslo.cache Download the package from: https://pypi.org/project/oslo.cache Please report issues through: https://bugs.launchpad.net/oslo.cache/+bugs For more details, please see below. 4.0.0 ^^^^^ Upgrade Notes ************* * The "oslo_cache.mongo" backend has been removed. This was found to be incompatible with pymongo 3.x or later, which was first released in 2015. * Support for Python 3.9 has been removed. Now the minimum python version supported is 3.10. Deprecation Notes ***************** * The following functionas of the "oslo_cache.core" module are deprecated. Use the same functions from "dogpile.cache.util" module instead. * "function_key_generator" * "kwarg_function_key_generator" * The "[cache] hashclient_retry_delay" option has been deprecated in favor of the new "[cache] hashclient_retry_timeout" option. * The "[cache] dead_timeout" option has been deprecated in favor of the new "[cache] hashclient_dead_timeout" option. Bug Fixes ********* * Fixed the following ignored options. * "[cache] hashclient_retry_delay" * "[cache] dead_timeout" Changes in oslo.cache 3.12.0..4.0.0 ----------------------------------- 3182ccc Rename hashclient option to reflect actual argument names e88f52e Fix ignored hashclient options e4bdd20 Add missing py.typed file 2946773 ruff: Use more specific name to enable pyupgrade rule 9152e8d Improve usage guide be295ae reno: Update master for unmaintained/2024.1 dc4cd27 Deprecate redundant utility methods f2d87fd Update hints for latest dogpile.cache 41bcd96 Drop redundant _key_generate_to_str 2b69364 Add mypy 34fad6c Add typing db9fd19 Remove unused logging arguments 4f129ab Use super() with queue.Queue c802a33 Remove use of debtcollector bfe0dbb Simplify stringify f75d125 Use ruff e3b8123 Remove mongodb backend 37e8b5b Bump pyupgrade target to 3.10+ 6a164c7 fix typo 92798f2 pre-commit: Bump dependencies 25cbdf1 Migrate setup configuration to pyproject.toml cb30aa2 Drop Python 3.9 support 826d7c3 Update master for stable/2025.2 Diffstat (except docs and test files) ------------------------------------- .pre-commit-config.yaml | 34 +- oslo_cache/__init__.py | 9 +- oslo_cache/_bmemcache_pool.py | 41 +- oslo_cache/_memcache_pool.py | 149 +-- oslo_cache/_opts.py | 566 ++++++----- oslo_cache/backends/dictionary.py | 31 +- oslo_cache/backends/etcd3gw.py | 33 +- oslo_cache/backends/memcache_pool.py | 45 +- oslo_cache/backends/mongo.py | 576 ----------- oslo_cache/core.py | 396 +++++--- oslo_cache/py.typed | 0 oslo_cache/testing.py | 16 +- .../dogpile_cache_pymemcache/test_cache_backend.py | 2 +- .../test_cache_backend.py | 2 +- .../functional/memcache_pool/test_cache_backend.py | 4 +- pyproject.toml | 105 ++ .../deprecate-key-generator-835ee373d3bf6851.yaml | 8 + .../fix-hashclient-opt-names-47b091d1e7148696.yaml | 9 + ...gnored-hashclient-options-9b6bb1871294a9af.yaml | 7 + .../remove-mongodb-backend-f539ec21d2a32848.yaml | 5 + .../notes/remove-py39-7482eb74fcd78249.yaml | 5 + releasenotes/source/2024.1.rst | 2 +- releasenotes/source/2025.2.rst | 6 + releasenotes/source/conf.py | 36 +- releasenotes/source/index.rst | 1 + requirements.txt | 1 - setup.cfg | 45 - setup.py | 4 +- test-requirements.txt | 1 - tox.ini | 32 +- 39 files changed, 1765 insertions(+), 2391 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 122d81f..c3e0e0e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10 +9,0 @@ oslo.utils>=4.2.0 # Apache-2.0 -debtcollector>=3.0.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index 66e83a5..7e4504e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -7 +6,0 @@ python-memcached>=1.56 # PSF -pymongo>=3.0.2 # Apache-2.0