Re: [PATCH v2 03/38] qapi: move generator entrypoint into module

2020-09-23 Thread John Snow
On 9/22/20 5:23 PM, Eduardo Habkost wrote: +from qapi.commands import gen_commands +from qapi.doc import gen_doc +from qapi.error import QAPIError +from qapi.events import gen_events +from qapi.introspect import gen_introspect +from qapi.schema import QAPISchema +from qapi.types import gen_types

Re: [PATCH v2 03/38] qapi: move generator entrypoint into module

2020-09-22 Thread Cleber Rosa
On Tue, Sep 22, 2020 at 05:00:26PM -0400, John Snow wrote: > 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 module. > > Signed-off-by: John Snow > --- > scrip

Re: [PATCH v2 03/38] qapi: move generator entrypoint into module

2020-09-22 Thread Eduardo Habkost
On Tue, Sep 22, 2020 at 05:00:26PM -0400, John Snow wrote: > 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 module. > > Signed-off-by: John Snow > --- > scrip

[PATCH v2 03/38] qapi: move generator entrypoint into module

2020-09-22 Thread John Snow
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 module. Signed-off-by: John Snow --- scripts/qapi-gen.py | 90 +++ scripts