From: John Snow Date: Fri, 4 Jun 2021 15:55:31 +0000 (-0400) Subject: python/qemu-ga-client: add entry point X-Git-Tag: v6.1.0-rc0~66^2~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e7c2a0de74d56c3f47205df3dcf68ed7d43d30d;p=thirdparty%2Fqemu.git python/qemu-ga-client: add entry point 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 Message-id: 20210604155532.1499282-11-jsnow@redhat.com Signed-off-by: John Snow --- diff --git a/python/qemu/qmp/qemu_ga_client.py b/python/qemu/qmp/qemu_ga_client.py old mode 100755 new mode 100644 index d2938ad47ce..67ac0b42112 --- a/python/qemu/qmp/qemu_ga_client.py +++ b/python/qemu/qmp/qemu_ga_client.py @@ -1,5 +1,3 @@ -#!/usr/bin/env python3 - """ QEMU Guest Agent Client diff --git a/python/setup.cfg b/python/setup.cfg index 6b6be8b03c6..7f3c59d74e8 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -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