<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/scripts/qmp/qom-fuse, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/scripts/qmp/qom-fuse?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/scripts/qmp/qom-fuse?h=master'/>
<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/qom-fuse: add redirection shim to python/qemu/qmp/qom-fuse.py</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c89b38cd0a9ec852ed5504b3083ca7592d76b730'/>
<id>urn:sha1:c89b38cd0a9ec852ed5504b3083ca7592d76b730</id>
<content type='text'>
By leaving the script absent for a commit, git-blame travels to the new
file instead of staying on the shim.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-id: 20210603003719.1321369-19-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: move to python/qemu/qmp/qom_fuse.py</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=173d185de98c4ee358e5615cedcd8773719586c0'/>
<id>urn:sha1:173d185de98c4ee358e5615cedcd8773719586c0</id>
<content type='text'>
Move qom-fuse over to the python package now that it passes the
linter. Update the import paradigms so that it continues to pass in the
context of the Python package.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-id: 20210603003719.1321369-18-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: add static type hints</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=30ec845c599acc0616a57811316bc506a08344f2'/>
<id>urn:sha1:30ec845c599acc0616a57811316bc506a08344f2</id>
<content type='text'>
Because fusepy does not have type hints, add some targeted warning
suppressions.

Namely, we need to allow subclassing something of an unknown type (in
qom_fuse.py), and we need to allow missing imports (recorded against
fuse itself) because mypy will be unable to import fusepy (even when
installed) as it has no types nor type stubs available.

Note: Until now, it was possible to run invocations like 'mypy qemu/'
from ./python and have that work. However, these targeted suppressions
require that you run 'mypy -p qemu/' instead. The correct, canonical
invocation is recorded in ./python/tests/mypy.sh and all of the various
CI invocations always use this correct form.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-id: 20210603003719.1321369-16-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: ensure QOMFuse.read always returns bytes</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2cea7134620749b106af167322d921716ef61144'/>
<id>urn:sha1:2cea7134620749b106af167322d921716ef61144</id>
<content type='text'>
- Use FuseOSError to signal ENOENT instead of returning it
- Wrap qom-get in str(), as we don't always know its type
- The empty return should be b'', not ''.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-id: 20210603003719.1321369-15-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: use QOMCommand.qom_list()</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=9ec8a3869480a9826ba77b480bb7ca567aa3d26b'/>
<id>urn:sha1:9ec8a3869480a9826ba77b480bb7ca567aa3d26b</id>
<content type='text'>
the qom_list method provides a type-safe object that's easier to type
check, so switch to using it.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-id: 20210603003719.1321369-14-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: Convert to QOMCommand</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2aa101799acf45fd5e4207fbec95d2ee9507bc54'/>
<id>urn:sha1:2aa101799acf45fd5e4207fbec95d2ee9507bc54</id>
<content type='text'>
Move qom-fuse onto the QOMCommand base established in
python/qemu/qmp/qom_common.py. The interface doesn't change
incompatibly, "qom-fuse mountpoint" still works as an invocation, and
QMP_SOCKET is still used as the environment variable.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-id: 20210603003719.1321369-13-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: Add docstrings</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=187be27c7bc66afaf8c90c3b8c302a55c8f9f7d6'/>
<id>urn:sha1:187be27c7bc66afaf8c90c3b8c302a55c8f9f7d6</id>
<content type='text'>
The methods inherited from fuse don't need docstrings; that's up to
fusepy to handle.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Message-id: 20210603003719.1321369-12-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: Apply pylint rules</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7552823a36d3b99598ec53431ff43774ce11e6f2'/>
<id>urn:sha1:7552823a36d3b99598ec53431ff43774ce11e6f2</id>
<content type='text'>
- Catch specific exceptions from QMP
- Reraise errors with explicit context
- method parameters should match parent's names

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-id: 20210603003719.1321369-11-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>scripts/qom-fuse: apply flake8 rules</title>
<updated>2021-06-18T20:10:06+00:00</updated>
<author>
<name>John Snow</name>
</author>
<published>2021-06-03T00:37:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=26c1ccadc41bf32a720faf4d652eae41c7e54d00'/>
<id>urn:sha1:26c1ccadc41bf32a720faf4d652eae41c7e54d00</id>
<content type='text'>
flake8 still has one warning because of the sys.path hack, but that will
be going away by the end of this patch series.

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Message-id: 20210603003719.1321369-9-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
</feed>
