mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
bundle for socratiq button on
This commit is contained in:
File diff suppressed because one or more lines are too long
17
tinytorch/tinytorch/__init__.py
generated
17
tinytorch/tinytorch/__init__.py
generated
@@ -8,22 +8,7 @@ Students progressively build this package module by module.
|
||||
Imports are optional - only available after completing each module.
|
||||
"""
|
||||
|
||||
from pathlib import Path as _Path
|
||||
|
||||
def _get_version() -> str:
|
||||
"""Read version from pyproject.toml (single source of truth)."""
|
||||
try:
|
||||
pyproject_path = _Path(__file__).parent.parent / "pyproject.toml"
|
||||
if pyproject_path.exists():
|
||||
content = pyproject_path.read_text()
|
||||
for line in content.splitlines():
|
||||
if line.strip().startswith("version"):
|
||||
return line.split("=")[1].strip().strip('"').strip("'")
|
||||
except Exception:
|
||||
pass
|
||||
return "0.0.0-dev"
|
||||
|
||||
__version__ = _get_version()
|
||||
__version__ = "0.1.0"
|
||||
|
||||
# ============================================================================
|
||||
# Progressive Imports - Available as students complete modules
|
||||
|
||||
Reference in New Issue
Block a user