From 95e1c13f74395667aae3b5f63d845d83a279d113 Mon Sep 17 00:00:00 2001 From: Boxiang Zhu Date: Tue, 22 Nov 2022 11:51:57 +0800 Subject: [PATCH] fix: Fix the devstack for python3.8 and version in requirements When the os is ubuntu, then we only need to make sure that python exists. Update the version in requirements. Change-Id: I100fce84d94f2af5f07d68c5675a02ae05403110 --- devstack/plugin.sh | 6 ++---- test-requirements.txt | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index dd93a34..afeeb0a 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -62,10 +62,8 @@ function _install_dependent_tools { install_package make # python - if is_fedora; then - install_package python38 - else - install_package python3.8 python-is-python3 # make sure python exists + if is_ubuntu; then + install_package python-is-python3 # make sure python exists fi # nvm diff --git a/test-requirements.txt b/test-requirements.txt index 1685386..b29ff78 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,11 +9,11 @@ isort<=5.9.3 # MIT black<=22.3.0 # MIT flake8<=3.9.2 # MIT mypy>=0.910 # MIT -pytest>=6.2.5,<=7.1.2 # MIT -pytest-xdist>=2.4.0,<=2.5.0 # MIT +pytest>=6.2.5 # MIT +pytest-xdist>=2.4.0 # MIT pytest-asyncio<=0.15.1 # Apache-2.0 pytest-cov<=2.12.1 # MIT -pytest-html<=3.1.1 # MPL 2.0 +pytest-html>=3.1.1 # MPL 2.0 mimesis<=4.1.3 # MIT asgi-lifespan<=1.0.1 # MIT types-PyYAML<=5.4.10 # Apache-2.0