Skip to content

CI: Fix packaging by using hatch build instead of uv build#786

Merged
amotl merged 3 commits intomainfrom
fix-packaging
Mar 3, 2026
Merged

CI: Fix packaging by using hatch build instead of uv build#786
amotl merged 3 commits intomainfrom
fix-packaging

Conversation

@amotl
Copy link
Member

@amotl amotl commented Mar 3, 2026

About

Just maintenance.

Details

@amotl amotl changed the title Fix packaging CI: Fix package build by using hatch instead of uv Mar 3, 2026
@amotl amotl force-pushed the fix-packaging branch 2 times, most recently from 7967b7e to 66155df Compare March 3, 2026 10:36
@amotl amotl changed the title CI: Fix package build by using hatch instead of uv CI: Fix packaging build by using hatch instead of uv Mar 3, 2026
@amotl amotl changed the title CI: Fix packaging build by using hatch instead of uv CI: Fix packaging by using hatch instead of uv Mar 3, 2026
@amotl amotl changed the title CI: Fix packaging by using hatch instead of uv CI: Fix packaging by using hatch build instead of uv build Mar 3, 2026
amotl added 3 commits March 3, 2026 12:01
While earlier releases of Python might be EOL, it is certainly running
on many systems where people can't upgrade. Why leave them behind when
it's not strictly needed?
- Using `uv build` creates a wheel package without any code.
- Use Twine for validating the package.
@amotl amotl force-pushed the fix-packaging branch 2 times, most recently from 9d1b1cc to 417e3ff Compare March 3, 2026 11:02
@amotl amotl marked this pull request as ready for review March 3, 2026 12:14
@amotl amotl merged commit 8200dfe into main Mar 3, 2026
16 checks passed
@amotl amotl deleted the fix-packaging branch March 3, 2026 12:14
dynamic = ["version"]
description = "CrateDB Python Client"
authors = [{ name = "Crate.io", email = "office@crate.io" }]
requires-python = ">=3.10"
Copy link
Member

Choose a reason for hiding this comment

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

This is needed to ensure python -m pip install crate picks up a crate-python version that actually works under the given python version.

We can't just remove this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry. If it's absolutely required it will be brought back.

@mfussenegger
Copy link
Member

Sorry to nitpick further here, but I'm a bit confused about:

  • Using uv build creates a wheel package without any code.

Isn't this an indication that there's something wrong with the pyproject.toml definition? uv build acts as a build frontend, using the build backend defined in [build-system]. So uv build should actually install & use hatch itself.

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.

2 participants