oslo.db 18.0.0 (gazpacho)
We are glad to announce the release of: oslo.db 18.0.0 This release is part of the gazpacho release series. The source is available from: https://opendev.org/openstack/oslo.db Download the package from: https://pypi.org/project/oslo.db Please report issues through: https://bugs.launchpad.net/oslo.db/+bugs For more details, please see below. 18.0.0 ^^^^^^ New Features ************ * Add a new parameter named "synchronous_reader" for sqlalchemy backend so an operator can choose from configuration file if reader context should be synchronous or not. When "synchronous_reader" is set to "True" (the default), a database reader context will guarantee it can read data from a writer context by reusing the same "connection" parameter, thus ignoring the "slave_connection" parameter. When "synchronous_reader" is set to "False", a database reader context works the same as an async_reader and will select the "slave_connection" parameter to connect to the database if present. When setting this parameter to "False", make sure your cluster lag is not a problem or set "mysql_wsrep_sync_wait" accordingly. Upgrade Notes ************* * The "oslo_db.sqlalchemy.enginefacade.LegacyEngineFacade" class and related helpers, namely "_TransactionFactory.get_legacy_facade", "_TransactionContextManager.get_legacy_facade" and "get_legacy_facade" from the same module, have all been removed. The "LegacyEngineFacade" class has been deprecated since 1.12.0 in favour of using the "oslo_db.sqlalchemy.enginefacade" module directly. * Support for Python 3.9 has been removed. Now the minimum python version supported is 3.10. Changes in oslo.db 17.4.0..18.0.0 --------------------------------- fc79b29 Delay string interpolations at logging calls be9dd21 Remove reference to tag framework 008fac9 Always use native pre-ping support 53dfa76 Bump SQLAlchemy minimum 5797bbd reno: Update master for unmaintained/2024.1 e369113 Bump pyupgrade target to 3.10+ e6b8710 Migrate bandit options to pyproject.toml 036b9f4 Use consistent URL format for project links 9a0deee pre-commit: Bump dependencies e6c0945 Migrate setup configuration to pyproject.toml 1998118 Move upper tips job from 3.12 to 3.13 89c8743 Drop Python 3.9 support c49ce5e Update master for stable/2025.2 e20faf3 Add a new option synchronous_reader 4a29bee Remove LegacyEngineFacade 9e5f755 Drop redundant library check Diffstat (except docs and test files) ------------------------------------- .pre-commit-config.yaml | 18 +- .zuul.yaml | 16 +- README.rst | 11 +- oslo_db/options.py | 18 ++ oslo_db/sqlalchemy/asyncio_facade.py | 2 +- oslo_db/sqlalchemy/compat/__init__.py | 38 ---- oslo_db/sqlalchemy/enginefacade.py | 240 +-------------------- oslo_db/sqlalchemy/engines.py | 78 +------ oslo_db/sqlalchemy/exc_filters.py | 6 +- oslo_db/sqlalchemy/provision.py | 2 +- oslo_db/sqlalchemy/session.py | 4 +- oslo_db/sqlalchemy/utils.py | 4 +- oslo_db/warning.py | 13 -- pyproject.toml | 55 +++++ .../add-synchronous_reader-3c3b8d4e0e992cd3.yaml | 15 ++ ...remove-LegacyEngineFacade-cd1f4d8390be0d34.yaml | 9 + .../notes/remove-py39-2220ff39406be378.yaml | 5 + releasenotes/source/2024.1.rst | 2 +- releasenotes/source/2025.2.rst | 6 + releasenotes/source/index.rst | 1 + requirements.txt | 2 +- setup.cfg | 40 ---- tox.ini | 2 + 28 files changed, 167 insertions(+), 765 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index 5212783..557ee59 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10 +10 @@ oslo.utils>=3.33.0 # Apache-2.0 -SQLAlchemy>=1.4.0 # MIT +SQLAlchemy>=2.0.5 # MIT
participants (1)
-
no-reply@openstack.org