Skip to content

qapi: Clean up for Python 3.8

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3docs/about/build-platforms: Correct minimum supported Python versiondocs/about/build-platforms.rst+1 -11 reply
2/3qapi: Eliminate OrderedDictscripts/qapi/parser.py scripts/qapi/schema.py tests/qapi-schema/test-qapi.py+8 -191 reply
3/3qapi/introspect: Use @dataclass to simplifyscripts/qapi/introspect.py+5 -71 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchDaniel P. Berrangé
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] qapi: Clean up for Python 3.8

The QAPI code generator code still contains a few minor oddities to make it work with versions of Python we no longer support. Bury them.

I'm leaving two things for later because I don't know what to do about them:

* scripts/qapi/source.py has a "Replace with @dataclass in Python 3.7+" comment.

* scripts/qapi/introspect.py has a "Python 3.6 does not offer TypedDict constructs" comment.

While there, fix a missing version bump in build dependency documentation.

Markus Armbruster (3):
docs/about/build-platforms: Correct minimum supported Python version
qapi: Eliminate OrderedDict
qapi/introspect: Use @dataclass to simplify

 docs/about/build-platforms.rst |  2 +-
 scripts/qapi/introspect.py     | 12 +++++-------
 scripts/qapi/parser.py         |  5 ++---
 scripts/qapi/schema.py         | 11 +++++------
 tests/qapi-schema/test-qapi.py | 11 +----------
 5 files changed, 14 insertions(+), 27 deletions(-)
Signature · 1 line
2.48.1