Skip to content

3.5.1 and 3.5.2 tarballs fail to build (uv-dynamic-versioning errors) #1473

@xiota

Description

@xiota

Describe the bug

Attempting to build from tarball fails. Errors appear to be related to building from tarball instead of git checkout. I didn't save the error messages, but can regenerate them if necessary.

To Reproduce

  1. Download and extract 3.5.1 or 3.5.2 tarball
  2. Try to build with: python -m build --wheel --no-isolation --skip-dependency-check

Expected behavior

Wheel should be created, as was with 3.5.

Workaround:

python -m venv venv
source ./venv/bin/activate
pip install toml-cli

toml set --toml-path pyproject.toml build-system.requires '["hatchling"]' --to-array
toml unset --toml-path pyproject.toml project.dynamic
toml unset --toml-path pyproject.toml tool.hatch.version
toml set --toml-path pyproject.toml project.version "3.5.2"
deactivate

Meta

Succeeds:
https://github.com/pyinfra-dev/pyinfra/archive/refs/tags/v3.5.tar.gz

Fails:
https://github.com/pyinfra-dev/pyinfra/archive/refs/tags/v3.5.1.tar.gz
https://github.com/pyinfra-dev/pyinfra/archive/refs/tags/v3.5.2.tar.gz

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions