Skip to content

Is build-constraint-dependencies working in uv 0.10.8? #18283

@dvrogozh

Description

@dvrogozh

I am attempting to use build-constraint-dependencies with the uv 0.10.8 and python 2.14 on Ubuntu 24.04 which does not seem to work. Below is the test pyproject.toml:

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "Test"
version = "0.0.1"

[tool.uv]
build-constraint-dependencies = ["setuptools==81.0.0"]

I was expecting that uv build --all will recognize the constrain, but it did not:

$ uv build --all -v 2>&1 | grep setuptools==
DEBUG Selecting: setuptools==82.0.0 [compatible] (setuptools-82.0.0-py3-none-any.whl)

The build time --build-constraints option works as I was expecting constraining the package version:

$ uv build --all -v --build-constraints <(echo "setuptools==81.0.0") 2>&1 | grep setuptools==
DEBUG Selecting: setuptools==81.0.0 [compatible] (setuptools-81.0.0-py3-none-any.whl)

Is build-constraint-dependencies working in uv 0.10.8 or I don't understand how the mechanism should be used?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions