Revision | 0347c4c4cfed47e54d9dc275ceb28d35b250749f (tree) |
---|---|
Time | 2022-01-22 06:01:31 |
Author | John Snow <jsnow@redh...> |
Commiter | John Snow |
python: move qmp utilities to python/qemu/utils
In order to upload a QMP package to PyPI, I want to remove any scripts
that I am not 100% confident I want to support upstream, beyond our
castle walls.
Move most of our QMP utilities into the utils package so we can split
them out from the PyPI upload.
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Beraldo Leal <bleal@redhat.com>
@@ -60,13 +60,13 @@ tui = | ||
60 | 60 | |
61 | 61 | [options.entry_points] |
62 | 62 | console_scripts = |
63 | - qom = qemu.qmp.qom:main | |
64 | - qom-set = qemu.qmp.qom:QOMSet.entry_point | |
65 | - qom-get = qemu.qmp.qom:QOMGet.entry_point | |
66 | - qom-list = qemu.qmp.qom:QOMList.entry_point | |
67 | - qom-tree = qemu.qmp.qom:QOMTree.entry_point | |
68 | - qom-fuse = qemu.qmp.qom_fuse:QOMFuse.entry_point [fuse] | |
69 | - qemu-ga-client = qemu.qmp.qemu_ga_client:main | |
63 | + qom = qemu.utils.qom:main | |
64 | + qom-set = qemu.utils.qom:QOMSet.entry_point | |
65 | + qom-get = qemu.utils.qom:QOMGet.entry_point | |
66 | + qom-list = qemu.utils.qom:QOMList.entry_point | |
67 | + qom-tree = qemu.utils.qom:QOMTree.entry_point | |
68 | + qom-fuse = qemu.utils.qom_fuse:QOMFuse.entry_point [fuse] | |
69 | + qemu-ga-client = qemu.utils.qemu_ga_client:main | |
70 | 70 | qmp-shell = qemu.qmp.qmp_shell:main |
71 | 71 | aqmp-tui = qemu.aqmp.aqmp_tui:main [tui] |
72 | 72 |
@@ -80,7 +80,7 @@ python_version = 3.6 | ||
80 | 80 | warn_unused_configs = True |
81 | 81 | namespace_packages = True |
82 | 82 | |
83 | -[mypy-qemu.qmp.qom_fuse] | |
83 | +[mypy-qemu.utils.qom_fuse] | |
84 | 84 | # fusepy has no type stubs: |
85 | 85 | allow_subclassing_any = True |
86 | 86 |
@@ -4,7 +4,7 @@ import os | ||
4 | 4 | import sys |
5 | 5 | |
6 | 6 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) |
7 | -from qemu.qmp import qemu_ga_client | |
7 | +from qemu.utils import qemu_ga_client | |
8 | 8 | |
9 | 9 | |
10 | 10 | if __name__ == '__main__': |
@@ -4,7 +4,7 @@ import os | ||
4 | 4 | import sys |
5 | 5 | |
6 | 6 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) |
7 | -from qemu.qmp.qom_fuse import QOMFuse | |
7 | +from qemu.utils.qom_fuse import QOMFuse | |
8 | 8 | |
9 | 9 | |
10 | 10 | if __name__ == '__main__': |
@@ -4,7 +4,7 @@ import os | ||
4 | 4 | import sys |
5 | 5 | |
6 | 6 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) |
7 | -from qemu.qmp.qom import QOMGet | |
7 | +from qemu.utils.qom import QOMGet | |
8 | 8 | |
9 | 9 | |
10 | 10 | if __name__ == '__main__': |
@@ -4,7 +4,7 @@ import os | ||
4 | 4 | import sys |
5 | 5 | |
6 | 6 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) |
7 | -from qemu.qmp.qom import QOMList | |
7 | +from qemu.utils.qom import QOMList | |
8 | 8 | |
9 | 9 | |
10 | 10 | if __name__ == '__main__': |
@@ -4,7 +4,7 @@ import os | ||
4 | 4 | import sys |
5 | 5 | |
6 | 6 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) |
7 | -from qemu.qmp.qom import QOMSet | |
7 | +from qemu.utils.qom import QOMSet | |
8 | 8 | |
9 | 9 | |
10 | 10 | if __name__ == '__main__': |
@@ -4,7 +4,7 @@ import os | ||
4 | 4 | import sys |
5 | 5 | |
6 | 6 | sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python')) |
7 | -from qemu.qmp.qom import QOMTree | |
7 | +from qemu.utils.qom import QOMTree | |
8 | 8 | |
9 | 9 | |
10 | 10 | if __name__ == '__main__': |