We are jazzed to announce the release of: osc-lib 4.0.0 This release is part of the flamingo release series. The source is available from: https://opendev.org/openstack/osc-lib Download the package from: https://pypi.org/project/osc-lib Please report issues through: https://bugs.launchpad.net/python-openstackclient/+bugs For more details, please see below. 4.0.0 ^^^^^ Upgrade Notes ************* * Support for providing callables in the "formatters" argument to the "osc_lib.utils.get_dict_properties" and "osc_lib.utils.get_item_properties" helpers, first deprecated in 1.8.0 (December 2017) has now been removed. You must provide subclasses of "cliff.columns.FormattableColumn" instead. Deprecation Notes ***************** * The "osc_lib.api.api.BaseAPI" class has been deprecated for removal. Consider using "openstacksdk" instead or vendoring the class into your client. * The "osc_lib.clientmanager.ClientCache" class is deprecated for removal. * The "osc_lib.utils.get_client_class", "osc_lib.utils.wait_for_delete", and "osc_lib.utils.wait_for_status" helpers are now deprecated. They do not support for openstacksdk- based clients and resource. There is no replacement. Bug Fixes ********* * The "osc_lib.utils.env" helper will now consistently return a string or "None". Changes in osc-lib 3.2.0..4.0.0 ------------------------------- 5827c5c typing: Enable disallow_subclassing_any 86b3b19 tests: Resolve TODO 65f0f44 utils: Deprecate legacy client-specific helpers 0e7dada utils: Remove support for legacy format functions ec6b53e utils: Group similar utilities together 66910d5 utils: Don't warn for partial formatter classes d9e1500 typing: Add typing to osc_lib.utils 9e1dc2e typing: Add typing to osc_lib.command 231f661 clientmanager: Deprecate ClientCache 3442d14 typing: Add typing to osc_lib.clientmanager 41c0344 typing: Add typing to osc_lib.shell e2e6dbb typing: Add typing to osc_lib.logs, osc_lib.i18n ebbcb69 typing: Add typing to osc_lib.cli 0fc2851 api: Deprecate BaseAPI 3d221e5 typing: Add typing to osc_lib.api 4cd15b8 Remove unused docs Makefile 3e25787 typing: Add typing to osc_lib.exceptions a396fcc pre-commit: Enable mypy 2fd1e26 typing: Fix initial typing issues 3785b06 Update master for stable/2025.1 7eb3f62 Add pagination helpers 2ccff96 pre-commit: Enable ruff S (bandit) checks c7fecad pre-commit: Bump versions 65eabfb tests: Use consistent output widths 0b3c0b3 reno: Update master for unmaintained/2023.1 Diffstat (except docs and test files) ------------------------------------- .pre-commit-config.yaml | 19 +- osc_lib/api/api.py | 90 +++++-- osc_lib/api/auth.py | 57 ++-- osc_lib/api/utils.py | 15 +- osc_lib/cli/client_config.py | 83 +++--- osc_lib/cli/format_columns.py | 36 +-- osc_lib/cli/identity.py | 17 +- osc_lib/cli/pagination.py | 83 ++++++ osc_lib/cli/parseractions.py | 119 +++++++-- osc_lib/clientmanager.py | 69 +++-- osc_lib/command/command.py | 27 +- osc_lib/command/timing.py | 12 +- osc_lib/exceptions.py | 14 +- osc_lib/logs.py | 26 +- osc_lib/py.typed | 0 osc_lib/shell.py | 108 ++++---- osc_lib/utils/__init__.py | 288 +++++++++++++-------- osc_lib/utils/columns.py | 19 +- osc_lib/utils/tags.py | 60 +++-- pyproject.toml | 38 ++- .../notes/deprecate-BaseAPI-09abd3cb955c2bb6.yaml | 6 + .../deprecate-clientcache-38c8c9fd4ca6dcdf.yaml | 4 + ...ted-legacy-client-helpers-53dde79bd6769d2d.yaml | 7 + .../notes/env-default-e8f2c60f1295d15f.yaml | 5 + ...ort-for-legacy-formatters-1240317d801b4336.yaml | 8 + releasenotes/source/2023.1.rst | 2 +- releasenotes/source/2025.1.rst | 6 + releasenotes/source/index.rst | 1 + requirements.txt | 10 +- test-requirements.txt | 4 - 35 files changed, 900 insertions(+), 531 deletions(-) Requirements updates -------------------- diff --git a/requirements.txt b/requirements.txt index bed0660..7249568 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,2 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. -pbr!=2.1.0,>=2.0.0 # Apache-2.0 - -cliff>=3.2.0 # Apache-2.0 -keystoneauth1>=3.14.0 # Apache-2.0 +cliff>=4.9.0 # Apache-2.0 +keystoneauth1>=5.10.0 # Apache-2.0 @@ -10,0 +6 @@ oslo.utils>=3.33.0 # Apache-2.0 +pbr!=2.1.0,>=2.0.0 # Apache-2.0 diff --git a/test-requirements.txt b/test-requirements.txt index bfff771..f882be0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +0,0 @@ -# The order of packages is significant, because pip processes them in the order -# of appearance. Changing the order has an impact on the overall integration -# process, which may cause wedges in the gate later. -
participants (1)
-
no-reply@openstack.org