wooden-policeman-10903
12/06/2024, 9:14 PMexport-codegen
and it works correctly. It is also able to run, when I add it as a dependency of python_soruce
, however, the generated modules do not appear in the generated export
resolve, as protobuf sources would, and thus are invisible to my IDE. I was following https://www.pantsbuild.org/stable/docs/writing-plugins/common-plugin-tasks/add-codegen, is there anything I am missing?gorgeous-winter-99296
12/07/2024, 8:22 PM--export-py-generated-sources
works and potentially see if that is enough; or if you need to add support to your plugin.gorgeous-winter-99296
12/07/2024, 8:23 PMwooden-policeman-10903
12/08/2024, 4:31 PM[export]
py_editable_in_resolve = ["python-default"]
py_generated_sources_in_resolve = ["python-default"]
py_resolve_format = "mutable_virtualenv"
I have both protobuf and asyncapi (my plugin) targets. They have identical behavior on export-codegen
. My plugin contains only one rule. I wonder if this is the reason -- that I need a separate export rule.
@rule
async def generate_python_from_asyncapi(
request: GeneratePythonFromAsyncapiRequest,
asyncapi: AsyncapiPython,
platform: Platform,
) -> GeneratedSources: ...
gorgeous-winter-99296
12/08/2024, 8:23 PMwooden-policeman-10903
12/17/2024, 1:27 PM