<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/scripts/qmp/qom-tree, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/scripts/qmp/qom-tree?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/scripts/qmp/qom-tree?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-01-21T21:01:31+00:00</updated>
<entry>
<title>python: move qmp utilities to python/qemu/utils</title>
<updated>2022-01-21T21:01:31+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2022-01-10T23:28:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=0347c4c4cfed47e54d9dc275ceb28d35b250749f'/>
<id>urn:sha1:0347c4c4cfed47e54d9dc275ceb28d35b250749f</id>
<content type='text'>
In order to upload a QMP package to PyPI, I want to remove any scripts
that I am not 100% confident I want to support upstream, beyond our
castle walls.

Move most of our QMP utilities into the utils package so we can split
them out from the PyPI upload.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Beraldo Leal &lt;bleal@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qmp: redirect qom-xxx scripts to python/qemu/qmp/</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=908ff4b29f6ff8a990cc7e895feb4ebf9cf6d2c9'/>
<id>urn:sha1:908ff4b29f6ff8a990cc7e895feb4ebf9cf6d2c9</id>
<content type='text'>
Redirect to the new qom scripts. These forwarders can be deleted
eventually when there has been more time for the dust on the Python
packaging to settle and people understand how to find these commands.

Note: You can run these by setting $PYTHONPATH in your shell and then
running "python3 -m qemu.qmp.qom", or you can install the qemu namespace
package and use the "qom" or "qom-set" scripts.

I've written how to install the package elsewhere, but for the sake of
git-blame, cd to ./python, and then do:

- pip3 install [--user] [-e] .

--user will install to your local user install (will not work inside of
  a venv), omitting this flag installs to your system-wide packages
  (outside of a venv) or to your current virtual environment (inside the
  venv).

  When installing to a venv or to your system-wide packages, "qom"
  should be in your $PATH already. If you do a user install, you may
  need to add ~/.local/bin to your $PATH if you haven't already.

-e installs in editable mode: the installed package is effectively just
 a symlink to this folder; so changes to your git working tree are
 reflected in the installed package.

Note: installing these packages to an environment outside a venv can be
dangerous: Many QEMU scripts will begin to prefer the installed version
instead of the version directly in the tree. Use with caution. editable
mode is recommended when working outside of a venv.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-id: 20210603003719.1321369-7-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qmp: Fix shebang and imports</title>
<updated>2020-05-31T11:56:46+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2020-05-28T22:21:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c7b942d7f84ef54f266921bf7668d43f1f2c7c79'/>
<id>urn:sha1:c7b942d7f84ef54f266921bf7668d43f1f2c7c79</id>
<content type='text'>
There's more wrong with these scripts; They are in various stages of
disrepair. That's beyond the scope of this current patchset.

This just mechanically corrects the imports and the shebangs, as part of
ensuring that the python/qemu/lib refactoring didn't break anything
needlessly.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-Id: &lt;20200528222129.23826-2-jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qmp: Use Python 3 interpreter</title>
<updated>2020-05-31T11:56:46+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2020-05-12T10:32:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=06d4c71f4869386abf97f45f61c21e9dc449943f'/>
<id>urn:sha1:06d4c71f4869386abf97f45f61c21e9dc449943f</id>
<content type='text'>
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Message-Id: &lt;20200512103238.7078-4-philmd@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>drop "from __future__ import print_function"</title>
<updated>2020-02-07T14:15:16+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2020-02-04T16:06:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=423edd9a31b3c78007bb5d9c9a9b3c0c618a10a8'/>
<id>urn:sha1:423edd9a31b3c78007bb5d9c9a9b3c0c618a10a8</id>
<content type='text'>
This is only needed for Python 2, which we do not support anymore.

