diff mbox series

[02/15] python/qmp: add qom script entry points

Message ID 20201021185208.1611145-3-jsnow@redhat.com
State New
Headers show
Series python: absorb scripts/qmp/qom-* tooling | expand

Commit Message

John Snow Oct. 21, 2020, 6:51 p.m. UTC
Add the 'qom', 'qom-set', 'qom-get', 'qom-list', and 'qom-tree' scripts
to the qemu.qmp package. When you install this package, these scripts
will become available on your command line.

Signed-off-by: John Snow <jsnow@redhat.com>
---
 python/setup.cfg | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Philippe Mathieu-Daudé Oct. 24, 2020, 8 p.m. UTC | #1
On 10/21/20 8:51 PM, John Snow wrote:
> Add the 'qom', 'qom-set', 'qom-get', 'qom-list', and 'qom-tree' scripts

> to the qemu.qmp package. When you install this package, these scripts

> will become available on your command line.

> 

> Signed-off-by: John Snow <jsnow@redhat.com>

> ---

>   python/setup.cfg | 8 ++++++++

>   1 file changed, 8 insertions(+)


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

Patch

diff --git a/python/setup.cfg b/python/setup.cfg
index 08def52372..506944ef6b 100755
--- a/python/setup.cfg
+++ b/python/setup.cfg
@@ -18,6 +18,14 @@  classifiers =
 python_requires = >= 3.6
 packages = find_namespace:
 
+[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
+
 [flake8]
 extend-ignore = E722  # Prefer pylint's bare-except checks to flake8's