]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr: do not test with py37
authorKefu Chai <tchaikov@gmail.com>
Thu, 8 Dec 2022 16:49:37 +0000 (00:49 +0800)
committerAdam King <adking@redhat.com>
Mon, 12 Dec 2022 19:16:43 +0000 (14:16 -0500)
as we always test with ubuntu jammy, which does not provide python3.7:

py37: skipped because could not find python interpreter with spec(s): py37

so there is no point testing with python3.7.

also, in tox v4, it is not able to handle "key = value" anymore, where
value has newlines in it. so we need to find a better way passing
command line options to the test command.

this change partially reverts 2dd86c9e3eca6e14a04a821edf3a654f31da7a21

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit c67106b120c0289f0c26d2f89892e8954b3b57bd)

Conflicts:
src/pybind/mgr/tox.ini

src/pybind/mgr/tox.ini

index f24d1968a6210bd7437189f9af8d4cb40d1ed8e9..f692d8f451e9339c0e798a044376f21aab579639 100644 (file)
@@ -1,8 +1,6 @@
 [tox]
 envlist =
     py3,
-    py37,
-    lint,
     mypy,
     fix
     flake8
@@ -72,38 +70,6 @@ setenv =
 passenv =
     MYPYPATH
 basepython = python3
-mypy_args = --config-file=../../mypy.ini
-           -m alerts
-           -m balancer
-           -m cephadm
-           -m crash
-           -m dashboard
-           -m devicehealth
-           -m diskprediction_local
-           -m hello
-           -m influx
-           -m iostat
-           -m localpool
-           -m mds_autoscaler
-           -m mgr_module
-           -m mgr_util
-           -m mirroring
-           -m nfs
-           -m orchestrator
-           -m pg_autoscaler
-           -m progress
-           -m prometheus
-           -m rbd_support
-           -m rook
-           -m snap_schedule
-           -m selftest
-           -m stats
-           -m status
-           -m telegraf
-           -m telemetry
-           -m test_orchestrator
-           -m volumes
-           -m zabbix
 deps =
     -rrequirements.txt
     -c{toxinidir}/../../mypy-constrains.txt
@@ -115,9 +81,38 @@ deps =
     types-PyYAML
     types-jwt
 commands =
-    mypy {[testenv:mypy]mypy_args}
-    mypy --python-version 3.7 {[testenv:mypy]mypy_args}
-
+    mypy --config-file=../../mypy.ini \
+           -m alerts \
+           -m balancer \
+           -m cephadm \
+           -m crash \
+           -m dashboard \
+           -m devicehealth \
+           -m diskprediction_local \
+           -m hello \
+           -m influx \
+           -m iostat \
+           -m localpool \
+           -m mds_autoscaler \
+           -m mgr_module \
+           -m mgr_util \
+           -m mirroring \
+           -m nfs \
+           -m orchestrator \
+           -m pg_autoscaler \
+           -m progress \
+           -m prometheus \
+           -m rbd_support \
+           -m rook \
+           -m snap_schedule \
+           -m selftest \
+           -m stats \
+           -m status \
+           -m telegraf \
+           -m telemetry \
+           -m test_orchestrator \
+           -m volumes \
+           -m zabbix
 
 [testenv:test]
 setenv = {[testenv]setenv}