[PULL 00/17] Python patches

John Snow posted 17 patches 2 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220421151600.984189-1-jsnow@redhat.com
Maintainers: John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>, Beraldo Leal <bleal@redhat.com>, Markus Armbruster <armbru@redhat.com>, Vladimir Sementsov-Ogievskiy <v.sementsov-og@mail.ru>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>
There is a newer version of this series
python/README.rst                             |   2 +-
python/qemu/qmp/README.rst                    |   9 -
python/qemu/aqmp/__init__.py                  |  59 ---
python/qemu/aqmp/legacy.py                    | 177 -------
python/qemu/aqmp/py.typed                     |   0
python/qemu/machine/machine.py                |  18 +-
python/qemu/machine/qtest.py                  |   2 +-
python/qemu/qmp/__init__.py                   | 445 ++----------------
python/qemu/{aqmp => qmp}/error.py            |   0
python/qemu/{aqmp => qmp}/events.py           |   2 +-
python/qemu/qmp/legacy.py                     | 315 +++++++++++++
python/qemu/{aqmp => qmp}/message.py          |   0
python/qemu/{aqmp => qmp}/models.py           |   0
python/qemu/{aqmp => qmp}/protocol.py         |   4 +-
python/qemu/{aqmp => qmp}/qmp_client.py       |  16 +-
python/qemu/{aqmp => qmp}/qmp_shell.py        |  11 +-
.../qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} |  17 +-
python/qemu/{aqmp => qmp}/util.py             |   0
python/qemu/utils/qemu_ga_client.py           |   4 +-
python/qemu/utils/qom.py                      |   2 +-
python/qemu/utils/qom_common.py               |   4 +-
python/qemu/utils/qom_fuse.py                 |   2 +-
python/setup.cfg                              |  11 +-
python/tests/protocol.py                      |  14 +-
scripts/cpu-x86-uarch-abi.py                  |   2 +-
scripts/device-crash-test                     |   4 +-
scripts/qmp/qmp-shell                         |   2 +-
scripts/qmp/qmp-shell-wrap                    |   2 +-
scripts/render_block_graph.py                 |   4 +-
scripts/simplebench/bench_block_job.py        |   5 +-
tests/qemu-iotests/iotests.py                 |   3 +-
tests/qemu-iotests/tests/mirror-top-perms     |  11 +-
32 files changed, 422 insertions(+), 725 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 (100%)
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 (99%)
rename python/qemu/{aqmp => qmp}/qmp_client.py (97%)
rename python/qemu/{aqmp => qmp}/qmp_shell.py (98%)
rename python/qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} (98%)
rename python/qemu/{aqmp => qmp}/util.py (100%)
[PULL 00/17] Python patches
Posted by John Snow 2 years ago
The following changes since commit b1efff6bf031a93b5b8bf3912ddc720cc1653a61:

  Merge tag 'pull-ppc-20220420-2' of https://gitlab.com/danielhb/qemu into staging (2022-04-20 21:54:24 -0700)

are available in the Git repository at:

  https://gitlab.com/jsnow/qemu.git tags/python-pull-request

for you to fetch changes up to 47430775ed1a48d7beb2c7b8d7feaab73104ec46:

  python/qmp: remove pylint workaround from legacy.py (2022-04-21 11:01:00 -0400)

----------------------------------------------------------------
Python patches

This PR finalizes the switch from Luiz's QMP library to mine.

----------------------------------------------------------------

John Snow (17):
  python/machine: permanently switch to AQMP
  scripts/bench-block-job: switch to AQMP
  iotests/mirror-top-perms: switch to AQMP
  iotests: switch to AQMP
  python/aqmp: add explicit GPLv2 license to legacy.py
  python/aqmp: relicense as LGPLv2+
  python/qmp-shell: relicense as LGPLv2+
  python/aqmp-tui: relicense as LGPLv2+
  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'
  python/qmp: remove pylint workaround from legacy.py

 python/README.rst                             |   2 +-
 python/qemu/qmp/README.rst                    |   9 -
 python/qemu/aqmp/__init__.py                  |  59 ---
 python/qemu/aqmp/legacy.py                    | 177 -------
 python/qemu/aqmp/py.typed                     |   0
 python/qemu/machine/machine.py                |  18 +-
 python/qemu/machine/qtest.py                  |   2 +-
 python/qemu/qmp/__init__.py                   | 445 ++----------------
 python/qemu/{aqmp => qmp}/error.py            |   0
 python/qemu/{aqmp => qmp}/events.py           |   2 +-
 python/qemu/qmp/legacy.py                     | 315 +++++++++++++
 python/qemu/{aqmp => qmp}/message.py          |   0
 python/qemu/{aqmp => qmp}/models.py           |   0
 python/qemu/{aqmp => qmp}/protocol.py         |   4 +-
 python/qemu/{aqmp => qmp}/qmp_client.py       |  16 +-
 python/qemu/{aqmp => qmp}/qmp_shell.py        |  11 +-
 .../qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} |  17 +-
 python/qemu/{aqmp => qmp}/util.py             |   0
 python/qemu/utils/qemu_ga_client.py           |   4 +-
 python/qemu/utils/qom.py                      |   2 +-
 python/qemu/utils/qom_common.py               |   4 +-
 python/qemu/utils/qom_fuse.py                 |   2 +-
 python/setup.cfg                              |  11 +-
 python/tests/protocol.py                      |  14 +-
 scripts/cpu-x86-uarch-abi.py                  |   2 +-
 scripts/device-crash-test                     |   4 +-
 scripts/qmp/qmp-shell                         |   2 +-
 scripts/qmp/qmp-shell-wrap                    |   2 +-
 scripts/render_block_graph.py                 |   4 +-
 scripts/simplebench/bench_block_job.py        |   5 +-
 tests/qemu-iotests/iotests.py                 |   3 +-
 tests/qemu-iotests/tests/mirror-top-perms     |  11 +-
 32 files changed, 422 insertions(+), 725 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 (100%)
 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 (99%)
 rename python/qemu/{aqmp => qmp}/qmp_client.py (97%)
 rename python/qemu/{aqmp => qmp}/qmp_shell.py (98%)
 rename python/qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} (98%)
 rename python/qemu/{aqmp => qmp}/util.py (100%)

