-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
115 lines (109 loc) · 2.25 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
108
109
110
111
112
113
114
115
[tox]
minversion = 4.11.4
env_list =
# py27-rf413
# py{36,37}-rf611
py{38,39,310,311,312}-rf611
py{38,39,310,311,312}-rf700
#
# Usage: tox [-e <enviroment>] [-- <pytest-options>]
# tox -l # to list environments
#
[testenv]
description = Run the tests
package = wheel
wheel_build_env = .pkg
deps =
py27-rf413: robotframework==4.1.3
py{36,37}-rf611: robotframework==6.1.1
py{38,39,310,311,312}-rf611: robotframework==6.1.1
py{38,39,310,311,312}-rf700: robotframework==7.0.0
commands =
python --version
python -c 'import OpenAFSLibrary; print(OpenAFSLibrary.__version__)'
#
# 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
robotframework==7.0.0
commands =
#
# Usage: tox -e lint
#
[testenv:lint]
description = Run static checks
basepython = python3.11
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 OpenAFSLibrary tests
yamllint OpenAFSLibrary tests
flake8 OpenAFSLibrary tests
python setup.py -q checkdocs
#
# Usage: tox -e docs
#
[testenv:docs]
description = Build documentation
basepython = python3.11
changedir = docs
deps =
Sphinx==7.2.6
sphinx-rtd-theme==2.0.0
commands =
sphinx-build -M html source build
#
# Usage: tox -e build
#
[testenv:build]
basepython = python3.11
deps =
build==1.0.3
twine==4.0.2
commands =
python -m build
twine check dist/*
#
# Usage: tox -e release
#
# Note: Set TWINE env vars or ~/.pypirc before running.
#
[testenv:release]
basepython = python3.11
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 robotframework-openafslibrary --skip-existing dist/*