diff --git a/pyproject.toml b/pyproject.toml index 6d10ea5c..37211ab9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev103" +version = "0.0.0.dev104" name = "RepoDynamics" dependencies = [ "packaging >= 23.2, < 24", diff --git a/src/repodynamics/actions/init.py b/src/repodynamics/actions/init.py index 0a41ac21..865958f1 100644 --- a/src/repodynamics/actions/init.py +++ b/src/repodynamics/actions/init.py @@ -4,6 +4,7 @@ import re import datetime from enum import Enum +import shutil from markitup import html, md import pylinks @@ -533,6 +534,8 @@ def event_push_branch_modified_other(self): return def event_repository_created(self): + shutil.rmtree(self.meta.output_paths.input_paths["dir"]["source"]) + shutil.rmtree(self.meta.output_paths.input_paths["dir"]["tests"]) for path_dynamic_file in self.meta.output_paths.all_files: path_dynamic_file.unlink(missing_ok=True) for changelog_data in self.metadata["changelog"].values(): diff --git a/src/repodynamics/meta/writer.py b/src/repodynamics/meta/writer.py index 866c1f08..fa62fbe2 100644 --- a/src/repodynamics/meta/writer.py +++ b/src/repodynamics/meta/writer.py @@ -48,6 +48,10 @@ def __init__(self, path_root: str | Path, logger: Logger | None = None): ) return + @property + def input_paths(self): + return self._paths + @property def all_files(self): files = [ @@ -61,6 +65,7 @@ def all_files(self): self.read_the_docs_config.path, self.issue_template_chooser_config.path, self.package_pyproject.path, + self.test_package_pyproject, self.package_requirements.path, self.package_manifest.path, self.codecov_config.path,