From e55671ecfe05feca92ecad071abf6b268dbd0aad Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Fri, 5 Dec 2025 14:03:34 +0900 Subject: [PATCH 1/2] Use constraint-dependencies to dedupe dependency versions Signed-off-by: Anuraag Agrawal --- noextras/pyproject.toml | 9 ++++++--- pyproject.toml | 13 ++++++++++--- uv.lock | 17 +++++++++++------ 3 files changed, 27 insertions(+), 12 deletions(-) diff --git a/noextras/pyproject.toml b/noextras/pyproject.toml index 21249fa..caec4af 100644 --- a/noextras/pyproject.toml +++ b/noextras/pyproject.toml @@ -4,9 +4,12 @@ version = "0.1.0" dependencies = [ "connect-python", "connect-python-example", - "pytest==8.4.2", - "pytest-asyncio==1.2.0", - "pytest-cov==7.0.0", + + + # Versions locked in constraint-dependencies + "pytest", + "pytest-asyncio", + "pytest-cov", ] [tool.ruff] diff --git a/pyproject.toml b/pyproject.toml index 98146df..ded6a5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,9 +50,6 @@ dev = [ "mkdocs-material==9.6.20", "mkdocstrings[python]==0.30.1", "pyright[nodejs]==1.1.405", - "pytest==8.4.2", - "pytest-asyncio==1.2.0", - "pytest-cov==7.0.0", "pytest-timeout==2.4.0", "pyvoy==0.1.2; sys_platform != 'win32'", "ruff~=0.13.2", @@ -61,6 +58,11 @@ dev = [ "Twisted[tls,http2]==25.5.0", "typing_extensions==4.15.0", "zstandard==0.25.0", + + # Versions locked in constraint-dependencies + "pytest", + "pytest-asyncio", + "pytest-cov", ] [build-system] @@ -69,6 +71,11 @@ build-backend = "uv_build" [tool.uv] resolution = "lowest-direct" +constraint-dependencies = [ + "pytest==8.4.2", + "pytest-asyncio==1.2.0", + "pytest-cov==7.0.0", +] [tool.uv.build-backend] module-name = "connectrpc" diff --git a/uv.lock b/uv.lock index cecc316..22d1863 100644 --- a/uv.lock +++ b/uv.lock @@ -15,6 +15,11 @@ members = [ "connect-python-example", "connect-python-noextras", ] +constraints = [ + { name = "pytest", specifier = "==8.4.2" }, + { name = "pytest-asyncio", specifier = "==1.2.0" }, + { name = "pytest-cov", specifier = "==7.0.0" }, +] [[package]] name = "annotated-types" @@ -495,9 +500,9 @@ dev = [ { name = "mkdocs-material", specifier = "==9.6.20" }, { name = "mkdocstrings", extras = ["python"], specifier = "==0.30.1" }, { name = "pyright", extras = ["nodejs"], specifier = "==1.1.405" }, - { name = "pytest", specifier = "==8.4.2" }, - { name = "pytest-asyncio", specifier = "==1.2.0" }, - { name = "pytest-cov", specifier = "==7.0.0" }, + { name = "pytest" }, + { name = "pytest-asyncio" }, + { name = "pytest-cov" }, { name = "pytest-timeout", specifier = "==2.4.0" }, { name = "pyvoy", marker = "sys_platform != 'win32'", specifier = "==0.1.2" }, { name = "ruff", specifier = "~=0.13.2" }, @@ -542,9 +547,9 @@ dependencies = [ requires-dist = [ { name = "connect-python", editable = "." }, { name = "connect-python-example", editable = "example" }, - { name = "pytest", specifier = "==8.4.2" }, - { name = "pytest-asyncio", specifier = "==1.2.0" }, - { name = "pytest-cov", specifier = "==7.0.0" }, + { name = "pytest" }, + { name = "pytest-asyncio" }, + { name = "pytest-cov" }, ] [[package]] From 78e7b00b76c399417198376041ad6ef22a3438aa Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Fri, 5 Dec 2025 14:03:57 +0900 Subject: [PATCH 2/2] Drift Signed-off-by: Anuraag Agrawal --- noextras/pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/noextras/pyproject.toml b/noextras/pyproject.toml index caec4af..93b3346 100644 --- a/noextras/pyproject.toml +++ b/noextras/pyproject.toml @@ -5,7 +5,6 @@ dependencies = [ "connect-python", "connect-python-example", - # Versions locked in constraint-dependencies "pytest", "pytest-asyncio",