Skip to content

Commit d392444

Browse files
authored
Use constraint-dependencies to dedupe dependency versions (#59)
Signed-off-by: Anuraag Agrawal <anuraaga@gmail.com>
1 parent ee84148 commit d392444

File tree

3 files changed

+26
-12
lines changed

3 files changed

+26
-12
lines changed

noextras/pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ version = "0.1.0"
44
dependencies = [
55
"connect-python",
66
"connect-python-example",
7-
"pytest==8.4.2",
8-
"pytest-asyncio==1.2.0",
9-
"pytest-cov==7.0.0",
7+
8+
# Versions locked in constraint-dependencies
9+
"pytest",
10+
"pytest-asyncio",
11+
"pytest-cov",
1012
]
1113

1214
[tool.ruff]

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ dev = [
5050
"mkdocs-material==9.6.20",
5151
"mkdocstrings[python]==0.30.1",
5252
"pyright[nodejs]==1.1.405",
53-
"pytest==8.4.2",
54-
"pytest-asyncio==1.2.0",
55-
"pytest-cov==7.0.0",
5653
"pytest-timeout==2.4.0",
5754
"pyvoy==0.1.2; sys_platform != 'win32'",
5855
"ruff~=0.13.2",
@@ -61,6 +58,11 @@ dev = [
6158
"Twisted[tls,http2]==25.5.0",
6259
"typing_extensions==4.15.0",
6360
"zstandard==0.25.0",
61+
62+
# Versions locked in constraint-dependencies
63+
"pytest",
64+
"pytest-asyncio",
65+
"pytest-cov",
6466
]
6567

6668
[build-system]
@@ -69,6 +71,11 @@ build-backend = "uv_build"
6971

7072
[tool.uv]
7173
resolution = "lowest-direct"
74+
constraint-dependencies = [
75+
"pytest==8.4.2",
76+
"pytest-asyncio==1.2.0",
77+
"pytest-cov==7.0.0",
78+
]
7279

7380
[tool.uv.build-backend]
7481
module-name = "connectrpc"

uv.lock

Lines changed: 11 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)