summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2019-07-18 10:38:26 +0100
committerStephen Finucane <stephenfin@redhat.com>2019-07-18 10:38:26 +0100
commitce3122c2f17252ac2e82676cd675f62bab8c5420 (patch)
tree28c2f64fe72e4445586c0affc7cb0be1d412b889
parentd63f76a9b25518f21ca6756fa9e3b85f2c9ac359 (diff)
downloadoslo-vmware-ce3122c2f17252ac2e82676cd675f62bab8c5420.tar.gz
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 <stephenfin@redhat.com>
-rw-r--r--bindep.txt14
-rw-r--r--tox.ini10
2 files changed, 24 insertions, 0 deletions
diff --git a/bindep.txt b/bindep.txt
new file mode 100644
index 0000000..f52646e
--- /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 cb830c5..e01f7f8 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 =