]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python/qemu-ga-client: add entry point
authorJohn Snow <jsnow@redhat.com>
Fri, 4 Jun 2021 15:55:31 +0000 (11:55 -0400)
committerJohn Snow <jsnow@redhat.com>
Fri, 18 Jun 2021 20:10:06 +0000 (16:10 -0400)
Remove the shebang, and add a package-defined entry point instead. Now,
it can be accessed using 'qemu-ga-client' from the command line after
installing the package.

The next commit adds a forwarder shim that allows the running of this
script without needing to install the package again.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20210604155532.1499282-11-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/qmp/qemu_ga_client.py [changed mode: 0755->0644]
python/setup.cfg

old mode 100755 (executable)
new mode 100644 (file)
index d2938ad..67ac0b4
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-
 """
 QEMU Guest Agent Client
 
index 6b6be8b03c62bdb16c490b78b7f0382fcdca9e9d..7f3c59d74e82777d300a16f230106310a8f9bd14 100644 (file)
@@ -50,6 +50,7 @@ console_scripts =
     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
 
 [flake8]
 extend-ignore = E722  # Prefer pylint's bare-except checks to flake8's