feat: Add package proxy for main module and aggregate re-exports for managers

This commit is contained in:
William Valentin
2025-08-08 18:38:00 -07:00
parent bd598d63f9
commit 33d509389e
4 changed files with 23 additions and 0 deletions

View File

@@ -119,3 +119,6 @@ package-dir = { "" = "src" }
where = ["src"]
include = ["thechart*"]
exclude = ["tests*"]
[tool.setuptools.package-data]
thechart = ["py.typed"]

8
src/thechart/main.py Normal file
View File

@@ -0,0 +1,8 @@
"""Package proxy to the development entry module.
This makes `thechart.main` importable while keeping the app in `src/main.py`.
"""
from __future__ import annotations
from src.main import * # noqa: F401,F403

12
src/thechart/managers.py Normal file
View File

@@ -0,0 +1,12 @@
"""Aggregate re-exports for thechart managers.
Keeps external imports simple (e.g., `from thechart.managers import DataManager`) while
preserving the current src layout.
"""
from __future__ import annotations
from src.data_manager import DataManager # noqa: F401
from src.medicine_manager import Medicine, MedicineManager # noqa: F401
from src.pathology_manager import PathologyManager # noqa: F401
from src.ui_manager import UIManager # noqa: F401

0
src/thechart/py.typed Normal file
View File