From dd72623e0622addc7c46b9c9ae5ae5c8254999c6 Mon Sep 17 00:00:00 2001 From: Felipe Reyes Date: Mon, 5 May 2025 17:10:59 -0400 Subject: [PATCH] Pin osc-lib<4.0.0 osc-lib-4.0.0 introduced typing hints making it incompatible with py38. Ref: https://github.com/openstack/osc-lib/commit/3d221e5992a74d6bb7d1b725e43015b8c87b9718 --- requirements.txt | 3 +++ setup.py | 1 + 2 files changed, 4 insertions(+) diff --git a/requirements.txt b/requirements.txt index 992af69..663d971 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,6 +31,9 @@ Jinja2>=2.6 # BSD License (3 clause) six>=1.9.0 dnspython>=1.12.0 psutil>=1.1.1,<2.0.0 +# osc-lib-4.0.0 introduced typing hints making it incompatible with py38. +# https://github.com/openstack/osc-lib/commit/3d221e5992a74d6bb7d1b725e43015b8c87b9718 +osc-lib<4.0.0; python_version <= '3.8' python-openstackclient>=3.14.0 aodhclient gnocchiclient>=7.0.5,<8.0.0 diff --git a/setup.py b/setup.py index d52d959..06c0ff8 100644 --- a/setup.py +++ b/setup.py @@ -47,6 +47,7 @@ install_require = [ 'PyYAML', 'tenacity', 'oslo.config<6.12.0', + 'osc-lib<4.0.0', # needed for py38 'aodhclient', 'gnocchiclient>=7.0.5,<8.0.0', 'pika>=1.1.0,<2.0.0',