Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graft templates
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,7 @@ markers = [
]

[tool.setuptools.packages.find]
include = ["thoth*"]
include = ["thoth*", "templates*"]

[tool.setuptools.package-data]
templates = ["**/*"]
Empty file added templates/__init__.py
Empty file.
Empty file added templates/dashboard/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions thoth/init/migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
LEGACY_REMOVE_PATHS = [LEGACY_CONFIG_FILE, ".agent-os/research-tasks", "tests/test_validate.py", "tests/test_check_consistency.py", "tests/test_sync_todo.py", "tests/test_verify_completion.py"]
DISCOVERY_CODE_SUFFIXES = {".py", ".js", ".ts", ".tsx", ".vue", ".sh", ".rs", ".go", ".java", ".c", ".cc", ".cpp", ".h", ".hpp"}
THOTH_CLAUDE_BASH_ALLOW_PATTERN = "Bash(*thoth-claude-command.sh*)"
BACKUP_SKIP_DIRS = {"__pycache__", ".pytest_cache", "node_modules", "dist"}
BACKUP_SKIP_NAMES = {"__pycache__", ".pytest_cache", "node_modules", "dist", "__init__.py"}


def _backup_ignore(_directory: str, names: list[str]) -> set[str]:
return {name for name in names if name in BACKUP_SKIP_DIRS}
return {name for name in names if name in BACKUP_SKIP_NAMES}

def _backup_existing_path(project_dir: Path, migration_dir: Path, relpath: str) -> None:
source = project_dir / relpath
Expand Down