Skip to content

RFC Python: Switch to externally hosted qemu.qmp dependency

John Snow qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Python: Update mypy dependency to >= 0.780python/Pipfile.lock python/setup.cfg+49 -170 replies
2/9Python: update isort dependencypython/Pipfile.lock python/setup.cfg+5 -50 replies
3/9scripts/qmp: Update 'qmp-shell' forwarder stubscripts/qmp/qmp-shell+34 -50 replies
4/9scripts/qmp: update remaining forwarder stubsscripts/qmp/qemu-ga-client scripts/qmp/qom-fuse scripts/qmp/qom-get +3 more+211 -300 replies
5/9scripts/qmp: delete qmp.py script stubscripts/qmp/qmp+0 -110 replies
6/9scripts: remove sys.path hacks for qemu/qemu.qmpscripts/device-crash-test scripts/render_block_graph.py scripts/simplebench/bench_block_job.py+26 -90 replies
7/9iotests/testenv: initialize an iotests venvtests/qemu-iotests/requirements.txt tests/qemu-iotests/testenv.py+70 -70 replies
8/9Python: delete qemu.qmppython/qemu/qmp/__init__.py python/qemu/qmp/aqmp_tui.py python/qemu/qmp/error.py +12 more+2 -50920 replies
9/9(WIP) Python: update Pipfilepython/Pipfile.lock+17 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/9] Python: Switch to externally hosted qemu.qmp dependency

Based-on: <[email protected]>

Hi, this series is part of an effort to publish the qemu.qmp package on PyPI. It is the last of three series to complete this work:

(1) Switch the new Async QMP library in to python/qemu/qmp
(2) Fork python/qemu/qmp out into its own repository, with updated GitLab CI/CD targets to build packages.
--> (3) Update qemu.git to install qemu.qmp from PyPI,
and then delete python/qemu/qmp.

This series is meant to apply to qemu.git after the standalone repository for qemu.qmp is established and the library is uploaded to PyPI.

However, I thought I'd share it now so that everyone can see what kind of work is involved post-split on the qemu.git end.

RFC notes:

- The version pinning and Pipenv patches will have to be redone later with proper versions and checksums and so on, but this is a workable example you can experiment with in the meantime.

- The testenv.py changes to use a VENV could be bolstered even further to use a checksum of requirements.txt to make that system a little bit more robust, but I wanted to share the WIP draft to get some early impressions.

... And that's it! These three series complete the split and leave us with a published QMP library on PyPI.

Happy New Years, everyone. See you in 2022 :)

John Snow (9):
Python: Update mypy dependency to >= 0.780
Python: update isort dependency scripts/qmp: Update 'qmp-shell' forwarder stub scripts/qmp: update remaining forwarder stubs scripts/qmp: delete qmp.py script stub
scripts: remove sys.path hacks for qemu/qemu.qmp iotests/testenv: initialize an iotests venv
Python: delete qemu.qmp
(WIP) Python: update Pipfile

 python/Pipfile.lock                    |  86 ++-
 python/qemu/qmp/__init__.py            |  59 --
 python/qemu/qmp/aqmp_tui.py            | 652 -----------------
 python/qemu/qmp/error.py               |  50 --
 python/qemu/qmp/events.py              | 717 -------------------
 python/qemu/qmp/legacy.py              | 319 ---------
 python/qemu/qmp/message.py             | 209 ------
 python/qemu/qmp/models.py              | 146 ----
 python/qemu/qmp/protocol.py            | 922 -------------------------
 python/qemu/qmp/py.typed               |   0
 python/qemu/qmp/qmp_client.py          | 655 ------------------
 python/qemu/qmp/qmp_shell.py           | 537 --------------
 python/qemu/qmp/util.py                | 217 ------
 python/qemu/utils/qom_fuse.py          |   1 -
 python/setup.cfg                       |  31 +-
 python/tests/protocol.py               | 583 ----------------
 scripts/device-crash-test              |  11 +-
 scripts/qmp/qemu-ga-client             |  40 +-
 scripts/qmp/qmp                        |  11 -
 scripts/qmp/qmp-shell                  |  39 +-
 scripts/qmp/qom-fuse                   |  40 +-
 scripts/qmp/qom-get                    |  40 +-
 scripts/qmp/qom-list                   |  40 +-
 scripts/qmp/qom-set                    |  40 +-
 scripts/qmp/qom-tree                   |  41 +-
 scripts/render_block_graph.py          |  13 +-
 scripts/simplebench/bench_block_job.py |  11 +-
 tests/qemu-iotests/requirements.txt    |   3 +
 tests/qemu-iotests/testenv.py          |  74 +-
 29 files changed, 412 insertions(+), 5175 deletions(-)
 delete mode 100644 python/qemu/qmp/__init__.py
 delete mode 100644 python/qemu/qmp/aqmp_tui.py
 delete mode 100644 python/qemu/qmp/error.py
 delete mode 100644 python/qemu/qmp/events.py
 delete mode 100644 python/qemu/qmp/legacy.py
 delete mode 100644 python/qemu/qmp/message.py
 delete mode 100644 python/qemu/qmp/models.py
 delete mode 100644 python/qemu/qmp/protocol.py
 delete mode 100644 python/qemu/qmp/py.typed
 delete mode 100644 python/qemu/qmp/qmp_client.py
 delete mode 100644 python/qemu/qmp/qmp_shell.py
 delete mode 100644 python/qemu/qmp/util.py
 delete mode 100644 python/tests/protocol.py
 delete mode 100755 scripts/qmp/qmp
 create mode 100644 tests/qemu-iotests/requirements.txt
Signature · 1 line
2.31.1