Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: uv init --build-backend #6299

Open
henryiii opened this issue Aug 21, 2024 · 1 comment
Open

FR: uv init --build-backend #6299

henryiii opened this issue Aug 21, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Contribution especially encouraged projects Related to project management capabilities

Comments

@henryiii
Copy link
Contributor

henryiii commented Aug 21, 2024

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, and meson-python), and maybe a few other popular PEP 621 pure-python backends like setuptools, flit-core, and pdm-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 to hatchling. But it would take other options. Selecting one of these would generate from a slightly different template, providing at least a different build-system.build-backend and build-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.

@konstin konstin added the enhancement New feature or request label Aug 21, 2024
@charliermarsh
Copy link
Member

This makes sense to me.

@zanieb zanieb added the projects Related to project management capabilities label Aug 21, 2024
@charliermarsh charliermarsh added the help wanted Contribution especially encouraged label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Contribution especially encouraged projects Related to project management capabilities
Projects
None yet
Development

No branches or pull requests

4 participants