Skip to content

Commit bde2077

Browse files
committed
build: support running tests with uv
This enables me to use uv in local development.
1 parent 033c73d commit bde2077

File tree

2 files changed

+282
-0
lines changed

2 files changed

+282
-0
lines changed

pyproject.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ requires = [
4141
# Need to use legacy backend because setup_zstd.py breaks build isolation.
4242
build-backend = "setuptools.build_meta:__legacy__"
4343

44+
[dependency-groups]
45+
dev = [
46+
"hypothesis==6.111.0",
47+
"mypy>=1.17.1",
48+
"pytest>=8.4.1",
49+
"pytest-xdist>=3.8.0",
50+
]
51+
4452
[tool.ruff]
4553
line-length = 80
4654

@@ -56,3 +64,12 @@ enable = ["cpython-prerelease"]
5664
# TODO delete this after we adopt modern setuptools.
5765
[tool.setuptools]
5866
license-files = []
67+
68+
[tool.uv]
69+
build-constraint-dependencies = [
70+
# 69.0.0 breaks handling of --config-settings=--build-option, which our CI
71+
# relies on. So constrained to an older version until we figure out a
72+
# workaround. See comment at
73+
# https://github.com/pypa/pip/issues/11859#issuecomment-2132287974.
74+
"setuptools<69.0.0",
75+
]

0 commit comments

Comments
 (0)