summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2019-10-18 15:57:13 +0200
committerGitHub <noreply@github.com>2019-10-18 15:57:13 +0200
commitf6bf14afd22d8e5b706670590cc95f29d4483434 (patch)
treea65fbc8b6fd1112222beb6f66c31082ffe231460 /tox.ini
parentf3d02aa3b088e2f9044fe5e4869e8c8cb91d2cdc (diff)
downloadtablib-f6bf14afd22d8e5b706670590cc95f29d4483434.tar.gz
Add project release config and cleanup project setup. (#398)
* Add project release config and use Travis build stages. Refs #378. * Restructure project to use src/ and tests/ directories. * Fix testing. * Remove eggs. * More fixes. - isort and flake8 config - manifest template update - tox ini extension - docs build fixes - docs content fixes * Docs and license cleanup.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini38
1 files changed, 35 insertions, 3 deletions
diff --git a/tox.ini b/tox.ini
index 0a954c4..ebd8f53 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,40 @@
[tox]
+usedevelop = true
minversion = 2.4
-envlist = py27, py35, py36, py37
+envlist =
+ py{27,35,36,37,38}-tests,
+ py37-{docs,lint}
[testenv]
-deps = pytest
+basepython =
+ py27: python2.7
+ py35: python3.5
+ py36: python3.6
+ py37: python3.7
+ py38: python3.8
+deps =
+ tests: -rtests/requirements.txt
+ docs: sphinx
extras = pandas
-commands = python setup.py test
+commands =
+ tests: pytest {posargs:tests}
+ docs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
+
+[testenv:py37-lint]
+basepython = python3.7
+deps =
+ flake8
+ # flake8-black
+ # flake8-isort
+ twine
+ check-manifest
+commands =
+ # flake8 src/tablib tests/
+ check-manifest -v
+ python setup.py sdist
+ twine check dist/*
+
+[flake8]
+exclude =
+ .tox
+ignore=E501,E127,E128,E124