qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 01/15] python: create qemu.core package


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 01/15] python: create qemu.core package
Date: Wed, 14 Oct 2020 20:03:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 10/14/20 4:29 PM, John Snow wrote:
move python/qemu/*.py to python/qemu/core/*.py and update import
directives across the tree.

This is done to create a PEP420 namespace package, in which we may
create subpackages. To do this, the namespace directory ("qemu") should
not have any modules in it. Those files will go in a new 'core'
subpackage instead.

Bolster the core/__init__.py module, making the top-level classes and
functions from this package available directly inside the `qemu.core`
namespace.

This facilitates the convenient shorthand:

from qemu.core import QEMUQtestMachine, QEMUMonitorProtocol

Signed-off-by: John Snow <jsnow@redhat.com>
---
  python/{qemu => }/.isort.cfg              |  0
  python/qemu/__init__.py                   | 11 ------
  python/qemu/{ => core}/.flake8            |  0
  python/qemu/core/__init__.py              | 44 +++++++++++++++++++++++
  python/qemu/{ => core}/accel.py           |  0
  python/qemu/{ => core}/console_socket.py  |  0
  python/qemu/{ => core}/machine.py         |  0
  python/qemu/{ => core}/pylintrc           |  0
  python/qemu/{ => core}/qmp.py             |  0
  python/qemu/{ => core}/qtest.py           |  0
  scripts/device-crash-test                 |  2 +-
  scripts/qmp/qemu-ga-client                |  2 +-
  scripts/qmp/qmp                           |  2 +-
  scripts/qmp/qmp-shell                     |  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             |  6 ++--
  scripts/simplebench/bench_block_job.py    |  4 +--
  tests/acceptance/avocado_qemu/__init__.py |  2 +-
  tests/acceptance/boot_linux.py            |  3 +-
  tests/acceptance/virtio_check_params.py   |  2 +-
  tests/acceptance/virtio_version.py        |  2 +-
  tests/migration/guestperf/engine.py       |  2 +-
  tests/qemu-iotests/235                    |  2 +-
  tests/qemu-iotests/297                    |  2 +-
  tests/qemu-iotests/300                    |  4 +--
  tests/qemu-iotests/iotests.py             |  4 +--
  tests/vm/basevm.py                        |  6 ++--
  31 files changed, 71 insertions(+), 41 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]