]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: Fix tox warning about PYTHONPATH 37414/head
authorVolker Theile <vtheile@suse.com>
Thu, 1 Oct 2020 13:14:08 +0000 (15:14 +0200)
committerVolker Theile <vtheile@suse.com>
Thu, 1 Oct 2020 13:14:08 +0000 (15:14 +0200)
Get rid of the warning "WARNING: Discarding $PYTHONPATH from environment, to override specify PYTHONPATH in 'passenv' in your configuration." by declaring "passenv=PYTHONPATH" according to the tox documentation.

> PYTHONPATH will be passed down if explicitly defined. If PYTHONPATH exists in the host environment but is not declared in passenv a warning will be emitted.

See https://tox.readthedocs.io/en/latest/config.html?highlight=passenv#conf-passenv.

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/tox.ini

index a4438cff326faf32eb7bfd1053ad42c814157e04..efe18ffc8d7fe5029b266beb5d04e1a85760a4f9 100644 (file)
@@ -35,6 +35,8 @@ deps =
     {[base]deps}
     {[base-test]deps}
     -rrequirements-extra.txt
+passenv =
+    PYTHONPATH
 setenv =
     CFLAGS = -DXMLSEC_NO_SIZE_T
     PYTHONUNBUFFERED=1
@@ -159,6 +161,8 @@ description =
 deps =
     {[base]deps}
     {[base-test]deps}
+passenv =
+    PYTHONPATH
 setenv =
     UNITTEST = true
     PYTHONPATH=$PYTHONPATH:..