-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
78 lines (68 loc) · 1.22 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
[tox]
envlist =
coverage-clean
manifest
flake8
py
coverage-report
[testenv]
commands = coverage run -p -m pytest
deps=
coverage
pytest
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:manifest]
deps = check-manifest
skip_install = true
commands = check-manifest
[testenv:coverage-report]
deps = coverage
commands =
coverage combine
coverage report
[testenv:flake8]
deps =
flake8
flake8-pyproject
commands =
flake8 ebel_rest/ tests/
####################
# Deployment tools #
####################
[testenv:bumpversion]
commands = bumpversion {posargs}
skip_install = true
deps =
bumpversion
[testenv:build]
basepython = python3
skip_install = true
deps =
build
commands =
python -m build
[testenv:release]
basepython = python3
skip_install = true
deps =
{[testenv:build]deps}
twine
commands =
{[testenv:build]commands}
twine upload --skip-existing dist/* --verbose
[testenv:finish]
basepython = python3
skip_install = true
whitelist_externals =
/bin/git
/usr/local/bin/git
deps =
{[testenv:build]deps}
{[testenv:release]deps}
bumpversion
commands =
bumpversion patch
{[testenv:release]commands}