summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2016-06-28 14:26:12 +0200
committerAndreas Jaeger <aj@suse.com>2016-06-30 08:35:48 +0200
commit3c276281ca96c801c4589b8ed53d52384e028703 (patch)
tree1059ccd8812670978cf1c045e326fe8ccf16ce79
parentafde3fb774da48f68bb488d64f8ef3aa5fb79484 (diff)
downloadpython-novaclient-3c276281ca96c801c4589b8ed53d52384e028703.tar.gz
List system dependencies for running common tests
Add an other-requirements.txt file containing a cross-platform list of dependencies needed for running included tox-based tests. Also include a tox environment for convenience calling the bindep[*] utility to list any missing system requirements. This change is self-testing. For other-requirements.txt see also http://docs.openstack.org/infra/manual/drivers.html#package-requirements [*] http://docs.openstack.org/infra/bindep/ Change-Id: I3c62f6924d2d70e23e6787b8da848fbeb0d52ddc (cherry picked from commit d6ca9e2d7473f6d15a3c76bcd5a7c3cc65b49296)
-rw-r--r--other-requirements.txt23
-rw-r--r--tox.ini8
2 files changed, 31 insertions, 0 deletions
diff --git a/other-requirements.txt b/other-requirements.txt
new file mode 100644
index 00000000..da3ab7f5
--- /dev/null
+++ b/other-requirements.txt
@@ -0,0 +1,23 @@
+# This is a cross-platform list tracking distribution packages needed by tests;
+# see http://docs.openstack.org/infra/bindep/ for additional information.
+
+build-essential [platform:dpkg]
+dbus-devel [platform:rpm]
+dbus-glib-devel [platform:rpm]
+gettext
+language-pack-en [platform:ubuntu]
+libdbus-1-dev [platform:dpkg]
+libdbus-glib-1-dev [platform:dpkg]
+libffi-dev [platform:dpkg]
+libffi-devel [platform:rpm]
+libuuid-devel [platform:rpm]
+locales [platform:debian]
+python-dev [platform:dpkg]
+python-devel [platform:rpm]
+python3-all-dev [platform:ubuntu !platform:ubuntu-precise]
+python3-dev [platform:dpkg]
+python3-devel [platform:fedora]
+python3.4 [platform:ubuntu-trusty]
+python3.5 [platform:ubuntu-xenial]
+python34-devel [platform:centos]
+uuid-dev [platform:dpkg]
diff --git a/tox.ini b/tox.ini
index 3154330e..06e6d4b4 100644
--- a/tox.ini
+++ b/tox.ini
@@ -60,3 +60,11 @@ exclude=.venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,doc/sour
[hacking]
import_exceptions = novaclient.i18n
+
+[testenv:bindep]
+# 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.
+deps = bindep
+commands = bindep test