Python: delete synchronous qemu.qmp package
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest31 patches 14 repliesIn review
- v225 patches 61 repliesSuperseded
- v123 patches 0 repliesSuperseded
Changes in v3 from the cover letter
- Rebased on top of jsnow/python (For GitLab CI fixes)
- Added a new patch 001 to fix a typo Vladimir found.
- Tiny change in 006 due to the new patch 001
- Reworded subject of patch 007
- Changed import statement in patch 013 (Vladimir)
- Rebase-related changes in patch 021
- Removed 'aqmp' from internal variable names in 026
- Added new patch to rename aqmp-tui to qmp-tui in 027
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/31 | python/aqmp: use absolute import statementpython/ | +2 | 0 replies | |
| 2/31 | Python/aqmp: fix type definitions for mypy 0.920python/ | +3 | 0 replies | |
| 3/31 | python: update type hints for mypy 0.930python/ | +1 | 0 replies | |
| 4/31 | simplebench: Fix Python syntax error (reported by LGTM)scripts/ | +1 | 0 replies | |
| 5/31 | python/aqmp: fix docstring typopython/ | +1 | 1 reply | |
| 6/31 | python/aqmp: add __del__ method to legacy interfacepython/ | +18 | 0 replies | |
| 7/31 | python/aqmp: handle asyncio.TimeoutError on execute()python/ | +6 | 0 replies | |
| 8/31 | python/aqmp: copy type definitions from qmppython/ python/ | +30 | 1 reply | |
| 9/31 | python/aqmp: add SocketAddrT to package rootpython/ | +9 | 0 replies | |
| 10/31 | python/aqmp: rename AQMPError to QMPErrorpython/ python/ python/ +3 more | +21 | 1 reply | |
| 11/31 | python/qemu-ga-client: don't use deprecated CLI syntax in usage commentpython/ | +1 | 0 replies | |
| 12/31 | python/qmp: switch qemu-ga-client to AQMPpython/ | +11 | 0 replies | |
| 13/31 | python/qmp: switch qom tools to AQMPpython/ python/ python/ | +11 | 0 replies | |
| 14/31 | python/qmp: switch qmp-shell to AQMPpython/ python/ | +20 | 2 replies | |
| 15/31 | python: move qmp utilities to python/qemu/utilspython/ python/ python/ +8 more | +14 | 1 reply | |
| 16/31 | python: move qmp-shell under the AQMP packagepython/ python/ python/ +1 more | +3 | 1 reply | |
| 17/31 | python/machine: permanently switch to AQMPpython/ python/ | +8 | 0 replies | |
| 18/31 | scripts/cpu-x86-uarch-abi: fix CLI parsingscripts/ | +1 | 0 replies | |
| 19/31 | scripts/cpu-x86-uarch-abi: switch to AQMPscripts/ | +2 | 0 replies | |
| 20/31 | scripts/render-block-graph: switch to AQMPscripts/ | +3 | 0 replies | |
| 21/31 | scripts/bench-block-job: switch to AQMPscripts/ | +1 | 0 replies | |
| 22/31 | iotests/mirror-top-perms: switch to AQMPtests/ | +3 | 0 replies | |
| 23/31 | iotests: switch to AQMPtests/ | +1 | 2 replies | |
| 24/31 | python: temporarily silence pylint duplicate-code warningspython/ | +1 | 0 replies | |
| 25/31 | python/aqmp: take QMPBadPortError and parse_address from qemu.qmppython/ python/ python/ | +27 | 0 replies | |
| 26/31 | python/aqmp: fully separate from qmp.QEMUMonitorProtocolpython/ | +32 | 0 replies | |
| 27/31 | python/aqmp: copy qmp docstrings to qemu.aqmp.legacypython/ | +102 | 0 replies | |
| 28/31 | python: remove the old QMP packagepython/ python/ python/ +3 more | +4 | 0 replies | |
| 29/31 | python: re-enable pylint duplicate-code warningspython/ | +0 | 0 replies | |
| 30/31 | python: rename qemu.aqmp to qemu.qmppython/ python/ python/ +26 more | +69 | 1 reply | |
| 31/31 | python: rename 'aqmp-tui' to 'qmp-tui'python/ python/ | +9 | 1 reply |
Reviews trailers per patch
28 of 31 patches have a Reviewed-by or Acked-by.
| Patch | Vladimir Sementsov-Ogievskiy | Beraldo Leal | Daniel P. Berrangé | Philippe Mathieu-Daudé | John Snow |
|---|---|---|---|---|---|
| 1/31 | |||||
| 2/31 | |||||
| 3/31 | |||||
| 4/31 | R-b | R-b | |||
| 5/31 | R-b | ||||
| 6/31 | R-b | R-b | |||
| 7/31 | R-b | R-b | |||
| 8/31 | R-b | R-b | |||
| 9/31 | R-b | R-b | |||
| 10/31 | R-b | ||||
| 11/31 | R-b | R-b | |||
| 12/31 | R-b | R-b | |||
| 13/31 | R-b | R-b | |||
| 14/31 | R-b | ||||
| 15/31 | R-b | R-b | |||
| 16/31 | R-b | R-b R-b | |||
| 17/31 | R-b | R-b | |||
| 18/31 | R-b | R-b | |||
| 19/31 | R-b | R-b | R-b | ||
| 20/31 | R-b | R-b | |||
| 21/31 | R-b | R-b | |||
| 22/31 | R-b | R-b | |||
| 23/31 | R-b | R-b | |||
| 24/31 | R-b | ||||
| 25/31 | R-b | R-b | |||
| 26/31 | R-b | R-b | |||
| 27/31 | R-b | R-b | |||
| 28/31 | R-b | R-b | |||
| 29/31 | R-b | R-b | |||
| 30/31 | R-b | ||||
| 31/31 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v3 00/31] Python: delete synchronous qemu.qmp package
Based-on: <[email protected]>
(jsnow/python staging branch)
GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-qmp-legacy-switch
CI: https://gitlab.com/jsnow/qemu/-/pipelines/445163212
Hi, this series is part of an effort to publish the qemu.qmp package on PyPI. It is the first 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 swaps out qemu.qmp for qemu.aqmp permanently, instead of hiding it behind an environment variable toggle. This leaves us with just one QMP library to worry about. It also implements the rename of "qemu.aqmp" to "qemu.qmp".
I suspect the most potential disruption to iotest and avocado maintainers, as those two subsystems rely on the QMP features the most. Would appreciate at least an ACK from each of those camps if you're willing to give benefit-of-the-doubt on the actual Python code.
V3:
- Rebased on top of jsnow/python (For GitLab CI fixes)
- Added a new patch 001 to fix a typo Vladimir found.
- Tiny change in 006 due to the new patch 001
- Reworded subject of patch 007
- Changed import statement in patch 013 (Vladimir)
- Rebase-related changes in patch 021
- Removed 'aqmp' from internal variable names in 026
- Added new patch to rename aqmp-tui to qmp-tui in 027
V2:
- Integrate the renaming of qemu.aqmp to qemu.qmp in this series
- Minor bits and pieces.
John Snow (30):
python/aqmp: use absolute import statement Python/aqmp: fix type definitions for mypy 0.920
python: update type hints for mypy 0.930
python/aqmp: fix docstring typo
python/aqmp: add __del__ method to legacy interface python/aqmp: handle asyncio.TimeoutError on execute() python/aqmp: copy type definitions from qmp python/aqmp: add SocketAddrT to package root python/aqmp: rename AQMPError to QMPError python/qemu-ga-client: don't use deprecated CLI syntax in usage
comment
python/qmp: switch qemu-ga-client to AQMP
python/qmp: switch qom tools to AQMP
python/qmp: switch qmp-shell to AQMP
python: move qmp utilities to python/qemu/utils
python: move qmp-shell under the AQMP package python/machine: permanently switch to AQMP scripts/cpu-x86-uarch-abi: fix CLI parsing scripts/cpu-x86-uarch-abi: switch to AQMP scripts/render-block-graph: switch to AQMP scripts/bench-block-job: switch to AQMP iotests/mirror-top-perms: switch to AQMP
iotests: switch to AQMP
python: temporarily silence pylint duplicate-code warnings python/aqmp: take QMPBadPortError and parse_address from qemu.qmp python/aqmp: fully separate from qmp.QEMUMonitorProtocol python/aqmp: copy qmp docstrings to qemu.aqmp.legacy
python: remove the old QMP package
python: re-enable pylint duplicate-code warnings
python: rename qemu.aqmp to qemu.qmp
python: rename 'aqmp-tui' to 'qmp-tui'
Stefan Weil (1):
simplebench: Fix Python syntax error (reported by LGTM)
python/qemu/qmp/README.rst | 9 -
python/qemu/aqmp/__init__.py | 51 --
python/qemu/aqmp/legacy.py | 138 ------
python/qemu/aqmp/py.typed | 0
python/qemu/machine/machine.py | 18 +-
python/qemu/machine/qtest.py | 2 +-
python/qemu/qmp/__init__.py | 441 ++----------------
python/qemu/{aqmp => qmp}/error.py | 12 +-
python/qemu/{aqmp => qmp}/events.py | 6 +-
python/qemu/qmp/legacy.py | 319 +++++++++++++
python/qemu/{aqmp => qmp}/message.py | 0
python/qemu/{aqmp => qmp}/models.py | 0
python/qemu/{aqmp => qmp}/protocol.py | 33 +-
python/qemu/{aqmp => qmp}/qmp_client.py | 32 +-
python/qemu/qmp/qmp_shell.py | 31 +-
.../qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} | 14 +-
python/qemu/{aqmp => qmp}/util.py | 0
python/qemu/{qmp => utils}/qemu_ga_client.py | 24 +-
python/qemu/{qmp => utils}/qom.py | 5 +-
python/qemu/{qmp => utils}/qom_common.py | 9 +-
python/qemu/{qmp => utils}/qom_fuse.py | 11 +-
python/setup.cfg | 23 +-
python/tests/protocol.py | 14 +-
scripts/cpu-x86-uarch-abi.py | 7 +-
scripts/device-crash-test | 4 +-
scripts/qmp/qemu-ga-client | 2 +-
scripts/qmp/qom-fuse | 2 +-
scripts/qmp/qom-get | 2 +-
scripts/qmp/qom-list | 2 +-
scripts/qmp/qom-set | 2 +-
scripts/qmp/qom-tree | 2 +-
scripts/render_block_graph.py | 8 +-
scripts/simplebench/bench-example.py | 2 +-
scripts/simplebench/bench_block_job.py | 5 +-
tests/qemu-iotests/iotests.py | 2 +-
tests/qemu-iotests/tests/mirror-top-perms | 13 +-
36 files changed, 502 insertions(+), 743 deletions(-)
delete mode 100644 python/qemu/qmp/README.rst
delete mode 100644 python/qemu/aqmp/__init__.py
delete mode 100644 python/qemu/aqmp/legacy.py
delete mode 100644 python/qemu/aqmp/py.typed
rename python/qemu/{aqmp => qmp}/error.py (87%)
rename python/qemu/{aqmp => qmp}/events.py (99%)
create mode 100644 python/qemu/qmp/legacy.py
rename python/qemu/{aqmp => qmp}/message.py (100%)
rename python/qemu/{aqmp => qmp}/models.py (100%)
rename python/qemu/{aqmp => qmp}/protocol.py (97%)
rename python/qemu/{aqmp => qmp}/qmp_client.py (96%)
rename python/qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} (98%)
rename python/qemu/{aqmp => qmp}/util.py (100%)
rename python/qemu/{qmp => utils}/qemu_ga_client.py (94%)
rename python/qemu/{qmp => utils}/qom.py (99%)
rename python/qemu/{qmp => utils}/qom_common.py (95%)
rename python/qemu/{qmp => utils}/qom_fuse.py (97%)Signature · 1 line
2.31.1