From: "Daniel P. Berrangé" <berrange@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: Eduardo Habkost <eduardo@habkost.net>,
Markus Armbruster <armbru@redhat.com>,
qemu-devel <qemu-devel@nongnu.org>,
Cleber Rosa <crosa@redhat.com>
Subject: Re: [PATCH v3 0/2] python: a few improvements to qmp-shell
Date: Tue, 8 Feb 2022 08:56:25 +0000 [thread overview]
Message-ID: <YgIwObmUKckefAOR@redhat.com> (raw)
In-Reply-To: <CAFn=p-btgUv5WKGOj0GyyU17vsOWkBT4_Xu=vzxsL7FH1dbjhw@mail.gmail.com>
On Mon, Feb 07, 2022 at 04:05:47PM -0500, John Snow wrote:
> On Fri, Jan 28, 2022 at 11:12 AM Daniel P. Berrangé <berrange@redhat.com> wrote:
> >
> > This makes the qmp-shell program a little more pleasant to use when you
> > are just trying to spawn a throw-away QEMU process to query some info
> > from.
> >
> > First it introduces a 'qmp-shell-wrap' command that takes a QEMU command
> > line instead of QMP socket, and spawns QEMU automatically, so its life
> > is tied to that of the shell.
> >
> > Second it adds ability to log QMP commands/responses to a file that can
> > be queried with 'jq' to extract information. This is good for commands
> > which return huge JSON docs.
> >
> > In v3:
> >
> > - Add qmp-shell-wrap to setup.cfg entry points
> >
> > In v2:
> >
> > - Unlink unix socket path on exit
> > - Fix default command name
> > - Deal with flake8/pylint warnings
> >
> > Daniel P. Berrangé (2):
> > python: introduce qmp-shell-wrap convenience tool
> > python: support recording QMP session to a file
> >
> > python/qemu/aqmp/qmp_shell.py | 88 ++++++++++++++++++++++++++++++++---
> > python/setup.cfg | 4 ++
> > scripts/qmp/qmp-shell-wrap | 11 +++++
> > 3 files changed, 96 insertions(+), 7 deletions(-)
> > create mode 100755 scripts/qmp/qmp-shell-wrap
> >
> > --
> > 2.34.1
> >
> >
>
> Great, thanks! I rebased patch 1/2 myself as a courtesy and have staged these.
>
> --js
>
> (fwiw: using pip, it seems like the wrapper script works just fine. it
> appears as though using 'python3 setup.py install' does indeed cause
> issues here. I have a patch I'll send soon that discourages the direct
> setup.py invocation to avoid frustration in the future.)
I've only ever used pip to install from pypi or remote git archives.
How do you use it to install from your local git checkout
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-02-08 10:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-28 16:11 [PATCH v3 0/2] python: a few improvements to qmp-shell Daniel P. Berrangé
2022-01-28 16:11 ` [PATCH v3 1/2] python: introduce qmp-shell-wrap convenience tool Daniel P. Berrangé
2022-01-28 16:11 ` [PATCH v3 2/2] python: support recording QMP session to a file Daniel P. Berrangé
2022-02-07 21:05 ` [PATCH v3 0/2] python: a few improvements to qmp-shell John Snow
2022-02-08 8:56 ` Daniel P. Berrangé [this message]
2022-02-08 17:27 ` John Snow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YgIwObmUKckefAOR@redhat.com \
--to=berrange@redhat.com \
--cc=armbru@redhat.com \
--cc=crosa@redhat.com \
--cc=eduardo@habkost.net \
--cc=jsnow@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.