• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision0347c4c4cfed47e54d9dc275ceb28d35b250749f (tree)
Time2022-01-22 06:01:31
AuthorJohn Snow <jsnow@redh...>
CommiterJohn Snow

Log Message

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>

Change Summary

Incremental Difference

--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -60,13 +60,13 @@ tui =
6060
6161 [options.entry_points]
6262 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
7070 qmp-shell = qemu.qmp.qmp_shell:main
7171 aqmp-tui = qemu.aqmp.aqmp_tui:main [tui]
7272
@@ -80,7 +80,7 @@ python_version = 3.6
8080 warn_unused_configs = True
8181 namespace_packages = True
8282
83-[mypy-qemu.qmp.qom_fuse]
83+[mypy-qemu.utils.qom_fuse]
8484 # fusepy has no type stubs:
8585 allow_subclassing_any = True
8686
--- a/scripts/qmp/qemu-ga-client
+++ b/scripts/qmp/qemu-ga-client
@@ -4,7 +4,7 @@ import os
44 import sys
55
66 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
88
99
1010 if __name__ == '__main__':
--- a/scripts/qmp/qom-fuse
+++ b/scripts/qmp/qom-fuse
@@ -4,7 +4,7 @@ import os
44 import sys
55
66 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
88
99
1010 if __name__ == '__main__':
--- a/scripts/qmp/qom-get
+++ b/scripts/qmp/qom-get
@@ -4,7 +4,7 @@ import os
44 import sys
55
66 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
88
99
1010 if __name__ == '__main__':
--- a/scripts/qmp/qom-list
+++ b/scripts/qmp/qom-list
@@ -4,7 +4,7 @@ import os
44 import sys
55
66 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
88
99
1010 if __name__ == '__main__':
--- a/scripts/qmp/qom-set
+++ b/scripts/qmp/qom-set
@@ -4,7 +4,7 @@ import os
44 import sys
55
66 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
88
99
1010 if __name__ == '__main__':
--- a/scripts/qmp/qom-tree
+++ b/scripts/qmp/qom-tree
@@ -4,7 +4,7 @@ import os
44 import sys
55
66 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
88
99
1010 if __name__ == '__main__':