forked from ARMmbed/mbed-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (49 loc) · 1.06 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
[tox]
envlist = dev,linting,checknews,py36,py38,py39
minversion = 3.3.0
# Activate isolated build environment. tox will use a virtual environment
# to build a source distribution from the source tree.
isolated_build = True
[testenv:linting]
skip_install = True
deps =
pre-commit
commands = pre-commit run --all-files
[testenv]
deps =
-rrequirements-test.txt
commands = pytest {posargs}
[testenv:dev]
usedevelop = True
envdir = .venv
commands =
deps =
-rrequirements-test.txt
-rrequirements-dev.txt
[testenv:checknews]
skip_install = True
deps =
towncrier
commands = python -m towncrier.check
[testenv:preprelease]
usedevelop = True
allowlist_externals = git
passenv =
HOME
GIT_TOKEN
deps =
mbed-tools-ci-scripts
pre-commit
commands =
{toxinidir}/ci_scripts/prep-release
[testenv:pypirelease]
usedevelop = True
deps =
twine
setuptools>=42
wheel
setuptools_scm[toml]>=3.4
commands =
python setup.py clean --all sdist --formats gztar bdist_wheel
python -m twine check dist/*
python -m twine upload {posargs} dist/*