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

Document/explain what the "hatchling" build-system is about #7132

Open
gdamjan opened this issue Sep 6, 2024 · 1 comment
Open

Document/explain what the "hatchling" build-system is about #7132

gdamjan opened this issue Sep 6, 2024 · 1 comment
Labels
question Asking for clarification or support

Comments

@gdamjan
Copy link

gdamjan commented Sep 6, 2024

uv init adds the hatchling build system to pyproject.toml.

please write a short blurb (a sentence or two) what that means, and why it is needed.

(I personally have no idea what the role of hatchling is in the whole uv concept)

@zanieb
Copy link
Member

zanieb commented Sep 6, 2024

We don't do this by default anymore, but hatchling is a build backend which is required to build and install your project: https://packaging.python.org/en/latest/tutorials/packaging-projects/#choosing-a-build-backend

We chose hatchling because we think it's a reasonable option, but there are many other backends. Eventually, we'll write our own #3957.

Learn more about build-systems and uv projects at https://docs.astral.sh/uv/concepts/projects/#build-systems

@zanieb zanieb added the question Asking for clarification or support label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Asking for clarification or support
Projects
None yet
Development

No branches or pull requests

2 participants