The src/cephadm/tox.ini and src/pybind/mgr/tox.ini both don't run
on older versions of tox.
When using tox 2.9.1 both fail for different reasons.
`src/cephadm/tox.ini` fails because `skipsdist=true` only works if it's
directly under the `[tox]` section.
`src/pybind/mgr/tox.ini` fails because older versions of tox can't find
the requirements.txt because they don't like whitespace between the `-r`
and `requirements.txt`.
This patch changes the tox.ini's to be backwards compatible for those
who happen to be running slightly older version of tox.
Signed-off-by: Matthew Oliver <moliver@suse.com>
(cherry picked from commit
a1fd9d11e7e11a2478f268251a4a02f2d260fc1c)
[tox]
envlist = py27, py3, mypy
+skipsdist=true
[testenv]
-skipsdist=true
skip_install=true
deps =
pytest
LD_LIBRARY_PATH = ../../../build/lib
deps =
cython
- -r requirements.txt
+ -rrequirements.txt
commands = pytest -v --cov --cov-append --cov-report= --doctest-modules {posargs:mgr_util.py tests/ cephadm/ pg_autoscaler/ progress/}
[testenv:mypy]
basepython = python3
deps =
cython
- -r requirements.txt
+ -rrequirements.txt
mypy==0.770
commands = mypy --config-file=../../mypy.ini \
cephadm/module.py \