gifted-needle-58451
02/12/2025, 6:45 PMdry-beach-38304
02/12/2025, 7:27 PMmetaflow develop stubs --help
to see available options.dry-beach-38304
02/12/2025, 7:27 PMdry-beach-38304
02/12/2025, 7:27 PMdry-beach-38304
02/12/2025, 7:28 PMgifted-needle-58451
02/12/2025, 7:49 PMdry-beach-38304
02/12/2025, 7:49 PMdry-beach-38304
02/12/2025, 7:50 PMgifted-needle-58451
02/13/2025, 1:39 PMdry-beach-38304
02/13/2025, 6:42 PM${my_python} -c "from metaflow.cmd.develop.stub_generator import StubGenerator; StubGenerator('./metaflow-stubs').write_out()"
That is then used to create a package my-mf-extension-stubs
and then we have something like this in my-mf-extension
extras_require={
"stubs": ["my-mf-extension-stubs==%s" % version],
},
So then you can install my-mf-extension[stubs]
to get the optional stubs. You could also choose to make it a part of the requirements (and not an extra_require
)gifted-needle-58451
02/13/2025, 7:38 PM