forked from piskvorky/smart_open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
85 lines (62 loc) · 1.51 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
[tox]
minversion = 2.0
envlist = py{37,38,39,310}-{test,doctest,integration,benchmark}, sdist, flake8
[pytest]
addopts = -rfxEXs --durations=20 --showlocals
[flake8]
ignore = E12, W503, E226
max-line-length = 110
show-source = True
[testenv]
passenv = SO_* AWS_* COVERALLS_* RUN_BENCHMARKS GITHUB_*
recreate = True
whitelist_externals =
sh
bash
deps =
.[all]
.[test]
integration: numpy
benchmark: pytest_benchmark
benchmark: awscli
commands =
test: pytest smart_open -v
integration: python tox_helpers/run_integration_tests.py
benchmark: python tox_helpers/run_benchmarks.py
doctest: python tox_helpers/doctest.py
[testenv:sdist]
whitelist_externals = rm
recreate = True
commands =
rm -rf dist/
python setup.py sdist
[testenv:flake8]
skip_install = True
recreate = True
deps = flake8
commands = flake8 smart_open/ {posargs}
[testenv:check_keys]
skip_install = True
recreate = True
deps = boto3
commands = python tox_helpers/check_keys.py
[testenv:enable_moto_server]
skip_install = True
recreate = False
deps = moto[server]
commands = bash tox_helpers/helpers.sh enable_moto_server
[testenv:disable_moto_server]
skip_install = True
recreate = False
deps =
commands = bash tox_helpers/helpers.sh disable_moto_server
[testenv:test_coverage]
skip_install = True
recreate = True
deps =
.
pytest-cov
commands =
python tox_helpers/test_missing_dependencies.py
pip install .[all,test]
pytest smart_open -v --cov smart_open --cov-report term-missing --cov-append