fix: remove obsolete Typer extra (#817)

This commit is contained in:
Bingxi Zhao (Frank)
2026-08-12 16:11:25 +08:00
parent c96440d6ac
commit ea63482f77
3 changed files with 27 additions and 2 deletions

View File

@@ -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",

View File

@@ -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

View File

@@ -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"]