forked from WebReply/wstools
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
44 lines (42 loc) · 980 Bytes
/
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
[tox]
minversion = 2.3.1
envlist = lint,py27,py37,py36,py35
skip_missing_interpreters = true
tox_pyenv_fallback=True
ignore_errors=False
[testenv]
sitepackages=False
commands=
bash -c 'find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf'
python -m pip install -rrequirements-dev.txt -rrequirements.txt
python -m pip check
python setup.py build test install sdist bdist_wheel
passenv =
CI
CI_JIRA_*
PIP_*
TRAVIS
TRAVIS_*
XDG_CACHE_HOME
PY_*
PYENV_VERSION
RTOX*
SSH_AUTH_SOCK
envars =
PIP_DISABLE_PIP_VERSION_CHECK=1
PIP_USER=no
whitelist_externals =
bash
find
grep
rm
twine
xargs
[testenv:lint]
commands=
bash -c 'find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf'
python -m pip install -rrequirements-dev.txt -rrequirements.txt
python -m pre_commit run --all
bash -c "rm -f {toxinidir}/dist/*.*"
python setup.py sdist bdist_wheel
twine check dist/*