Simplify module.yaml and enhance export command with real export targets

- Remove redundant fields from module.yaml files: exports_to, files, components
- Keep only essential system metadata: name, title, description, dependencies
- Export command now reads actual export targets from dev files (#| default_exp directive)
- Status command updated to use dev files as source of truth for export targets
- Export command shows detailed source → target mapping for better clarity
- Dependencies field retained as it's useful for CLI module ordering and prerequisites
- Eliminates duplication between YAML and dev files - dev files are the real truth
This commit is contained in:
Vijay Janapa Reddi
2025-07-12 00:05:45 -04:00
parent 2a4bbc6a09
commit ca8ec10427
6 changed files with 117 additions and 85 deletions

View File

@@ -2,25 +2,10 @@
# Essential system information for CLI tools and build systems
name: "setup"
title: "Setup"
description: "Development environment setup and project configuration"
title: "Setup & Environment"
description: "Development environment setup and basic TinyTorch functionality"
# Dependencies
# Dependencies - Used by CLI for module ordering and prerequisites
dependencies:
prerequisites: []
enables: ["tensor", "activations", "layers"]
# Package Export
exports_to: "tinytorch.core.utils"
# File Structure
files:
dev_file: "setup_dev.py"
test_file: "tests/test_setup.py"
readme: "README.md"
# Components
components:
- "hello_tinytorch"
- "environment_check"
- "project_structure"
enables: ["tensor", "activations", "layers"]