From ce3122c2f17252ac2e82676cd675f62bab8c5420 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 18 Jul 2019 10:38:26 +0100 Subject: [PATCH] Add local bindep.txt As it was announced [1] global bindep-fallback.txt was removed and now projects need to have a local bindep.txt to be able to install binary dependencies for testing. We use lxml which requires a number of underlying packages. [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html Change-Id: Ie635fa5d613cb89f8de8c8c8d5b119621acb926d Signed-off-by: Stephen Finucane --- bindep.txt | 14 ++++++++++++++ tox.ini | 10 ++++++++++ 2 files changed, 24 insertions(+) create mode 100644 bindep.txt diff --git a/bindep.txt b/bindep.txt new file mode 100644 index 00000000..f52646e7 --- /dev/null +++ b/bindep.txt @@ -0,0 +1,14 @@ +# This is a cross-platform list tracking distribution packages needed for install and tests; +# see https://docs.openstack.org/infra/bindep/ for additional information. + +build-essential [platform:dpkg test] +gcc [platform:rpm test] +libxml2-dev [platform:dpkg test] +libxslt1-dev [platform:dpkg test] +libxslt-devel [platform:rpm test] +python-dev [platform:dpkg test] +python-devel [platform:rpm test] +python3-dev [platform:dpkg test] +python3-devel [platform:rpm test] +libpcre3-dev [platform:dpkg test] +pcre-devel [platform:rpm test] diff --git a/tox.ini b/tox.ini index cb830c56..e01f7f82 100644 --- a/tox.ini +++ b/tox.ini @@ -62,6 +62,16 @@ local-check-factory = oslo_vmware.hacking.checks.factory basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html +[testenv:bindep] +basepython = python3 +# Do not install any requirements. We want this to be fast and work even if +# system dependencies are missing, since it's used to tell you what system +# dependencies are missing! This also means that bindep must be installed +# separately, outside of the requirements files, and develop mode disabled +# explicitly to avoid unnecessarily installing the checked-out repo too. +deps = bindep +commands = bindep test + [testenv:lower-constraints] basepython = python3 deps =