From a04fa768cd4243d2b665f95e4c9b74366dacc755 Mon Sep 17 00:00:00 2001 From: Leonardo Fagundes Luz Serrano Date: Fri, 15 Sep 2023 14:48:13 -0300 Subject: [PATCH] Add python-ldap deps for zuul test Zuul tests are failing to build python-ldap due to some missing binary pkg dependencies [1]. Added them using bindep following the solution on the gui repo [2, 3] [1] https://zuul.opendev.org/t/openstack/build/8356394372e24999b27e1a0251e1d919 [2] https://review.opendev.org/c/starlingx/gui/+/894397 [3] https://review.opendev.org/c/starlingx/gui/+/885834 Test Plan: pass: tox --notest -epylint -vv --skip-missing-interpreters=false Closes-Bug: 2036280 Change-Id: Ic1f38573d3ea344b3724bfd92a167bd209ebcea0 Signed-off-by: Leonardo Fagundes Luz Serrano --- .zuul.yaml | 1 + bindep.txt | 3 +++ tox.ini | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index f62e27b0..70d4ee0e 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -48,6 +48,7 @@ - starlingx/fault - starlingx/config vars: + bindep_profile: pylint tox_envlist: pylint - job: diff --git a/bindep.txt b/bindep.txt index 67fa4991..c3b96b6c 100644 --- a/bindep.txt +++ b/bindep.txt @@ -1,3 +1,6 @@ +libldap2-dev [pylint platform:dpkg] +libsasl2-dev [pylint platform:dpkg] +libssl-dev [pylint platform:dpkg] libvirt-dev [platform:dpkg] libvirt-devel [platform:redhat] pkg-config [platform:dpkg] diff --git a/tox.ini b/tox.ini index 6dd2385a..14ae67cd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = linters,pylint,pep8 -minversion = 2.3 +minversion = 4 skipsdist = True toxworkdir = /tmp/{env:USER}_python_utilities_tox stxdir = {toxinidir}/.. @@ -114,5 +114,4 @@ commands = {[testenv:sorted]commands} [testenv:bandit] -basepython = python3 description = Dummy environment to allow bandit to be run in subdir tox