Enable py39 tox gate/test for app plugins

Add support for tox testing under Debian Bullseye by
enabling a python3.9 gate and tox target for exercsing
unit tests.

Story: 2009101
Task: 43187

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Id00936d92962e50221ebfe714307e96ecbc4e043
This commit is contained in:
Charles Short 2021-09-02 13:43:01 -04:00
parent 26b8abf742
commit b6dab01113
4 changed files with 47 additions and 4 deletions

View File

@ -2,14 +2,34 @@
- project:
check:
jobs:
- k8app-portieris-tox-py39
- openstack-tox-linters
gate:
jobs:
- k8app-portieris-tox-py39
- openstack-tox-linters
post:
jobs:
- stx-portieris-armada-app-upload-git-mirror
- job:
name: k8app-portieris-tox-py39
parent: tox-py39
description: |
Run py39 test for portieris
nodeset: debian-bullseye
required-projects:
- starlingx/config
- starlingx/fault
- starlingx/update
- starlingx/utilities
files:
- python-k8app-portieris/*
vars:
tox_envlist: py39
python_version: 3.9
tox_extra_args: -c python-k8sapp-portieris/k8sapp_portieris/tox.ini
- job:
name: stx-portieris-armada-app-upload-git-mirror
parent: upload-git-mirror

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:dpkg]

View File

@ -6,11 +6,13 @@ flake8<3.8.0
pycodestyle<2.6.0 # MIT License
coverage>=3.6
discover
mock>=2.0.0 # BSD
passlib>=1.7.0
psycopg2-binary
python-subunit>=0.0.18
requests-mock>=0.6.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
testrepository>=0.0.18
testtools!=1.2.0,>=0.9.36
ipaddr

View File

@ -1,5 +1,5 @@
[tox]
envlist = flake8,py27,py36,pylint,bandit
envlist = flake8,py27,py36,py39,pylint,bandit
minversion = 1.6
# skipsdist = True
#,pip-missing-reqs
@ -14,15 +14,14 @@ distshare={toxworkdir}/.tox/distshare
# enabling usedevelop results in py27 develop-inst:
# Exception: Versioning for this project requires either an sdist tarball,
# or access to an upstream git repository.
# Note. site-packages is true and rpm-python must be yum installed on your dev machine.
sitepackages = True
sitepackages = False
# tox is silly... these need to be separated by a newline....
whitelist_externals = bash
find
install_command = pip install \
-v -v -v \
-v -v -v --use-deprecated legacy-resolver \
-c{toxinidir}/upper-constraints.txt \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
{opts} {packages}
@ -72,6 +71,18 @@ commands =
stestr run {posargs}
stestr slowest
[testenv:py39]
basepython = python3.9
install_command = pip install \
-v -v -v --use-deprecated legacy-resolver \
-c{toxinidir}/upper-constraints.txt \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt} \
{opts} {packages}
commands =
{[testenv]commands}
stestr run {posargs}
stestr slowest
[testenv:py36]
basepython = python3.6
commands =