summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Mueller <dirk@dmllr.de>2017-05-25 22:36:51 +0200
committerElod Illes <elod.illes@est.tech>2019-06-27 16:56:54 +0200
commit1fbcf0960b1e3727789e3c837e2679e8db202e8b (patch)
treebff8464cb43a99e60cba63a8504ba50efc5db80d
parent1148ef8d1ad02f4426957d93ef49e1fa6993ae1c (diff)
downloadglance-stable/ocata.tar.gz
Add a local bindep.txt overrideocata-eolstable/ocata
This avoids falling back to the global bindep-fallback.txt which installs a pretty big environment. Without this change, a lot of additional but unnecessary packages are installed on the nodepool workers. Change-Id: Id6c17f9a53ad8ad5f0bb9d308ccf5d33a6f59f7f (cherry picked from commit 8db99e2213e6d597e9e8ac6cd9c00843e1b28eda) (cherry picked from commit 5ed509804980dd3013d0e9e4fe7a498b6c90d2e2)
-rw-r--r--bindep.txt22
-rw-r--r--tox.ini11
2 files changed, 33 insertions, 0 deletions
diff --git a/bindep.txt b/bindep.txt
new file mode 100644
index 000000000..490ad5e58
--- /dev/null
+++ b/bindep.txt
@@ -0,0 +1,22 @@
+# This is a cross-platform list tracking distribution packages needed for install and tests; # see http://docs.openstack.org/infra/bindep/ for additional information.
+
+build-essential [platform:dpkg test]
+gcc [platform:rpm test]
+gettext [!platform:suse]
+gettext-runtime [platform:suse]
+libffi-dev [platform:dpkg]
+libffi-devel [platform:redhat]
+libffi48-devel [platform:suse]
+virtual/libffi [platform:gentoo]
+locales [platform:debian]
+mariadb [platform:rpm]
+mariadb-server [platform:redhat]
+mariadb-devel [platform:redhat]
+libmysqlclient-dev [platform:dpkg]
+libmysqlclient-devel [platform:suse]
+mysql-client [platform:dpkg]
+mysql-server [platform:dpkg]
+postgresql
+postgresql-client [platform:dpkg]
+postgresql-devel [platform:rpm]
+postgresql-server [platform:rpm]
diff --git a/tox.ini b/tox.ini
index cd63d84c0..3f815f415 100644
--- a/tox.ini
+++ b/tox.ini
@@ -88,6 +88,17 @@ commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
+[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, 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
+
[flake8]
# TODO(dmllr): Analyze or fix the warnings blacklisted below
# E711 comparison to None should be 'if cond is not None:'