Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

debian package installer tox plugin

Project description

tox_DEBIAN

Build Status

tox_DEBIAN.py is a tox plugin which extracts Debian packages into the tox managed virtual environment.

Dependency

Hook dependency

The plugin implements the tox_testenv_install_deps pluggy hook,

External dependency

The plugin uses the apt-get, dpkg and cp tools.

Test dependency

tox_DEBIAN, like tox, uses py.test for test automatization.

Syntax

The debian dependencies has to be listed in the testenv section as debian_deps multi line option.

[testenv]
debian_deps =
  python3-ipaddr
  python3-yaml

Extra options can be defined for apt-get with the apt_opts option:

[testenv]
apt_opts=
  --allow-unauthenticated
debian_deps =
  python3-ipaddr
  python3-yaml

Install

Install tox

pip install tox

tox uses RequirementParseError from pkg_resources, therefore setuptools might need to be upgraded:

pip install --upgrade setuptools

Install tox_DEBIAN

pip install tox_DEBIAN

Test

Local tox_DEBIAN install

git clone https://github.com/tpazderka/tox-debian-plugin.git
pip install -e tox-debian-plugin

Install py.test

pip install pytest

Test run

cd tox-debian-plugin
py.test tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tox-DEBIAN, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size tox-DEBIAN-0.3.linux-x86_64.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View
Filename, size tox_DEBIAN-0.3-py3-none-any.whl (4.5 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page