-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
28 lines (25 loc) · 885 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
[tox]
skip_missing_interpreters = True
envlist =
py{py3,38,39,310,311,312}{,-nodep},buildcheck
[testenv]
recreate = True
commands = python test.py
[testenv:py{py3,38,39,310,311,312}-nodep]
recreate = True
# install without deps to simulate when many packages are being installed and this one gets installed
# before 'regex'. We want to avoid any installation errors/warnings if 'regex' isn't available (yet)
install_command = python -m pip install --no-deps {opts} {packages}
allowlist_externals = bash
commands =
# no output from python itself (site.py) loading our .pth file
bash -c 'python -c "pass" 2>&1 | ( ! grep . )'
# 're' still works
python -c "import re; assert re.match('a', 'a')"
[testenv:buildcheck]
skip_install = True
deps = twine
commands =
python setup.py check --metadata --strict
python setup.py sdist
twine check --strict dist/*