diff --git a/packaging/deeptutor-cli/pyproject.toml b/packaging/deeptutor-cli/pyproject.toml index eab776ff7..df0e2c965 100644 --- a/packaging/deeptutor-cli/pyproject.toml +++ b/packaging/deeptutor-cli/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "pydantic>=2.0.0", "pydantic-settings>=2.0.0", "aiosqlite>=0.19.0", - "typer[all]>=0.9.0", + "typer>=0.9.0", "rich>=13.0.0", "prompt_toolkit>=3.0.36", "anthropic>=0.30.0", diff --git a/pyproject.toml b/pyproject.toml index e551bf6dd..f689fea7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dependencies = [ "pydantic>=2.0.0", "pydantic-settings>=2.0.0", "aiosqlite>=0.19.0", - "typer[all]>=0.9.0", + "typer>=0.9.0", "rich>=13.0.0", "prompt_toolkit>=3.0.36", "pyte>=0.8.1", # in-memory terminal emulator: scrape Claude Code's /model TUI on sync diff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.py new file mode 100644 index 000000000..6b9bd36d6 --- /dev/null +++ b/tests/test_packaging_metadata.py @@ -0,0 +1,25 @@ +"""Tests for dependency metadata shared by the published packages.""" + +from __future__ import annotations + +from pathlib import Path +import tomllib + +import pytest + +REPOSITORY_ROOT = Path(__file__).resolve().parents[1] + + +@pytest.mark.parametrize( + "metadata_path", + [ + REPOSITORY_ROOT / "pyproject.toml", + REPOSITORY_ROOT / "packaging" / "deeptutor-cli" / "pyproject.toml", + ], +) +def test_typer_dependency_does_not_request_removed_all_extra(metadata_path: Path) -> None: + with metadata_path.open("rb") as file: + dependencies = tomllib.load(file)["project"]["dependencies"] + + typer_requirements = [item for item in dependencies if item.startswith("typer")] + assert typer_requirements == ["typer>=0.9.0"]