Skip to content

Self-improving AI Employees for everyone

fix(deps): move dev tools to PEP 735 dependency-groups so uv sync keeps them

trohitg03c8e830a45b
diff --git a/server/pyproject.toml b/server/pyproject.toml
index 5d04ff5f..5f285fb8 100644
--- a/server/pyproject.toml
+++ b/server/pyproject.toml
@@ -140,14 +140,10 @@ dependencies = [
]
[project.optional-dependencies]
-dev = [
- "pytest>=8.0.0",
- "pytest-asyncio>=0.24.0",
- "pytest-mock>=3.14.0",
- "pytest-cov>=6.0.0",
- "respx>=0.21.0",
- "ruff>=0.8.0",
-]
+# PEP 621 extras — downstream consumers opt into these via
+# ``pip install machinaos-server[<extra>]`` / ``uv pip install -e .[<extra>]``.
+# Dev tooling lives in ``[dependency-groups]`` below (PEP 735) instead so
+# ``uv sync`` keeps it installed by default in contributor checkouts.
docs = [
"beautifulsoup4>=4.12.0",
"pypdf>=5.0.0",
@@ -161,6 +157,24 @@ aws = [
"boto3>=1.34.0", # AWS Secrets Manager
]
+[dependency-groups]
+# PEP 735 dependency groups — included by ``uv sync`` (and ``uv sync
+# --group dev``) by default, but NOT shipped to PyPI consumers. Pre-fix
+# the dev tools lived in ``[project.optional-dependencies].dev`` which
+# meant every ``pnpm install`` (= ``uv sync`` without ``--extra dev``)
+# uninstalled them — broke contributor test workflows on every install
+# / dependency bump. Moving them here keeps ``pip install
+# machinaos-server`` lean for end-users while making contributor
+# checkouts test-ready straight out of ``pnpm install``.
+dev = [
+ "pytest>=8.0.0",
+ "pytest-asyncio>=0.24.0",
+ "pytest-mock>=3.14.0",
+ "pytest-cov>=6.0.0",
+ "respx>=0.21.0",
+ "ruff>=0.8.0",
+]
+
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"