Skip to main content

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.

Source Distribution

tox-DEBIAN-0.3.linux-x86_64.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

tox_DEBIAN-0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tox-DEBIAN-0.3.linux-x86_64.tar.gz.

File metadata

  • Download URL: tox-DEBIAN-0.3.linux-x86_64.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.3

File hashes

Hashes for tox-DEBIAN-0.3.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 32fdc643d1685681a8b7fe2373e01dc2f2117dd07fad9811ecdbed8f4f19040d
MD5 2838f619a52ef72e964df3008587cab0
BLAKE2b-256 dd7a688b73d4150b475766e2f5db6c41cf9d6bd4525930bad7df456ec89f93c0

See more details on using hashes here.

File details

Details for the file tox_DEBIAN-0.3-py3-none-any.whl.

File metadata

  • Download URL: tox_DEBIAN-0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.7.3

File hashes

Hashes for tox_DEBIAN-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4382de4f8fdff7206fca5f6d0456c822c7ff0e6c641afc52a3c6663e4b989261
MD5 6a172f6f9e64daafdfab64d2182ce0c2
BLAKE2b-256 c3ef1cc875a3235e7d7dbb2fbe33ab4b58824f001676dd4c737cd1e80d3843c7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page