Python: move /scripts/qmp/qom* to /python/qemu/qmp/qom*
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest19 patches 5 repliesIn review
- v272 patches 0 repliesSuperseded
- v115 patches 8 repliesSuperseded
Changes in v3 from the cover letter
- Technically, I sent two versions of this before, a long time ago. This has been cleaned up and based on the latest origin/master.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/19 | python/pipenv: Update Pipfile.lockpython/ | +88 | 0 replies | |
| 2/19 | python/qmp: Fix type of SocketAddrTpython/ | +1 | 1 reply | |
| 3/19 | python/qmp: add parse_address classmethodpython/ scripts/ | +28 | 0 replies | |
| 4/19 | python/qmp: Add qom script rewritespython/ python/ | +440 | 0 replies | |
| 5/19 | python/qmp: add qom script entry pointspython/ | +8 | 0 replies | |
| 6/19 | scripts/qmp: redirect qom-xxx scripts to python/qemu/qmp/scripts/ scripts/ scripts/ +1 more | +16 | 0 replies | |
| 7/19 | scripts/qom-fuse: apply isort rulesscripts/ | +9 | 0 replies | |
| 8/19 | scripts/qom-fuse: apply flake8 rulesscripts/ | +43 | 1 reply | |
| 9/19 | python: Add 'fh' to known-good variable namespython/ | +4 | 0 replies | |
| 10/19 | scripts/qom-fuse: Apply pylint rulesscripts/ | +8 | 0 replies | |
| 11/19 | scripts/qom-fuse: Add docstringsscripts/ | +19 | 0 replies | |
| 12/19 | scripts/qom-fuse: Convert to QOMCommandscripts/ | +46 | 0 replies | |
| 13/19 | scripts/qom-fuse: use QOMCommand.qom_list()scripts/ | +8 | 1 reply | |
| 14/19 | scripts/qom-fuse: ensure QOMFuse.read always returns bytesscripts/ | +3 | 0 replies | |
| 15/19 | scripts/qom-fuse: add static type hintspython/ scripts/ | +25 | 0 replies | |
| 16/19 | python: add optional FUSE dependenciespython/ python/ | +14 | 0 replies | |
| 17/19 | scripts/qom-fuse: move to python/qemu/qmp/qom_fuse.pypython/ | +2 | 0 replies | |
| 18/19 | scripts/qom-fuse: add redirection shim to python/qemu/qmp/qom-fuse.pyscripts/ | +11 | 0 replies | |
| 19/19 | python/qmp: add fuse command to 'qom' toolspython/ python/ | +13 | 1 reply |
Reviews trailers per patch
10 of 19 patches have a Reviewed-by or Acked-by.
| Patch | Philippe Mathieu-Daudé |
|---|---|
| 1/19 | |
| 2/19 | R-b |
| 3/19 | |
| 4/19 | |
| 5/19 | R-b |
| 6/19 | R-b |
| 7/19 | R-b |
| 8/19 | R-b |
| 9/19 | |
| 10/19 | R-b |
| 11/19 | |
| 12/19 | |
| 13/19 | R-b |
| 14/19 | R-b |
| 15/19 | |
| 16/19 | |
| 17/19 | |
| 18/19 | R-b |
| 19/19 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/19] Python: move /scripts/qmp/qom* to /python/qemu/qmp/qom*
GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-package-qom
CI: https://gitlab.com/jsnow/qemu/-/pipelines/313932818
Hello!
------
This series applies the usual linting cleanups to modernize the qom tools and then integrates them into the python packaging hierarchy.
This will help prevent further bitrot of these tools.
I don't expect or need a detailed review of the QOM tools themselves -- these tools are not used during build OR testing, and some are fairly bitrotted in places.
However, some details of how the python packaging system is being utilized here may attract your attention and could be worth a look. (Patches 5-6 and 16-19 are the interesting ones.)
Since these scripts aren't critical, I'm OK with sending a fairly hasty PR to merge these sooner rather than later.
Overview:
---------
Patch 1: Update Pipfile.lock (See the commit as for why ...)
Patches 2-3: Correct some existing typing issues in qemu.qmp
Patch 4: Combine qom-set, qom-get, (etc) into one, newly written script that makes all of the command invocations, help text, etc. consistent. (I ask that review for this patch should be limited to critical
mistakes: I have no interest in developing the QOM tools further.)
Patches 5-6: Integrate the qom tools into the python package.
Patches 7-15: Delinting of the qom_fuse script. Similarly, I am not terribly interested in further improvements here, personally.
Patches 16-19: Integrating qom-fuse into the Python packaging directory; additional care is taken to ensure that "optional" dependencies like fusepy are handled well.
Changelog
---------
V3:
- Technically, I sent two versions of this before, a long time ago. This has been cleaned up and based on the latest origin/master.
John Snow (19):
python/pipenv: Update Pipfile.lock
python/qmp: Fix type of SocketAddrT
python/qmp: add parse_address classmethod
python/qmp: Add qom script rewrites
python/qmp: add qom script entry points
scripts/qmp: redirect qom-xxx scripts to python/qemu/qmp/ scripts/qom-fuse: apply isort rules
scripts/qom-fuse: apply flake8 rules
python: Add 'fh' to known-good variable names scripts/qom-fuse: Apply pylint rules
scripts/qom-fuse: Add docstrings
scripts/qom-fuse: Convert to QOMCommand
scripts/qom-fuse: use QOMCommand.qom_list() scripts/qom-fuse: ensure QOMFuse.read always returns bytes scripts/qom-fuse: add static type hints
python: add optional FUSE dependencies
scripts/qom-fuse: move to python/qemu/qmp/qom_fuse.py scripts/qom-fuse: add redirection shim to python/qemu/qmp/qom-fuse.py python/qmp: add fuse command to 'qom' tools
python/Pipfile.lock | 97 +++++++++++- python/qemu/qmp/__init__.py | 28 +++- python/qemu/qmp/qom.py | 272 ++++++++++++++++++++++++++++++++++ python/qemu/qmp/qom_common.py | 178 ++++++++++++++++++++++ python/qemu/qmp/qom_fuse.py | 206 +++++++++++++++++++++++++ python/setup.cfg | 33 ++++- scripts/qmp/qmp-shell | 21 +-- scripts/qmp/qom-fuse | 144 +----------------- scripts/qmp/qom-get | 66 +-------- scripts/qmp/qom-list | 63 +------- scripts/qmp/qom-set | 63 +------- scripts/qmp/qom-tree | 74 +-------- 12 files changed, 828 insertions(+), 417 deletions(-) create mode 100644 python/qemu/qmp/qom.py create mode 100644 python/qemu/qmp/qom_common.py create mode 100644 python/qemu/qmp/qom_fuse.py
Signature · 1 line
2.31.1