mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
pybind/mgr: do not test with py37
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 2dd86c9e3e
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
parent
da40d84640
commit
c67106b120
@ -1,7 +1,6 @@
|
||||
[tox]
|
||||
envlist =
|
||||
py3,
|
||||
py37,
|
||||
mypy,
|
||||
fix
|
||||
flake8
|
||||
@ -71,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
|
||||
@ -114,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}
|
||||
|
Loading…
Reference in New Issue
Block a user