[PATCH 3 of 4 prov] [test] add tox config with py27, flake8 and check-manifest

Philippe Pepiot philippe.pepiot at logilab.fr
Thu Feb 23 17:13:04 CET 2017


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1487865165 -3600
#      Thu Feb 23 16:52:45 2017 +0100
# Node ID 3ffa84d65682ad5b4421aef9c4ef5876e035bafc
# Parent  6f651e44987a769d4251d0b86fdcd5d15b8e413d
# Available At https://hg.logilab.org/review/cubes/prov
#              hg pull https://hg.logilab.org/review/cubes/prov -r 3ffa84d65682
# Tested at: https://jenkins.logilab.org/job/cubicweb-prov/3/
[test] add tox config with py27, flake8 and check-manifest

diff --git a/MANIFEST.in b/MANIFEST.in
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -4,6 +4,7 @@ recursive-include data *.gif *.png *.ico
 recursive-include i18n *.po
 recursive-include wdoc *
 include test/data/bootstrap_cubes
+include tox.ini
 
 prune cubicweb-prov.spec
 prune debian
diff --git a/tox.ini b/tox.ini
new file mode 100644
--- /dev/null
+++ b/tox.ini
@@ -0,0 +1,30 @@
+[tox]
+envlist = py27,flake8,check-manifest
+
+[testenv]
+sitepackages = True
+deps =
+  pytest
+commands = {envpython} -m pytest {posargs:{toxinidir}/test}
+
+[testenv:check-manifest]
+skip_install = true
+deps =
+  check-manifest
+commands =
+  {envpython} -m check_manifest {toxinidir}
+
+[testenv:flake8]
+skip_install = true
+whitelist_externals =
+  flake8
+deps =
+  flake8
+commands = flake8 {posargs:{toxinidir}}
+
+[flake8]
+max-line-length = 100
+exclude = migration,.tox,setup.py
+
+[pytest]
+python_files = *test_*.py



More information about the saem-devel mailing list