forked from piskvorky/smart_open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
87 lines (63 loc) · 1.45 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
[tox]
minversion = 2.0
envlist = py{35,36,37,38}-{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 = TRAVIS TRAVIS_* SO_* AWS_* COVERALLS_* APPVEYOR* RUN_BENCHMARKS
recreate = True
whitelist_externals =
sh
bash
deps =
.[all]
.[test]
integration: numpy
benchmark: pytest_benchmark
benchmark: awscli
commands =
test: pytest smart_open -v
integration: ./travis_ci_helpers.sh integration
benchmark: ./travis_ci_helpers.sh benchmark
doctest: ./travis_ci_helpers.sh doctest
[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 check_keys.py
[testenv:enable_moto_server]
skip_install = True
recreate = False
deps = moto[server]
commands = ./travis_ci_helpers.sh enable_moto_server
[testenv:disable_moto_server]
skip_install = True
recreate = False
deps =
commands = ./travis_ci_helpers.sh disable_moto_server
[testenv:test_coverage]
skip_install = True
recreate = False
deps =
.[all]
.[test]
pytest-cov
coveralls
commands =
pytest smart_open -v --cov smart_open --cov-report term-missing
coveralls