tox_DEBIAN.py is a tox plugin which extracts Debian packages
into the tox managed virtual environment.
The plugin implements the tox_testenv_install_deps pluggy hook,
The plugin uses the apt-get, dpkg and cp tools.
tox_DEBIAN, like tox, uses py.test for test automatization.
The debian dependencies has to be listed in the testenv section
as debian_deps multi line option.
[testenv]
debian_deps =
python3-ipaddr
python3-yamlExtra options can be defined for apt-get with the apt_opts option:
[testenv]
apt_opts=
--allow-unauthenticated
debian_deps =
python3-ipaddr
python3-yamlpip install toxtox uses RequirementParseError from pkg_resources, therefore setuptools
might need to be upgraded:
pip install --upgrade setuptoolspip install git+https://github.com/balabit/tox-debian-plugin.gitgit clone https://github.com/balabit/tox-debian-plugin.git
pip install -e tox-debian-pluginpip install pytestcd tox-debian-plugin
py.test tests