Fix openstack-tox jobs for DC repo

Bindep updates are required to get cffi to install on
ubuntu-jammy.

This update adds a bindep.txt to ensure Zuul will install
the required third party entries

The Zuul upper-constraints env variable declaration needed
to be added to tox.ini otherwise an older constraints
was being used which does not work with newer
versions of python.

Partial-Bug: #1997255

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: I7e4b032f9c91bfaab33fec49f23613004101f44b
This commit is contained in:
Al Bailey 2022-11-21 15:35:42 +00:00
parent 94dccf19bb
commit d8b1a08d1e
2 changed files with 11 additions and 1 deletions

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

@ -5,7 +5,7 @@ skipsdist = True
[testenv]
install_command = pip install -v -v -v \
-c https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt \
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/stable/stein/upper-constraints.txt} \
{opts} {packages}
setenv =
VIRTUAL_ENV={envdir}