Adding py39 gate and removing py36 gates from zuul

Adding py39 gate.
Removing redundant py36 Zuul jobs since we now have py39 Zuul jobs in
place with the debian nodeset

Story: 2006796
Task: 42983
Change-Id: Ica95c7d5f91e7606c369fec2d06ec6f34cfd2796
Signed-off-by: Bernardo Decco <bernardo.deccodesiqueira@windriver.com>
This commit is contained in:
Charles Short 2021-08-29 10:09:28 -04:00 committed by Bernardo Decco de Siqueira
parent aa37442252
commit 2c528b9767
4 changed files with 36 additions and 13 deletions

View File

@ -9,14 +9,14 @@
- openstack-tox-linters - openstack-tox-linters
- stx-distcloud-client-tox-pep8 - stx-distcloud-client-tox-pep8
- stx-distcloud-client-tox-py27 - stx-distcloud-client-tox-py27
- stx-distcloud-client-tox-py36 - stx-distcloud-client-tox-py39
- stx-distcloud-client-tox-pylint - stx-distcloud-client-tox-pylint
gate: gate:
jobs: jobs:
- openstack-tox-linters - openstack-tox-linters
- stx-distcloud-client-tox-pep8 - stx-distcloud-client-tox-pep8
- stx-distcloud-client-tox-py27 - stx-distcloud-client-tox-py27
- stx-distcloud-client-tox-py36 - stx-distcloud-client-tox-py39
- stx-distcloud-client-tox-pylint - stx-distcloud-client-tox-pylint
post: post:
jobs: jobs:
@ -32,12 +32,12 @@
tox_extra_args: -c distributedcloud-client/tox.ini tox_extra_args: -c distributedcloud-client/tox.ini
- job: - job:
name: stx-distcloud-client-tox-py36 name: stx-distcloud-client-tox-py39
parent: tox parent: tox-py39
description: Run py36 for distcloud-client description: Run py39 for distcloud-client
nodeset: ubuntu-bionic nodeset: ubuntu-focal
vars: vars:
tox_envlist: py36 tox_envlist: py39
tox_extra_args: -c distributedcloud-client/tox.ini tox_extra_args: -c distributedcloud-client/tox.ini
- job: - job:
@ -52,6 +52,7 @@
name: stx-distcloud-client-tox-pep8 name: stx-distcloud-client-tox-pep8
parent: tox parent: tox
description: Run pep8 for distcloud-client description: Run pep8 for distcloud-client
nodeset: ubuntu-bionic
vars: vars:
tox_envlist: pep8 tox_envlist: pep8
tox_extra_args: -c distributedcloud-client/tox.ini tox_extra_args: -c distributedcloud-client/tox.ini

10
bindep.txt Normal file
View File

@ -0,0 +1,10 @@
# This is a cross-platform list tracking distribution packages needed for install and tests;
# see https://docs.openstack.org/infra/bindep/ for additional information.
libffi-dev [platform:dpkg]
libldap2-dev [platform:dpkg]
libxml2-dev [platform:dpkg]
libxslt1-dev [platform:dpkg]
libsasl2-dev [platform:dpkg]
libffi-devel [platform:rpm]
python3-all-dev [platform:ubuntu-focal]

View File

@ -1,16 +1,18 @@
# The order of packages is significant, because pip processes them in the order # 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 # of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later. # process, which may cause wedges in the gate later.
hacking>=1.1.0,<=2.0.0 # Apache-2.0 hacking!=0.13.0,<0.14,>=0.12.0
isort<5;python_version>="3.0" astroid<= 2.2.5;python_version>="3.0" # GPLv2
isort<5;python_version>="3.5"
pylint<2.1.0;python_version<"3.0" # GPLv2 pylint<2.1.0;python_version<"3.0" # GPLv2
pylint<2.3.0;python_version>="3.0" # GPLv2 pylint<2.3.0;python_version>="3.0" # GPLv2
python-openstackclient>=3.3.0 # Apache-2.0 python-openstackclient>=3.3.0 # Apache-2.0
sphinx>=1.5.1 # BSD sphinx>=1.5.1;python_version<="3.6" # BSD
sphinx>=1.6.2;python_version>="3.6" # BSD
fixtures>=3.0.0 # Apache-2.0/BSD fixtures>=3.0.0 # Apache-2.0/BSD
mock>=2.0 # BSD mock>=2.0 # BSD
nose # LGPL
tempest>=14.0.0 # Apache-2.0 tempest>=14.0.0 # Apache-2.0
testtools>=1.4.0 # MIT testtools>=1.4.0 # MIT
PyYAML>=3.1.0 PyYAML>=3.1.0
yamllint>=0.5.2 yamllint<1.26.1;python_version>="3.0" # GPLv2
python-dev-tools;python_version>="3.9"

View File

@ -1,6 +1,6 @@
[tox] [tox]
minversion = 2.3 minversion = 2.3
envlist = py27,py36,pep8,pylint envlist = py27,py36,py39,pep8,pylint
skipsdist = True skipsdist = True
toxworkdir = /tmp/{env:USER}_dc_client_tox toxworkdir = /tmp/{env:USER}_dc_client_tox
@ -38,6 +38,16 @@ commands =
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete
stestr --test-path={[dcclient]client_base_dir}/dcmanagerclient/tests run '{posargs}' stestr --test-path={[dcclient]client_base_dir}/dcmanagerclient/tests run '{posargs}'
[testenv:py39]
skipdist = False
basepython = python3.9
install_command = pip install \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/victoria/upper-constraints.txt} \
{opts} {packages}
commands =
find {toxinidir} -not -path '{toxinidir}/.tox/*' -name '*.py[c|o]' -delete
stestr --test-path={[dcclient]client_base_dir}/dcmanagerclient/tests run '{posargs}'
[testenv:pep8] [testenv:pep8]
basepython = python3 basepython = python3
deps = {[testenv]deps} deps = {[testenv]deps}