forked from CS-SI/eodag-sentinelsat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
25 lines (22 loc) · 758 Bytes
/
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
[tox]
envlist = py3, pre-commit, pypi
skipdist = true
[testenv]
deps = pytest
usedevelop=True
commands = pytest {posargs:--ignore=tests/test_end_to_end.py}
[testenv:pre-commit]
usedevelop = false
changedir = {toxinidir}
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files
[testenv:pypi]
skip_install = true
# To prevent from installing eodag and the dev deps set in testenv
deps = sphinx
allowlist_externals = bash
commands =
# Check that the long description is ready to be published on PyPI without errors
bash -c 'ERROR=$(\{ python setup.py --long-description | rst2html.py >/dev/null;\} 2>&1) && if [[ ! -z $ERROR ]];'\
'then echo "README.rst is incompatible with PyPI reST renderer." && echo $ERROR && exit 1; fi'