From e017f319152f3d33c736878af64d5bdcdde69b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Natal=20Ng=C3=A9tal?= Date: Fri, 4 Oct 2019 15:24:08 +0200 Subject: [PATCH] Add a bindep. Add a bindep file to fix the rsvg-convert command. Change-Id: I1c8f252dae5cffec5f98a22274240edb60b2504d --- bindep.txt | 2 ++ tox.ini | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 bindep.txt diff --git a/bindep.txt b/bindep.txt new file mode 100644 index 00000000..3991ef06 --- /dev/null +++ b/bindep.txt @@ -0,0 +1,2 @@ +librsvg2-tools [doc platform:rpm] +librsvg2-bin [doc platform:dpkg] diff --git a/tox.ini b/tox.ini index 2735b976..e711dd9e 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 2.0 skipsdist = True -envlist = docs,pep8 +envlist = docs,pep8,bindep [testenv] usedevelop = True @@ -52,3 +52,15 @@ basepython = python3 deps = {[testenv:docs]deps} commands = sphinx-build -a -E -W -d deploy-guide/build/doctrees -b html deploy-guide/source deploy-guide/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). +usedevelop = False +deps = bindep +commands = + bindep test