-- 
2.34.1

Re: [PULL 00/17] Python patches
Posted by Richard Henderson 2 years ago
On 4/21/22 08:15, John Snow wrote:
> The following changes since commit b1efff6bf031a93b5b8bf3912ddc720cc1653a61:
> 
>    Merge tag 'pull-ppc-20220420-2' of https://gitlab.com/danielhb/qemu into staging (2022-04-20 21:54:24 -0700)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/jsnow/qemu.git tags/python-pull-request
> 
> for you to fetch changes up to 47430775ed1a48d7beb2c7b8d7feaab73104ec46:
> 
>    python/qmp: remove pylint workaround from legacy.py (2022-04-21 11:01:00 -0400)
> 
> ----------------------------------------------------------------
> Python patches
> 
> This PR finalizes the switch from Luiz's QMP library to mine.

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/7.1 as appropriate.


r~



> 
> ----------------------------------------------------------------
> 
> John Snow (17):
>    python/machine: permanently switch to AQMP
>    scripts/bench-block-job: switch to AQMP
>    iotests/mirror-top-perms: switch to AQMP
>    iotests: switch to AQMP
>    python/aqmp: add explicit GPLv2 license to legacy.py
>    python/aqmp: relicense as LGPLv2+
>    python/qmp-shell: relicense as LGPLv2+
>    python/aqmp-tui: relicense as LGPLv2+
>    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'
>    python/qmp: remove pylint workaround from legacy.py
> 
>   python/README.rst                             |   2 +-
>   python/qemu/qmp/README.rst                    |   9 -
>   python/qemu/aqmp/__init__.py                  |  59 ---
>   python/qemu/aqmp/legacy.py                    | 177 -------
>   python/qemu/aqmp/py.typed                     |   0
>   python/qemu/machine/machine.py                |  18 +-
>   python/qemu/machine/qtest.py                  |   2 +-
>   python/qemu/qmp/__init__.py                   | 445 ++----------------
>   python/qemu/{aqmp => qmp}/error.py            |   0
>   python/qemu/{aqmp => qmp}/events.py           |   2 +-
>   python/qemu/qmp/legacy.py                     | 315 +++++++++++++
>   python/qemu/{aqmp => qmp}/message.py          |   0
>   python/qemu/{aqmp => qmp}/models.py           |   0
>   python/qemu/{aqmp => qmp}/protocol.py         |   4 +-
>   python/qemu/{aqmp => qmp}/qmp_client.py       |  16 +-
>   python/qemu/{aqmp => qmp}/qmp_shell.py        |  11 +-
>   .../qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} |  17 +-
>   python/qemu/{aqmp => qmp}/util.py             |   0
>   python/qemu/utils/qemu_ga_client.py           |   4 +-
>   python/qemu/utils/qom.py                      |   2 +-
>   python/qemu/utils/qom_common.py               |   4 +-
>   python/qemu/utils/qom_fuse.py                 |   2 +-
>   python/setup.cfg                              |  11 +-
>   python/tests/protocol.py                      |  14 +-
>   scripts/cpu-x86-uarch-abi.py                  |   2 +-
>   scripts/device-crash-test                     |   4 +-
>   scripts/qmp/qmp-shell                         |   2 +-
>   scripts/qmp/qmp-shell-wrap                    |   2 +-
>   scripts/render_block_graph.py                 |   4 +-
>   scripts/simplebench/bench_block_job.py        |   5 +-
>   tests/qemu-iotests/iotests.py                 |   3 +-
>   tests/qemu-iotests/tests/mirror-top-perms     |  11 +-
>   32 files changed, 422 insertions(+), 725 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 (100%)
>   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 (99%)
>   rename python/qemu/{aqmp => qmp}/qmp_client.py (97%)
>   rename python/qemu/{aqmp => qmp}/qmp_shell.py (98%)
>   rename python/qemu/{aqmp/aqmp_tui.py => qmp/qmp_tui.py} (98%)
>   rename python/qemu/{aqmp => qmp}/util.py (100%)
>