qapi: move generator entrypoint into package
commita76ab215ec3cd45937d602ae468401ac14abd424
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:26 +0000 (9 12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:47 +0000 (10 11:37 +0200)
treeae7ab87b10b77df0515ac7edb922e94530147511
parent52a474180ae36362c95276d92c4eb306cc9d86a0
qapi: move generator entrypoint into package

As part of delinting and adding type hints to the QAPI generator, it's
helpful for the entrypoint to be part of the package, only leaving a
very tiny entrypoint shim outside of the package.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-5-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[invalid_char() renamed to invalid_prefix_char()]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-gen.py
scripts/qapi/main.py [copied from scripts/qapi-gen.py with 97% similarity]