forked from meffie/molecule-proxmox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
107 lines (102 loc) · 1.98 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tox]
minversion = 4.11.4
env_list = py{310,311,312}-mol{600,603}
#
# Usage: tox [-e <enviroment>] [-- <pytest-options>]
# tox -l # to list environments
#
[testenv]
description = Run the tests
package = wheel
wheel_build_env = .pkg
deps =
pytest==7.4.4
ansible==9.1.0
molecule-plugins[docker]==23.5.0
mol600: molecule==6.0.0
mol603: molecule==6.0.3
passenv =
SSH_*
PROXMOX_*
commands =
pytest -v tests {posargs}
#
# Usage: tox -e dev
#
# To activate the development environment:
#
# deactivate
# source .tox/dev/bin/activate
#
# Then run molecule in the tests directory:
#
# cd tests
# BOX=<box> BOX_VERSION=<version> molecule test [-s <scenario>]
# cd ..
#
# Or run the tests with pytest:
#
# pytest --co tests # list tests
# pytest -v [-k <pattern>] tests # run tests
#
[testenv:dev]
description = Development environment
basepython = python3.12
usedevelop = True
deps =
pytest==7.4.4
ansible==9.1.0
molecule-plugins[docker]==23.5.0
molecule==6.0.3
passenv =
SSH_*
PROXMOX_*
commands =
#
# Usage: tox -e lint
#
[testenv:lint]
description = Run static checks
basepython = python3.12
deps =
collective.checkdocs==0.2
flake8==7.0.0
pyflakes==3.2.0
pylint==3.0.3
setuptools==69.0.3
yamllint==1.33.0
commands =
pyflakes src tests
yamllint src tests
#flake8 src tests
python setup.py -q checkdocs
#
# Usage: tox -e docs
#
[testenv:docs]
description = Build documentation
basepython = python3.12
changedir = docs
deps =
Sphinx==7.2.6
sphinx-rtd-theme==2.0.0
commands =
sphinx-build -M html source build
#
# Usage: tox -e release
#
# Note: Set TWINE env vars or ~/.pypirc before running.
#
[testenv:release]
basepython = python3.12
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL
deps =
build==1.0.3
twine==4.0.2
commands =
python -m build
twine check dist/*
twine upload --repository molecule-proxmox --skip-existing dist/*