forked from gdcc/pyDataverse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
114 lines (99 loc) · 2.84 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[tox]
envlist = py35,coverage,coveralls,docs,packaging,dist
skip_missing_interpreters = True
ignore_basepython_conflict = True
[testenv]
description = default settings for unspecified tests
usedevelop = False
skip_install = False
passenv = *
basepython = python3.5
[testenv:py27]
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=pyDataverse --basetemp={envtmpdir}
[testenv:py34]
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=pyDataverse --basetemp={envtmpdir}
[testenv:py35]
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=pyDataverse --basetemp={envtmpdir}
[testenv:py36]
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=pyDataverse --basetemp={envtmpdir}
[testenv:py37]
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=pyDataverse --basetemp={envtmpdir}
[testenv:coverage]
description = create report for coverage
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --cov=pyDataverse --cov-report=term-missing --cov-report=xml --cov-report=html
[testenv:coveralls]
description = create reports for coveralls
deps =
-r{toxinidir}/tools/tests-requirements.txt
commands =
pytest tests/ --doctest-modules -v --cov=pyDataverse
[flake8]
max-line-length = 80
ignore = E129
exclude =
src/pyDataverse/docs/source/conf.py
.tox
.egg
[testenv:flake8]
description = flake8 for style guide testing
deps =
-r{toxinidir}/tools/lint-requirements.txt
commands =
flake8 src/pyDataverse/
flake8 tests/
isort --check-only --diff src/pyDataverse
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps =
-r{toxinidir}/tools/docs-requirements.txt
commands =
sphinx-build -d src/pyDataverse/docs/build/docs_doctree src/pyDataverse/docs/source docs/build/html --color -b html {posargs}
[testenv:packaging]
description = check packaging with twine
skip_install = True
recreate = True
deps =
-r{toxinidir}/tools/packaging-requirements.txt
commands =
python setup.py sdist bdist_wheel
twine check dist/*
[testenv:dist]
description = install from dist
recreate = True
commands =
pip freeze
python -c "import pyDataverse; print(pyDataverse.__name__); print(pyDataverse.__version__)"
[testenv:pypitest]
description = install from test pypi
skip_install = True
recreate = True
commands =
pip install --index-url https://test.pypi.org/simple/ pyDataverse
pip freeze
python -c "import pyDataverse; print(pyDataverse.__name__); print(pyDataverse.__version__)"
[testenv:pypi]
description = install from pypi
skip_install = True
recreate = True
commands =
pip install pyDataverse
pip freeze
python -c "import pyDataverse; print(pyDataverse.__name__); print(pyDataverse.__version__)"