feat(m1): scaffold tsmm package (T1.1)

- pyproject.toml (src-layout, deps per plan)
- src/tsmm/{data,model,train,eval} skeletons
- tests/test_smoke.py (RED->GREEN: importable + subpackages)
- configs/, scripts/, data/, checkpoints/ + .gitignore
- project venv (.venv) for reproducible env (M1 deps only; CUDA torch @ M2)

Verifications: import tsmm OK; pytest tests/ 3 passed.
This commit is contained in:
张宗平
2026-06-29 23:21:47 +08:00
parent c160718934
commit 748bf41c53
15 changed files with 127 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
"""Smoke tests for the package boundary (T1.1).
These guard the most basic contract: the package is importable and exposes
a version. If these fail, the install / src-layout is broken.
"""
import tsmm
def test_package_is_importable():
assert tsmm is not None
def test_package_exposes_version():
assert isinstance(tsmm.__version__, str)
assert tsmm.__version__ # non-empty
def test_subpackages_importable():
# M1 will populate these; the skeleton must already expose the namespaces.
import importlib
for sub in ("data", "model", "train", "eval"):
mod = importlib.import_module(f"tsmm.{sub}")
assert mod is not None