mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-13 12:02:17 +00:00
![]() When encountering `dynamic = ["version"]` in the pyproject.toml of a source dist, we can ignore that and treat it as a statically known metadata distribution, since the filename tells us the version and that version must not change on build. This fixed locking PyGObject 3.50.0 from `pygobject-3.50.0.tar.gz` (minimized): ```toml [project] name = "PyGObject" description = "Python bindings for GObject Introspection" requires-python = ">=3.9, <4.0" dependencies = [ "pycairo>=1.16" ] dynamic = ["version"] ``` Afterwards, `uv add --no-sync toga` passes on Ubuntu 24.04 without the pygobject build deps, when previously it needed `{ name = "pygobject", version = "3.50.0", requires-dist = [], requires-python = ">=3.9" }`. I've added a check that source distribution versions are respected after build. Fixes #9548 |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |