mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 23:39:37 +08:00
fix: remove obsolete Typer extra (#817)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
25
tests/test_packaging_metadata.py
Normal file
25
tests/test_packaging_metadata.py
Normal 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"]
|
||||
Reference in New Issue
Block a user