summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElod Illes <elod.illes@est.tech>2019-06-27 12:57:48 +0200
committerElod Illes <elod.illes@est.tech>2019-06-27 12:59:31 +0200
commitfeac47186d79569bb564e18216e07f18ed5ccd8b (patch)
tree41a2d646593c7db6d3b34a89575a9713bf7286fb
parent74cc8cfe13bd55513524e26018669d75a7c3872b (diff)
downloadstevedore-feac47186d79569bb564e18216e07f18ed5ccd8b.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. In documentation zuul job graphviz package ('dot' command) is needed. Without that the job fails with: dot command 'dot' cannot be run (needed for graphviz output), check the graphviz_dot setting [1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html Change-Id: I5efddfc72e9dc0dd1b8b9e1e37708e1d30ef3c39
-rw-r--r--bindep.txt7
-rw-r--r--tox.ini12
2 files changed, 19 insertions, 0 deletions
diff --git a/bindep.txt b/bindep.txt
new file mode 100644
index 0000000..7a2df73
--- /dev/null
+++ b/bindep.txt
@@ -0,0 +1,7 @@
+# This is a cross-platform list tracking distribution packages needed for install and tests;
+# see https://docs.openstack.org/infra/bindep/ for additional information.
+
+# graphviz is necessary for documentation build
+graphviz [!platform:gentoo]
+media-gfx/graphviz [platform:gentoo]
+
diff --git a/tox.ini b/tox.ini
index 692eb7c..0ee9aad 100644
--- a/tox.ini
+++ b/tox.ini
@@ -48,6 +48,18 @@ deps =
-r{toxinidir}/doc/requirements.txt
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 (this
+# further relies on "tox.skipsdist = True" above).
+deps = bindep
+commands = bindep test
+usedevelop = False
+
[testenv:lower-constraints]
basepython = python3
deps =