Skip to content

Commit

Permalink
feat: add support for import renames
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Oct 20, 2023
1 parent 73ed76a commit 7b5d423
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions src/repodynamics/actions/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import re
import datetime
from enum import Enum
import shutil

from markitup import html, md
import pylinks
Expand Down Expand Up @@ -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():
Expand Down
5 changes: 5 additions & 0 deletions src/repodynamics/meta/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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,
Expand Down

0 comments on commit 7b5d423

Please sign in to comment.