qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/9] Python: Switch to externally hosted qemu.qmp dependency
@ 2021-12-17  2:29 John Snow
  2021-12-17  2:29 ` [RFC PATCH 1/9] Python: Update mypy dependency to >= 0.780 John Snow
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: John Snow @ 2021-12-17  2:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Eduardo Habkost, Vladimir Sementsov-Ogievskiy,
	qemu-block, Markus Armbruster, Hanna Reitz, Cleber Rosa,
	John Snow

Based-on: <20211215193939.3768033-1-jsnow@redhat.com>

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

-- 
2.31.1




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-12-17  2:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17  2:29 [RFC PATCH 0/9] Python: Switch to externally hosted qemu.qmp dependency John Snow
2021-12-17  2:29 ` [RFC PATCH 1/9] Python: Update mypy dependency to >= 0.780 John Snow
2021-12-17  2:29 ` [RFC PATCH 2/9] Python: update isort dependency John Snow
2021-12-17  2:29 ` [RFC PATCH 3/9] scripts/qmp: Update 'qmp-shell' forwarder stub John Snow
2021-12-17  2:29 ` [RFC PATCH 4/9] scripts/qmp: update remaining forwarder stubs John Snow
2021-12-17  2:29 ` [RFC PATCH 5/9] scripts/qmp: delete qmp.py script stub John Snow
2021-12-17  2:29 ` [RFC PATCH 6/9] scripts: remove sys.path hacks for qemu/qemu.qmp John Snow
2021-12-17  2:29 ` [RFC PATCH 7/9] iotests/testenv: initialize an iotests venv John Snow
2021-12-17  2:29 ` [RFC PATCH 8/9] Python: delete qemu.qmp John Snow
2021-12-17  2:29 ` [RFC PATCH 9/9] (WIP) Python: update Pipfile John Snow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).