diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..0771547 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +graft templates diff --git a/pyproject.toml b/pyproject.toml index b3d81dc..ca0c8eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,4 +38,7 @@ markers = [ ] [tool.setuptools.packages.find] -include = ["thoth*"] +include = ["thoth*", "templates*"] + +[tool.setuptools.package-data] +templates = ["**/*"] diff --git a/templates/__init__.py b/templates/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/templates/dashboard/__init__.py b/templates/dashboard/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/thoth/init/migration.py b/thoth/init/migration.py index f2c677a..7a9951a 100644 --- a/thoth/init/migration.py +++ b/thoth/init/migration.py @@ -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