Skip to content

feat: Add --meta uv for generating astral-sh/uv compatible packages. #1286

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

Merged
merged 2 commits into from
Jul 20, 2025

Conversation

alexandervaneck
Copy link
Contributor

This PR adds support for --meta uv which then generates a uv compatible package with the hatchling build backend. Eventually, with newer versions of uv, it will probably use the uv_build backend.

Resolves #1241

cc @johnthagen @dbanty

Copy link
Collaborator

@dbanty dbanty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@alexandervaneck
Copy link
Contributor Author

Thanks!

@dbanty dbanty added this pull request to the merge queue Jul 20, 2025
Merged via the queue into openapi-generators:main with commit f4ac5ea Jul 20, 2025
22 checks passed
@knope-bot knope-bot bot mentioned this pull request Jul 20, 2025
]

[build-system]
requires = ["hatchling"]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use the official uv_build backend instead, which is the default for projects created with uv now?

https://docs.astral.sh/uv/concepts/build-backend/#choosing-a-build-backend

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point 🙌 It became the default 4 days ago in uv==0.8.0.

I offer this PR #1290 to resolve that. 🙏

github-merge-queue bot pushed a commit that referenced this pull request Jul 28, 2025
> [!IMPORTANT]
> Merging this pull request will create this release

## Features

- Add --meta uv for generating astral-sh/uv compatible packages. (#1286)
- Switch to `uv_build` build backend. (#1290)

Co-authored-by: knope-bot[bot] <152252888+knope-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants