]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/tox.ini
import 15.2.2 octopus source
[ceph.git] / ceph / src / pybind / mgr / tox.ini
index 1227b33729eec9516b31c74d0296e9d6f513d184..e6a902a74763fe11765ae46adf6312dd767472b3 100644 (file)
@@ -1,16 +1,30 @@
 [tox]
 envlist = py3, mypy
 skipsdist = true
+requires = cython
 
 [testenv]
-setenv = UNITTEST = true
-deps = -r requirements.txt
-commands = pytest -v --cov --cov-append --cov-report=term --doctest-modules {posargs:mgr_util.py tests/ cephadm/ pg_autoscaler/ progress/}
+setenv =
+    UNITTEST = true
+    PYTHONPATH = ../../../build/lib/cython_modules/lib.3/
+    LD_LIBRARY_PATH = ../../../build/lib
+deps =
+    cython
+    -rrequirements.txt
+commands =
+    pytest -v --cov --cov-append --cov-report= --doctest-modules {posargs: \
+        mgr_util.py \
+        tests/ \
+        cephadm/ \
+        orchestrator/ \
+        pg_autoscaler/ \
+        progress/}
 
 [testenv:mypy]
 basepython = python3
 deps =
-    -r requirements.txt
+    cython
+    -rrequirements.txt
     mypy==0.770
 commands = mypy --config-file=../../mypy.ini \
            cephadm/module.py \