forked from akretion/nfselib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
39 lines (35 loc) · 804 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
[tox]
envlist = py36,py37,py38,py39,py310,pypy3
skip_missing_interpreters = true
[testenv]
extras = test
commands =
pytest --cov=./nfselib --cov-report=xml
[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://upload.pypi.org/legacy/ --skip-existing .tox/dist/*