-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox-req.ini
59 lines (53 loc) · 1.93 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Create and fix requirements files
# drain-swamp IS NOT a venv manager. tox and pyenv are venv managers
# rm -rf build/lib; cd .tox && tox -r --root=.. -c ../tox-req.ini -e base --workdir=. -vvv; cd - &>/dev/null
# rm -rf build/lib; cd .tox && tox -r --root=.. -c ../tox-req.ini -e docs --workdir=.; cd - &>/dev/null
# rm -rf build/lib; cd .tox && tox -r --root=.. -c ../tox-req.ini -e rst2html5 --workdir=.; cd - &>/dev/null
[tox]
isolated_build=True
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}
allowlist_externals =
reqs
[testenv:docs]
description = fix requirements for .doc/.venv
# do not assume .lock and .unlock files already exist
deps =
-c requirements/pins.shared.in
-r requirements/prod.in
-r docs/pip-tools.in
commands =
# requires requirements/*.lock and requirements/*.unlock from testenv:base
# This will overwrite requirements/prod.shared.{lock|unlock}
# Do not run this command last
{envpython} src/wreck/cli_dependencies.py fix --path={env:TOXINIDIR} --venv-relpath='.doc/.venv'
[testenv:base]
description = fix requirements for .venv
# do not assume .lock and .unlock files already exist
deps =
-r requirements/prod.in
-r requirements/pip-tools.in
commands =
# Run this command first and last. With docs in between
{envpython} src/wreck/cli_dependencies.py fix --path={env:TOXINIDIR} --venv-relpath='.venv'
[testenv:rst2html5]
description = fix requirements for .rst2html5
# do not assume .lock and .unlock files already exist
deps =
-r requirements/rst2html5.in
-r docs/pip-tools.in
commands =
{envpython} src/wreck/cli_dependencies.py fix --path={env:TOXINIDIR} --venv-relpath='.rst2html5'