tox.ini
author Jérémy Bobbio <jeremy.bobbio@irq7.fr>
Tue, 04 Jun 2019 11:53:03 +0200
changeset 862 942ef0731f4c
parent 861 d5e1e2b627fc
child 866 40e82ee872ce
permissions -rw-r--r--
Update Debian packaging Various improvements to Debian packaging: - Depend on python-yapps and python3-yapps for YAPPS runtime. - Use PYBUILD_NAME instead of debian/*.install files. - Use python3-sphinx instead of obsolete Python 2 version. - Always build Python 3 package. - Run tests at build time and adds relevant packages to Build-Depends. - Add superficial autopkgtest using autodep8. - Add autopkgtest script to run unittest against installed packages. - Add Vcs-Hg and Vcs-Browser fields. - Update Standards-Version to 4.3.0. In order to run the tests at build time and with autopkgtest, they need to be made part of the Python source package. The manifest has been modified accordingly.

[tox]
envlist=py27,py3,flake8

[testenv]
deps =
  pytest
  py27: unittest2 >= 0.7
commands = {envpython} -m pytest {posargs:test}

[testenv:flake8]
basepython = python3
deps =
  flake8
commands = flake8 {posargs:--ignore=E741,F403,F405,F811,E123,E226,W503,E241,W504,E126,E121}

[pytest]
python_files = *test_*.py

[flake8]
max-line-length = 100