summary refs log tree commit diff stats
path: root/python/tests
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-07-05 12:40:46 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2023-07-07 12:49:22 +0200
commit3d7b89748afe9791a8568dfdb7d51fb2029bf8c2 (patch)
treec590f5a67be310b169eaabf8d6bd63e0af1031ae /python/tests
parent97c81ef4b8e203d9620fd46e7eb77004563e3675 (diff)
downloadfocaccia-qemu-3d7b89748afe9791a8568dfdb7d51fb2029bf8c2.tar.gz
focaccia-qemu-3d7b89748afe9791a8568dfdb7d51fb2029bf8c2.zip
python: bump minimum requirements so they are compatible with 3.12
There are many Python 3.12 issues right now, but a particularly
problematic one when debugging them is that one cannot even use
minreqs.txt in a Python 3.12 virtual environment to test with
locked package versions.

Bump the mypy and wrapt versions to fix this, while remaining
within the realm of versions compatible with Python 3.7.

This requires a workaround for a mypy false positive

    qemu/qmp/qmp_tui.py:350: error: Non-overlapping equality check (left operand type: "Literal[Runstate.DISCONNECTING]", right operand type: "Literal[Runstate.IDLE]")  [comparison-overlap]

where mypy does not realize that self.disconnect() could change
the value of self.runstate.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/minreqs.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/python/tests/minreqs.txt b/python/tests/minreqs.txt
index 1ce72cef6d..979461be6b 100644
--- a/python/tests/minreqs.txt
+++ b/python/tests/minreqs.txt
@@ -28,7 +28,7 @@ avocado-framework==90.0
 # Linters
 flake8==5.0.4
 isort==5.1.2
-mypy==0.780
+mypy==1.4.0
 pylint==2.17.3
 
 # Transitive flake8 dependencies
@@ -37,12 +37,11 @@ pycodestyle==2.9.1
 pyflakes==2.5.0
 
 # Transitive mypy dependencies
-mypy-extensions==0.4.3
-typed-ast==1.4.0
-typing-extensions==4.5.0
+mypy-extensions==1.0.0
+typing-extensions==4.7.1
 
 # Transitive pylint dependencies
 astroid==2.15.4
 lazy-object-proxy==1.4.0
 toml==0.10.0
-wrapt==1.12.1
+wrapt==1.14.0