mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 05:54:25 +08:00
Python 2.6 seems to be harder and harder to run in tox if setuptools is not properly configured for it. It's still possible to run it and it still runs on travis.
58 lines
1.1 KiB
INI
58 lines
1.1 KiB
INI
[tox]
|
|
envlist = py27, py33, py34, py35, py36
|
|
[testenv]
|
|
deps =
|
|
pytest>=2.3.5, < 3.3
|
|
pytest-cache
|
|
# docopt for sith doctests
|
|
docopt
|
|
# coloroma for colored debug output
|
|
colorama
|
|
-rrequirements.txt
|
|
setenv =
|
|
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
|
# tox corrupts __pycache__, solution from here:
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
commands =
|
|
py.test {posargs:jedi test}
|
|
[testenv:py26]
|
|
deps =
|
|
unittest2
|
|
{[testenv]deps}
|
|
[testenv:py27]
|
|
deps =
|
|
# for testing the typing module
|
|
typing
|
|
# numpydoc for typing scipy stack
|
|
numpydoc
|
|
{[testenv]deps}
|
|
[testenv:py33]
|
|
deps =
|
|
typing
|
|
{[testenv]deps}
|
|
[testenv:py34]
|
|
deps =
|
|
typing
|
|
numpydoc
|
|
{[testenv]deps}
|
|
[testenv:py35]
|
|
deps =
|
|
numpydoc
|
|
{[testenv]deps}
|
|
[testenv:py36]
|
|
deps =
|
|
numpydoc
|
|
{[testenv]deps}
|
|
[testenv:cov]
|
|
deps =
|
|
coverage
|
|
numpydoc
|
|
{[testenv]deps}
|
|
commands =
|
|
coverage run --source jedi -m py.test
|
|
coverage report
|
|
[testenv:sith]
|
|
commands =
|
|
{envpython} -c "import os; a='{envtmpdir}'; os.path.exists(a) or os.makedirs(a)"
|
|
{envpython} sith.py --record {envtmpdir}/record.json random {posargs:jedi}
|