<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/python, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/python?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/python?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-07-12T20:36:20Z</updated>
<entry>
<title>python: enable testing for 3.13</title>
<updated>2024-07-12T20:36:20Z</updated>
<author>
<name>John Snow</name>
<email>jsnow@redhat.com</email>
</author>
<published>2024-06-26T23:22:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=45b14be9b63ac3df9f2b31c249fc4520837c00b9'/>
<id>urn:sha1:45b14be9b63ac3df9f2b31c249fc4520837c00b9</id>
<content type='text'>
Python 3.13 is in beta and Fedora 41 is preparing to make it the default
system interpreter; enable testing for it.

(In the event problems develop prior to release, it should only impact
the check-python-tox job, which is not run by default and is allowed to
fail.)

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Tested-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-id: 20240626232230.408004-5-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: Do not use pylint 3.2.4 with python 3.8</title>
<updated>2024-07-12T20:36:20Z</updated>
<author>
<name>John Snow</name>
<email>jsnow@redhat.com</email>
</author>
<published>2024-06-26T23:22:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=c5be244534f918adf5aea0ced9cf13344be3e62b'/>
<id>urn:sha1:c5be244534f918adf5aea0ced9cf13344be3e62b</id>
<content type='text'>
There is a bug in this version,
see: https://github.com/pylint-dev/pylint/issues/9751

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-id: 20240626232230.408004-3-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: linter changes for pylint 3.x</title>
<updated>2024-07-12T20:36:20Z</updated>
<author>
<name>John Snow</name>
<email>jsnow@redhat.com</email>
</author>
<published>2024-06-26T23:22:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=84e327e8448eacef879a0f85d38d212b6f58ee4a'/>
<id>urn:sha1:84e327e8448eacef879a0f85d38d212b6f58ee4a</id>
<content type='text'>
New bleeding edge versions, new nits to iron out. This addresses the
'check-python-tox' optional GitLab test, while 'check-python-minreqs'
saw no regressions, since it's frozen on an older version of pylint.

Fixes:
qemu/machine/machine.py:345:52: E0606: Possibly using variable 'sock' before assignment (possibly-used-before-assignment)
qemu/utils/qemu_ga_client.py:168:4: R1711: Useless return at end of function or method (useless-return)

Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Message-id: 20240626232230.408004-2-jsnow@redhat.com
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: mkvenv: remove ensure command</title>
<updated>2024-06-08T08:33:39Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2023-08-08T08:07:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=fc00123f3abeb027cd51eb58ea8845377794b3bc'/>
<id>urn:sha1:fc00123f3abeb027cd51eb58ea8845377794b3bc</id>
<content type='text'>
This was used to bootstrap the venv with a TOML parser, after which
ensuregroup is used.  Now that we expect it to be present as a system
package (either tomli or, for Python 3.11, tomllib), it is not needed
anymore.

Note that this means that, when implemented, the hypothetical "isolated"
mode that does not use any system packages will only work with Python
3.11+.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>Revert "python: use vendored tomli"</title>
<updated>2024-06-08T08:33:39Z</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2023-08-08T23:10:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1f97715c8390e582f154d8b579c70779bd8c9bdf'/>
<id>urn:sha1:1f97715c8390e582f154d8b579c70779bd8c9bdf</id>
<content type='text'>
Now that Ubuntu 20.04 is not included anymore, there is no need to ship
it as part of QEMU; Ubuntu 22.04 includes it and Leap users anyway
need to install all the required dependencies from PyPI.

This mostly reverts commit ec77ee7634de123b7c899739711000fd21dab68b,
with just some changes to the wording.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>python/qemu/machine: add method to retrieve QEMUMachine::binary field</title>
<updated>2024-04-25T08:12:43Z</updated>
<author>
<name>Maksim Davydov</name>
<email>davydov-max@yandex-team.ru</email>
</author>
<published>2024-03-18T21:35:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=33956e476802a6ae9b9a8e047f6a78e09e9ae180'/>
<id>urn:sha1:33956e476802a6ae9b9a8e047f6a78e09e9ae180</id>
<content type='text'>
Add a supportive property to access the path to the QEMU binary

Signed-off-by: Maksim Davydov &lt;davydov-max@yandex-team.ru&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-ID: &lt;20240318213550.155573-4-davydov-max@yandex-team.ru&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>buildsys: Bump known good meson version to v1.2.3</title>
<updated>2023-11-24T15:21:55Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2023-11-09T16:05:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=1a1e889f3576f60f29ccb71a70f53907ad95a6a7'/>
<id>urn:sha1:1a1e889f3576f60f29ccb71a70f53907ad95a6a7</id>
<content type='text'>
We need meson v1.2.3 to build QEMU on macOS Sonoma.  It
also builds fine all our CI jobs (as tested by also bumping
"accepted" in pythondeps.toml), so let's use it as our
"good enough" packaged wheel.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1939
Suggested-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-ID: &lt;20231109160504.93677-2-philmd@linaro.org&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>python/machine.py: upgrade vm.cmd() method</title>
<updated>2023-10-12T18:21:43Z</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
<email>vsementsov@yandex-team.ru</email>
</author>
<published>2023-10-06T15:41:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=4e620ff48f31493d61c98c6770595b5b242b837d'/>
<id>urn:sha1:4e620ff48f31493d61c98c6770595b5b242b837d</id>
<content type='text'>
The method is not popular in iotests, we prefer use vm.qmp() and then
check success by hand. But that's not optimal. To simplify movement to
vm.cmd() let's support same interface improvements like in vm.qmp().

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 20231006154125.1068348-7-vsementsov@yandex-team.ru
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>python/qemu: rename command() to cmd()</title>
<updated>2023-10-12T18:21:43Z</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
<email>vsementsov@yandex-team.ru</email>
</author>
<published>2023-10-06T15:41:15Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=684750ab4f8a3ad69512b71532408be3ac2547d4'/>
<id>urn:sha1:684750ab4f8a3ad69512b71532408be3ac2547d4</id>
<content type='text'>
Use a shorter name. We are going to move in iotests from qmp() to
command() where possible. But command() is longer than qmp() and don't
look better. Let's rename.

You can simply grep for '\.command(' and for 'def command(' to check
that everything is updated (command() in tests/docker/docker.py is
unrelated).

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
Reviewed-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Cédric Le Goater &lt;clg@kaod.org&gt;
Reviewed-by: Juan Quintela &lt;quintela@redhat.com&gt;
Message-id: 20231006154125.1068348-6-vsementsov@yandex-team.ru
[vsementsov: also update three occurrences in
   tests/avocado/machine_aspeed.py and keep r-b]
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
<entry>
<title>python: rename QEMUMonitorProtocol.cmd() to cmd_raw()</title>
<updated>2023-10-12T18:21:43Z</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
<email>vsementsov@yandex-team.ru</email>
</author>
<published>2023-10-06T15:41:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=37274707f6f3868fae7e0055d9a703006fc142d0'/>
<id>urn:sha1:37274707f6f3868fae7e0055d9a703006fc142d0</id>
<content type='text'>
Having cmd() and command() methods in one class doesn't look good.
Rename cmd() to cmd_raw(), to show its meaning better.

We also want to rename command() to cmd() in future, so this commit is
a necessary step.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@yandex-team.ru&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 20231006154125.1068348-5-vsementsov@yandex-team.ru
Signed-off-by: John Snow &lt;jsnow@redhat.com&gt;
</content>
</entry>
</feed>
