Add bindep env and fix pdf doc generation

d95a4cd30f 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
This commit is contained in:
Madhuri Kumari 2019-12-24 13:15:08 +05:30
parent d8f73d8fad
commit 00a771be12
2 changed files with 13 additions and 0 deletions

3
bindep.txt Normal file
View File

@ -0,0 +1,3 @@
# libsrvg2 is needed for sphinxcontrib-svg2pdfconverter in docs builds.
librsvg2-tools [doc platform:rpm]
librsvg2-bin [doc platform:dpkg]

10
tox.ini
View File

@ -85,3 +85,13 @@ deps =
-c{toxinidir}/lower-constraints.txt -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
-r{toxinidir}/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