forked from olemb/dbfread
-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
75 lines (67 loc) · 1.39 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
[tox]
envlist =
build
ci
docs
pytest
release
scripts
testrelease
[testenv]
allowlist_externals = bash
envdir = {toxinidir}/.env
passenv =
CI
HOME
GITHUB_*
[testenv:pytest]
skip_install = false
extras = test
commands =
pytest --cov-report=term --cov-report=xml --cov-config=.coveragerc --cov={envsitepackagesdir}/dbfread
[testenv:scripts]
skip_install = false
commands =
bash -c "dbf2sqlite --help"
[testenv:docs]
skip_install = false
extras = doc
commands =
bash -c "rm -rf docs/_build"
sphinx-build docs/ docs/_build
[testenv:ci]
skip_install = false
extras =
{[testenv:pytest]extras}
{[testenv:docs]extras}
commands =
{[testenv:pytest]commands}
{[testenv:scripts]commands}
{[testenv:docs]commands}
[testenv:build]
basepython = python3
skip_install = true
deps =
wheel
setuptools
commands =
bash -c "rm -rf build/* dist/*"
python setup.py sdist bdist_wheel
[testenv:testrelease]
basepython = python3
skip_install = true
deps =
{[testenv:build]deps}
twine
commands =
{[testenv:build]commands}
twine check dist/*
twine upload --sign --verbose --repository testpypi --skip-existing dist/*
[testenv:release]
basepython = python3