Using uv-build backend instead of Hatch? #353
Answered
by
DavidVujic
yann-combarnous
asked this question in
Q&A
Replies: 1 comment
-
I had a quick look the other day, and the uv build backend doesn’t seem to have support for hooks or plugins yet.
But it should be possible to use with Polylith. There’s “before” and “after” commands in the poly tool for backends without hooks support. Have a look at the docs for Polylith with Maturin for example usage: https://davidvujic.github.io/python-polylith-docs/deployment/#maturin_1
It should be enough to run the poly commands before and after “uv build” in the same way as for Maturin or Pixi.
You probably also want something equivalent in uv to the hatch dev paths specified at the root-level pyproject.toml, to make uv recognize the namespaces during development. Other than that, I don’t think it’s anything else needed.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
yann-combarnous
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
According to doc, uv setup requires to use Hatch as backend.
Now that uv supports uv-build backend, will it also be supported by Polylith?
thx
Beta Was this translation helpful? Give feedback.
All reactions