-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox-req.ini
42 lines (37 loc) · 1017 Bytes
/
tox-req.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
# Create and fix requirements files
# drain-swamp IS NOT a venv manager. tox and pyenv are venv managers
# cd .tox && tox -r --root=.. -c ../tox-req.ini -e base --workdir=.; cd - &>/dev/null
# cd .tox && tox -r --root=.. -c ../tox-req.ini -e docs --workdir=.; cd - &>/dev/null
[tox]
env_list =
base, docs
toxworkdir = {env:TOXWORKDIR:.tox}
skip_missing_interpreters = true
[testenv]
usedevelop = False
download = True
# Important. The entire point is to ensure use of the appropriate python interpreter
basepython =
docs: python3.10
base: python3.9
passenv = *
setenv =
PYTHON_COLORS=0
TOXINIDIR = {toxinidir}
[testenv:docs]
description = fix requirements for .doc/.venv
deps =
click
-r docs/requirements.in
allowlist_externals =
reqs
commands =
reqs fix --path={env:TOXINIDIR} --venv-relpath=.doc/.venv
[testenv:base]
description = fix requirements for .venv
deps =
wreck
allowlist_externals =
reqs
commands =
reqs fix --path={env:TOXINIDIR} --venv-relpath=.venv