From 00a771be12c4fa8148007357abdaf3b2665f6c9f Mon Sep 17 00:00:00 2001 From: Madhuri Kumari Date: Tue, 24 Dec 2019 13:15:08 +0530 Subject: [PATCH] Add bindep env and fix pdf doc generation d95a4cd30fd73c47cb5798a5eb474eedac728e00 added the docs build requirement on sphinxcontrib-svg2pdfconverter which needs the native rsvg-convert command. This change adds the native package that provides that command to bindep.txt. Also adds bindep env in tox.ini Change-Id: I294cc2acf827a813f9ccc9794a640e70fe5fc126 --- bindep.txt | 3 +++ tox.ini | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 bindep.txt diff --git a/bindep.txt b/bindep.txt new file mode 100644 index 0000000..54a8524 --- /dev/null +++ b/bindep.txt @@ -0,0 +1,3 @@ +# libsrvg2 is needed for sphinxcontrib-svg2pdfconverter in docs builds. +librsvg2-tools [doc platform:rpm] +librsvg2-bin [doc platform:dpkg] diff --git a/tox.ini b/tox.ini index 06e9c70..f48d70a 100644 --- a/tox.ini +++ b/tox.ini @@ -85,3 +85,13 @@ deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt + +# This environment can be used to quickly validate that all needed system +# packages required to successfully execute test targets are installed +[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