[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/11] python/qemu-ga-client: add entry point
From: |
John Snow |
Subject: |
[PATCH 10/11] python/qemu-ga-client: add entry point |
Date: |
Fri, 4 Jun 2021 11:55:31 -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>
---
python/qemu/qmp/qemu_ga_client.py | 2 --
python/setup.cfg | 1 +
2 files changed, 1 insertion(+), 2 deletions(-)
mode change 100755 => 100644 python/qemu/qmp/qemu_ga_client.py
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 d2938ad47c..67ac0b4211
--- 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 6b6be8b03c..7f3c59d74e 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
--
2.31.1
- [PATCH 03/11] scripts/qemu-ga-client: Fix exception handling, (continued)
- [PATCH 03/11] scripts/qemu-ga-client: Fix exception handling, John Snow, 2021/06/04
- [PATCH 01/11] scripts/qemu-ga-client: apply isort rules, John Snow, 2021/06/04
- [PATCH 05/11] scripts/qemu-ga-client: add module docstring, John Snow, 2021/06/04
- [PATCH 07/11] python/qmp: Correct type of QMPReturnValue, John Snow, 2021/06/04
- [PATCH 06/11] scripts/qemu-ga-client: apply (most) pylint rules, John Snow, 2021/06/04
- [PATCH 11/11] scripts/qemu-ga-client: Add forwarder shim, John Snow, 2021/06/04
- [PATCH 02/11] scripts/qemu-ga-client: apply (most) flake8 rules, John Snow, 2021/06/04
- [PATCH 08/11] scripts/qemu-ga-client: add mypy type hints, John Snow, 2021/06/04
- [PATCH 04/11] scripts/qemu-ga-client: replace deprecated optparse with argparse, John Snow, 2021/06/04
- [PATCH 09/11] scripts/qemu-ga-client: move to python/qemu/qmp/qemu_ga_client.py, John Snow, 2021/06/04
- [PATCH 10/11] python/qemu-ga-client: add entry point,
John Snow <=
- Re: [PATCH 00/11] python: move /scripts/qmp/gemu-ga-client.py to qemu.qmp package, John Snow, 2021/06/11