-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
tox.ini
72 lines (68 loc) · 1.4 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
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[tox]
envlist =
py{38,39,310,311,312},lint, docs
[testenv]
whitelist_externals =
mkdir
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}/webapp
GRAPHITE_NO_PREFIX=true
mysql: TEST_MYSQL=true
postgresql: TEST_POSTGRESQL=true
passenv = TEST_MYSQL_* TEST_POSTGRESQL_* TEST_REDIS_*
changedir = webapp
commands =
coverage run --branch --source=graphite manage.py test {posargs}
coverage xml
coverage report
deps =
coverage
cairocffi
django-tagging
pytz
mock
msgpack-python
git+https://github.com/graphite-project/whisper.git#egg=whisper
git+https://github.com/graphite-project/ceres.git#egg=ceres
pyparsing>=3.0.6
Django>=4.2,<5
urllib3
redis
rrdtool
mysql: mysqlclient
postgresql: psycopg2
pyhash: pyhash
[testenv:docs]
basepython = python3.10
changedir = docs
deps =
cairocffi
django-tagging
pytz
git+https://github.com/graphite-project/whisper.git#egg=whisper
git+https://github.com/graphite-project/ceres.git#egg=ceres
Django<5
pyparsing3: pyparsing>=3.0.6
alabaster==0.7.12
Sphinx==1.3.6
jinja2<3.1.0
sphinx_rtd_theme
urllib3
commands =
mkdir -p {envsitepackagesdir}/../storage/ceres
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:lint]
basepython = python3.12
changedir = {toxinidir}
deps =
flake8==3.7.9
commands =
flake8 --show-source