]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python: move qmp utilities to python/qemu/utils
authorJohn Snow <jsnow@redhat.com>
Mon, 10 Jan 2022 23:28:54 +0000 (18:28 -0500)
committerJohn Snow <jsnow@redhat.com>
Fri, 21 Jan 2022 21:01:31 +0000 (16:01 -0500)
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>
python/qemu/utils/qemu_ga_client.py [moved from python/qemu/qmp/qemu_ga_client.py with 100% similarity]
python/qemu/utils/qom.py [moved from python/qemu/qmp/qom.py with 100% similarity]
python/qemu/utils/qom_common.py [moved from python/qemu/qmp/qom_common.py with 100% similarity]
python/qemu/utils/qom_fuse.py [moved from python/qemu/qmp/qom_fuse.py with 100% similarity]
python/setup.cfg
scripts/qmp/qemu-ga-client
scripts/qmp/qom-fuse
scripts/qmp/qom-get
scripts/qmp/qom-list
scripts/qmp/qom-set
scripts/qmp/qom-tree

index aa238d8bc9b2973d46d40a743cda312ed5c3e47f..04a41ef1a08432bfe23dea9c56cbf148eeccff42 100644 (file)
@@ -60,13 +60,13 @@ tui =
 
 [options.entry_points]
 console_scripts =
-    qom = qemu.qmp.qom:main
-    qom-set = qemu.qmp.qom:QOMSet.entry_point
-    qom-get = qemu.qmp.qom:QOMGet.entry_point
-    qom-list = qemu.qmp.qom:QOMList.entry_point
-    qom-tree = qemu.qmp.qom:QOMTree.entry_point
-    qom-fuse = qemu.qmp.qom_fuse:QOMFuse.entry_point [fuse]
-    qemu-ga-client = qemu.qmp.qemu_ga_client:main
+    qom = qemu.utils.qom:main
+    qom-set = qemu.utils.qom:QOMSet.entry_point
+    qom-get = qemu.utils.qom:QOMGet.entry_point
+    qom-list = qemu.utils.qom:QOMList.entry_point
+    qom-tree = qemu.utils.qom:QOMTree.entry_point
+    qom-fuse = qemu.utils.qom_fuse:QOMFuse.entry_point [fuse]
+    qemu-ga-client = qemu.utils.qemu_ga_client:main
     qmp-shell = qemu.qmp.qmp_shell:main
     aqmp-tui = qemu.aqmp.aqmp_tui:main [tui]
 
@@ -80,7 +80,7 @@ python_version = 3.6
 warn_unused_configs = True
 namespace_packages = True
 
-[mypy-qemu.qmp.qom_fuse]
+[mypy-qemu.utils.qom_fuse]
 # fusepy has no type stubs:
 allow_subclassing_any = True
 
index 102fd2cad93fcc76e428e841241a5d97b06577d2..56edd0234a62cc25a069bb6a65dc552a2949f8c6 100755 (executable)
@@ -4,7 +4,7 @@ import os
 import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-from qemu.qmp import qemu_ga_client
+from qemu.utils import qemu_ga_client
 
 
 if __name__ == '__main__':
index a58c8ef9793b387eeaec6777a5c355887faa8ea1..d453807b273f5576c90c8809df2bbf9e3ef94118 100755 (executable)
@@ -4,7 +4,7 @@ import os
 import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-from qemu.qmp.qom_fuse import QOMFuse
+from qemu.utils.qom_fuse import QOMFuse
 
 
 if __name__ == '__main__':
index e4f3e0c01381a0240379016340d4fd60b690687c..04ebe052e82a97bbadde1dfc76c485fc575212ff 100755 (executable)
@@ -4,7 +4,7 @@ import os
 import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-from qemu.qmp.qom import QOMGet
+from qemu.utils.qom import QOMGet
 
 
 if __name__ == '__main__':
index 7a071a54e1e7785142b2dc262ac45dce34432e22..853b85a8d3fc4e032f40747c3c082943bc8845b6 100755 (executable)
@@ -4,7 +4,7 @@ import os
 import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-from qemu.qmp.qom import QOMList
+from qemu.utils.qom import QOMList
 
 
 if __name__ == '__main__':
index 9ca9e2ba106b158e0926184533b9a08f138525a9..06820feec424ecd30235c6ed90065fba541e097c 100755 (executable)
@@ -4,7 +4,7 @@ import os
 import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-from qemu.qmp.qom import QOMSet
+from qemu.utils.qom import QOMSet
 
 
 if __name__ == '__main__':
index 7d0ccca3a4dd87edb92b1ac7a6e72006787d5ba1..760e172277e9b66ff2a6d770b526847369f2fdb4 100755 (executable)
@@ -4,7 +4,7 @@ import os
 import sys
 
 sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
-from qemu.qmp.qom import QOMTree
+from qemu.utils.qom import QOMTree
 
 
 if __name__ == '__main__':