Join Slack
Powered by
Let’s say I use an adhoc tool to create a python c...
# general
p
purple-plastic-57801
05/19/2023, 4:50 AM
Let’s say I use an adhoc tool to create a python client with the open api generator…. Is there a way I can treat this as a python library?
b
broad-processor-92400
05/19/2023, 4:56 AM
https://www.pantsbuild.org/v2.16/docs/reference-experimental_wrap_as_python_sources
to keep it all as transient (and
https://github.com/pantsbuild/pants/issues/17926
is relevant, if you want something to follow). Another option that we do for some of our codegen is check it into the repo, by writing using
run_shell_command
, and then load that back as
python_sources
(i.e. to pants, it looks like any old human-written code)... this isn't great, though.
3
Views
Open in Slack
Previous
Next