(cherry picked from commit
a44de38b61d598fb0512ea48da0de4179d39b804)
Conflicts:
src/pybind/mgr/tox.ini
The rest of this commit was not picked:
> mgr_util: add CephfsClient implementation
>
> This pulls parts of the VolumesClient implementation into mgr_util to
> make the CephFS specific pieces available to other mgr modules. To
> reduce code duplication the VolumeClient now extends the CephfsClient
> class to add the volume specific methods.
> Signed-off-by: Jan Fajerski <jfajerski@suse.com>
[tox]
envlist = py3, mypy
skipsdist = true
+requires = cython
[testenv]
-setenv = UNITTEST = true
-deps = -r requirements.txt
+setenv =
+ UNITTEST = true
+ PYTHONPATH = ../../../build/lib/cython_modules/lib.3/
+ LD_LIBRARY_PATH = ../../../build/lib
+deps =
+ cython
+ -r requirements.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
mypy==0.770
commands = mypy --config-file=../../mypy.ini \