Skip to content

Conversation

@lsorber
Copy link
Member

@lsorber lsorber commented Mar 13, 2025

Changes:

  1. Configure a modern build system based on Hatchling v1.26, which adds support for core metadata v2.4.
  2. Remove the package = true uv setting, since it's not necessary if you specify a build system:

    While uv usually uses the declaration of a build system to determine if a project should be packaged, uv also allows overriding this behavior with the tool.uv.package setting.

This is both a fix and a feature: uv's default build system is apparently still setuptools, which does not support some of the more modern core metadata features such as license-file(s). The missing feature can cause publishing to fail—see for example this failed publish workflow in Conformal Tights. It's recommended to use Hatchling while we wait for uv's own build system.

@lsorber lsorber requested a review from sinopeus March 13, 2025 08:42
@lsorber lsorber self-assigned this Mar 13, 2025
@lsorber lsorber merged commit 3df8d61 into main Mar 13, 2025
20 checks passed
@lsorber lsorber deleted the ls-build-system branch March 13, 2025 12:12
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