From 7b65ec8d75c9748f4eb03915e6cc304e4211cf47 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 28 Jun 2016 14:27:41 +0200 Subject: [PATCH] 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: Ic3f502f358e4f2cef8f980417eba79729fbfc41b --- other-requirements.txt | 22 ++++++++++++++++++++++ tox.ini | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 other-requirements.txt diff --git a/other-requirements.txt b/other-requirements.txt new file mode 100644 index 0000000..90b9935 --- /dev/null +++ b/other-requirements.txt @@ -0,0 +1,22 @@ +# 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] +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 b1c2b7e..3d4491b 100644 --- a/tox.ini +++ b/tox.ini @@ -48,3 +48,11 @@ ignore = F811,F821,H404,H405,H233,H306,E265,W291,W391,F841 show-source = True exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build,doc/source/conf.py,releasenotes + +[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