-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
67 lines (54 loc) · 1.78 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
# circle, man come on /b/ruh
;envlist = py{27,36,37}-test,pypy-test,py-docs
; envlist = py{27,36,37}-test
envlist = py{2,3}-test
## Skips setup.py usage; for non-package testing
#skipsdist = true
[testenv]
# python exec
;basepython =
; 2.7: python2.7
; 3.5: python3.5
; pypy2: pypy
; pypy3: pypy3
; docs: python
; pep8: python
;# {toxworkdir} defaults to .tox
;envdir =
; py2: {toxworkdir}/py2
; py3: {toxworkdir}/py3
# Pass full env
whitelist_externals = env
passenv = *
# Install editably
usedevelop = true
deps =
test: -e .[tests]
docs: -e .[docs]
analysis: flake8 flake8-import-order
;# Allow overriding of the test command
;commands = {posargs:py.test}
commands=
;py2,pypy: py.test --ignore 'tests/mainline/*py3*'
;py3: py.test
test: coverage run --source=mainline -m pytest
;test: - coverage run --source=mainline setup.py test
test: - coverage report -m
publish: env COVERALLS_REPO_TOKEN=Tl8zdPmnyab8LS6vpc5Tii3Yvnc41X7rg coveralls
analysis: flake8 .
docs: sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
docs: sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
docs: sphinx-build -W -b linkcheck docs docs/_build/html
;build: pelican --output output --settings settings.py --delete-output-directory []
;watch: pelican --output output --settings settings.py --delete-output-directory --autoreload []
;run: twistd -n web --path=.
;publish: python ghp-import.py -m "Update gh-pages." output
;publish: git push origin master
;publish: git push origin gh-pages
;# Customize install command
;install_command = pip install --pre --find-links http://packages.example.com --no-index {opts} {packages}
[flake8]
exclude = .tox/
; select = E,W,F,I
ignore = E501