]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: tox.ini include cython bindings. 34438/head
authorJan Fajerski <jfajerski@suse.com>
Wed, 18 Dec 2019 10:35:40 +0000 (11:35 +0100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 7 Apr 2020 22:11:04 +0000 (00:11 +0200)
(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>

src/pybind/mgr/tox.ini

index e5222ef63604a9e72d1fcd995c78160ab1e30c43..10694f05995e1aa4891c719df34760b9fbedeb7f 100644 (file)
@@ -1,15 +1,22 @@
 [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 \