Skip to content

Commit ad291be

Browse files
f3rdyclaude
andcommitted
Fix package data: Move schemas and templates into forge package
Problem: Schemas and templates were not included in installed package. The files were in the project root but setuptools couldn't find them. Solution: - Move schemas/ and templates/ into forge/ package - Update MANIFEST.in to reference forge/schemas and forge/templates - Fix path references in cli.py (parent.parent -> parent) This ensures schemas and templates are properly included when the package is installed via pip/uv. Tested: - uv tool install from GitHub works - workshopforge validate finds schemas ✓ - workshopforge generate finds templates ✓ - workshopforge ai check runs ✓ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e896c30 commit ad291be

12 files changed

Lines changed: 4 additions & 4 deletions

File tree

MANIFEST.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include README.md
22
include LICENSE
3-
recursive-include schemas *.json
4-
recursive-include templates *.j2 *.yml
3+
recursive-include forge/schemas *.json
4+
recursive-include forge/templates *.j2 *.yml

forge/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def validate(
246246
rprint(f"[blue]Validating specs in:[/blue] {spec_dir}")
247247

248248
# Get schema directory (in package)
249-
schema_dir = Path(__file__).parent.parent / "schemas"
249+
schema_dir = Path(__file__).parent / "schemas"
250250
validator = SpecValidator(schema_dir)
251251

252252
results = validator.validate_directory(spec_dir)
@@ -305,7 +305,7 @@ def generate(
305305
raise typer.Exit(1)
306306

307307
# Generate
308-
template_dir = Path(__file__).parent.parent / "templates"
308+
template_dir = Path(__file__).parent / "templates"
309309
generator = WorkshopGenerator(loader, template_dir)
310310

311311
try:

templates/repo/.github/workflows/basic_checks.yml.j2 renamed to forge/templates/repo/.github/workflows/basic_checks.yml.j2

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)