forked from tefra/xsdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (44 loc) · 1.09 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
[tox]
envlist = py36,py37,py38,py39,pypy3
skip_missing_interpreters = true
[testenv]
extras = test,cli,soap,lxml
commands = pytest --cov=./xsdata --cov-branch --doctest-glob="docs/*.rst"
[testenv:benchmarks]
commands = pytest --benchmark-only tests/integration/benchmarks
[testenv:docs]
basepython = python3.7
extras = docs,cli
changedir = docs
commands =
xsdata init-config _static/config.sample.xml
python scripts/generate_defxml.py
sphinx-build -b html . _build
[testenv:build]
basepython = python3.7
skip_install = true
deps =
wheel
setuptools
twine
whitelist_externals = rm
commands =
rm -fr dist
python setup.py bdist_wheel sdist
twine check dist/*
[testenv:release]
basepython = python3
skip_install = true
deps = {[testenv:build]deps}
commands_pre =
{[testenv:build]commands}
commands =
twine upload --skip-existing dist/*
[testenv:testrelease]
basepython = python3
skip_install = true
deps = {[testenv:build]deps}
commands_pre =
{[testenv:build]commands}
commands =
twine upload --repository-url https://test.pypi.org/legacy/ --skip-existing dist/*