forked from orientechnologies/pyorient
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
70 lines (60 loc) · 1.23 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
[tox]
isolated_build = true
envlist =
# Delete previous coverage reports
coverage-clean
# Make sure all the documentation files are in order
docs
# Runs the tests and reports how much of the base code is covered
py
coverage-report
[testenv]
deps =
coverage
pytest
commands =
coverage run -p -m pytest
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage-report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
changedir = docs
whitelist_externals =
/usr/bin/cat
/usr/bin/cp
/usr/bin/mkdir
deps =
sphinx
sphinx_rtd_theme
sphinx-click
sphinx_autodoc_typehints
commands =
sphinx-build -b html -d {envtmpdir}/build/doctrees source {envtmpdir}/build/html
####################
# Deployment tools #
####################
[testenv:bumpversion]
deps =
bump2version
commands = bump2version {posargs}
skip_install = true
[testenv:publish]
basepython = python3
skip_install = true
whitelist_externals =
git
poetry
;deps =
; bumpversion
commands =
; bumpversion patch
poetry publish --build
git push