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