-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
40 lines (33 loc) · 899 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
[tox]
envlist = py36, py37
[flake8]
max-line-length = 89
[pytest]
log_cli = True
log_cli_level = DEBUG
[testenv]
description = run tests against {envpython}
extras = test
commands = pytest tests
[testenv:lint]
description = run pre-commit fixes and checks
extras = lint
commands =
pre-commit run --all-files
python -c 'print("hint: run {envdir}/bin/pre-commit install to add checks as pre-commit hook")'
[testenv:dev]
description = dev env at {envdir}
basepython = python3.6
deps = test
usedevelop = True
commands =
[testenv:deploy]
description = copy the control module to PewPew
commands = python tools/deploy.py {posargs}
[testenv:release]
description = (pretty manual still) update version+changelog, commit, tag, release, push
deps = twine
setenv = DISTPATH = {distdir}/py3status-pewpew-{env:VERSION}.zip
commands =
twine check {env:DISTPATH}
twine upload {env:DISTPATH}