feat: Add package proxy for main module and aggregate re-exports for managers
This commit is contained in:
@@ -119,3 +119,6 @@ package-dir = { "" = "src" }
|
|||||||
where = ["src"]
|
where = ["src"]
|
||||||
include = ["thechart*"]
|
include = ["thechart*"]
|
||||||
exclude = ["tests*"]
|
exclude = ["tests*"]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
thechart = ["py.typed"]
|
||||||
|
|||||||
8
src/thechart/main.py
Normal file
8
src/thechart/main.py
Normal 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
12
src/thechart/managers.py
Normal 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
0
src/thechart/py.typed
Normal file
Reference in New Issue
Block a user