Cc: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Acked-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Acked-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20200204160604.19883-1-pbonzini@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
</content>
</entry>
<entry>
<title>Partially revert "python: futurize -f libfuturize.fixes.fix_absolute_import"</title>
<updated>2018-06-22T18:45:42+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2018-06-21T17:54:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bf20b675cc5a2568f1105c3577663978c5a13108'/>
<id>urn:sha1:bf20b675cc5a2568f1105c3577663978c5a13108</id>
<content type='text'>
Since commit 068cf7a44cd4d65c05aa877dbebced295be5ce44, qmp-shell
is broken:

  $ ./scripts/qmp/qmp-shell
  Traceback (most recent call last):
    File "./scripts/qmp/qmp-shell", line 70, in &lt;module&gt;
      from . import qmp
  ValueError: Attempted relative import in non-package

Relative imports don't work on scripts that are executed
directly, so revert the change on the scripts inside scripts/qmp.

Fixes: 068cf7a44cd4d65c05aa877dbebced295be5ce44
Reported-by: John Snow &lt;jsnow@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Message-Id: &lt;20180621175451.7948-1-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: futurize -f lib2to3.fixes.fix_has_key</title>
<updated>2018-06-08T17:39:24+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2018-06-08T12:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=d7a4228ebb0150e4c97a19077f3fac81d843e2c3'/>
<id>urn:sha1:d7a4228ebb0150e4c97a19077f3fac81d843e2c3</id>
<content type='text'>
Change "dict.has_key(key)" to "key in dict"

This is necessary for Python 3 compatibility.

Done using:

  $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
    sort -u | grep -v README.sh4)
  $ futurize -w -f lib2to3.fixes.fix_has_key $py

Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Message-Id: &lt;20180608122952.2009-5-ehabkost@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: futurize -f libfuturize.fixes.fix_absolute_import</title>
<updated>2018-06-08T17:39:24+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2018-06-08T12:29:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=068cf7a44cd4d65c05aa877dbebced295be5ce44'/>
<id>urn:sha1:068cf7a44cd4d65c05aa877dbebced295be5ce44</id>
<content type='text'>
Make implicit relative imports explicit and add "from __future__ import
absolute_import" at the top of each relevant module.

This is necessary for Python 3 compatibility.

Done using:

  $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
    sort -u | grep -v README.sh4)
  $ futurize -w -f libfuturize.fixes.fix_absolute_import $py

Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Message-Id: &lt;20180608122952.2009-3-ehabkost@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: futurize -f libfuturize.fixes.fix_print_with_import</title>
<updated>2018-06-08T17:39:24+00:00</updated>
<author>
<name>Eduardo Habkost</name>
</author>
<published>2018-06-08T12:29:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=f03868bd5653265e97b253102d77d83ea85efdea'/>
<id>urn:sha1:f03868bd5653265e97b253102d77d83ea85efdea</id>
<content type='text'>
Change all Python code to use print as a function.

This is necessary for Python 3 compatibility.

Done using:

  $ py=$( (g grep -l -E '^#!.*python';find -name '*.py' -printf '%P\n';) | \
    sort -u | grep -v README.sh4)
  $ futurize -w -f libfuturize.fixes.fix_print_with_import $py

Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Acked-by: Fam Zheng &lt;famz@redhat.com&gt;
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
Message-Id: &lt;20180608122952.2009-2-ehabkost@redhat.com&gt;
[ehabkost: fixup tests/docker/docker.py]
Signed-off-by: Eduardo Habkost &lt;ehabkost@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts: Add support for path as argument of qom-tree</title>
<updated>2015-06-19T08:29:14+00:00</updated>
<author>
<name>Martin Cerveny</name>
</author>
<published>2015-05-13T12:14:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ff5397bc72a1716bb34302dd470343ebee7d6bf2'/>
<id>urn:sha1:ff5397bc72a1716bb34302dd470343ebee7d6bf2</id>
<content type='text'>
Add processing of optional argument path as "tree base".

Signed-off-by: Martin Cerveny &lt;M.Cerveny@computer.org&gt;
Signed-off-by: Andreas Färber &lt;afaerber@suse.de&gt;
</content>
</entry>
</feed>
