mirror of
https://github.com/ceph/ceph
synced 2024-12-21 02:42:48 +00:00
cb8d906af5
While switching to python3, we need to make sure that we can import the qa/tasks (and others, but this starts with qa/tasks) on a python3 environment. To test this, we need to install teuthology into the test venv. Currently, teuthology is not py3 ready so this will fail. To test the current state of the qa/tasks directory with the ongoing work for python3 within teuthology, you can now do: TEUTHOLOGY_GIT=git+https://github.com/kshtsk/teuthology.git@wip-py3-compat \ tox -eimport-tasks This is using the current branch from https://github.com/ceph/teuthology/pull/1362 which does the work to make teuthology python3 ready. NOTE: This tox env is not activated by default. It's currently failing but it provides a way to iterate over the failures and once we have them fixed, we can activate the tox env during make-check. Signed-off-by: Thomas Bechtold <tbechtold@suse.com>
26 lines
582 B
INI
26 lines
582 B
INI
[tox]
|
|
envlist = flake8-py2, flake8-py3, mypy
|
|
skipsdist = True
|
|
|
|
[testenv:flake8-py2]
|
|
basepython = python2
|
|
deps=
|
|
flake8
|
|
commands=flake8 --select=F,E9 --exclude=venv,.tox
|
|
|
|
[testenv:flake8-py3]
|
|
basepython = python3
|
|
deps=
|
|
flake8
|
|
commands=flake8 --select=F,E9 --exclude=venv,.tox
|
|
|
|
[testenv:mypy]
|
|
basepython = python3
|
|
deps = mypy==0.770
|
|
commands = mypy {posargs:.}
|
|
|
|
[testenv:import-tasks]
|
|
basepython = python3
|
|
deps = {env:TEUTHOLOGY_GIT:git+https://github.com/ceph/teuthology.git@master}#egg=teuthology[coverage,orchestra,test]
|
|
commands = python test_import.py {posargs:tasks/**/*.py}
|