FR: uv init --build-backend #6299
Labels
enhancement
New feature or request
help wanted
Contribution especially encouraged
projects
Related to project management capabilities
I think it would be nice to support several common backends with
uv init
. Current hatchling is the default (which is a great default), but it would be nice to be able to support compiled backends (maturin
,scikit-build-core
, andmeson-python
), and maybe a few other popular PEP 621 pure-python backends likesetuptools
,flit-core
, andpdm-backend
. This could also have a "none"-like option for packages that don't have a library component at all, and are just an application like a website.If implemented, there would be an optional argument like
--build-backend
(or--backend
if you'd rather shorter names) that would default tohatchling
. But it would take other options. Selecting one of these would generate from a slightly different template, providing at least a differentbuild-system.build-backend
andbuild-system.requires
. Ideally, especially for the compiled backends, the example file would be adjusted a bit as well.https://github.com/scientific-python/cookie is an example of a cookiecutter that supports lots of backends. I'd keep the template simple, but this is example of something supporting this without too much effort.
The text was updated successfully, but these errors were encountered: