haraka 0.2.33__tar.gz → 0.2.35__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. {haraka-0.2.33 → haraka-0.2.35}/PKG-INFO +1 -1
  2. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/fileOps/purge.py +29 -6
  3. {haraka-0.2.33 → haraka-0.2.35}/haraka.egg-info/PKG-INFO +1 -1
  4. {haraka-0.2.33 → haraka-0.2.35}/pyproject.toml +1 -1
  5. {haraka-0.2.33 → haraka-0.2.35}/MANIFEST.in +0 -0
  6. {haraka-0.2.33 → haraka-0.2.35}/haraka/__init__.py +0 -0
  7. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/__init__.py +0 -0
  8. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/ascii/__init__.py +0 -0
  9. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/ascii/assets.py +0 -0
  10. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/ascii/frame/__init__.py +0 -0
  11. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/ascii/frame/border.py +0 -0
  12. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/ascii/frame/framer.py +0 -0
  13. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/ascii/frame/width_utils.py +0 -0
  14. {haraka-0.2.33 → haraka-0.2.35}/haraka/art/create.py +0 -0
  15. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/__init__.py +0 -0
  16. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/config/__init__.py +0 -0
  17. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/config/config.py +0 -0
  18. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/resources/__init__.py +0 -0
  19. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/resources/assets.py +0 -0
  20. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/runner.py +0 -0
  21. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/__init__.py +0 -0
  22. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/command.py +0 -0
  23. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/fileOps/__init__.py +0 -0
  24. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/fileOps/files.py +0 -0
  25. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/gitOps/__init__.py +0 -0
  26. {haraka-0.2.33 → haraka-0.2.35}/haraka/post_gen/service/gitOps/gitops.py +0 -0
  27. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/__init__.py +0 -0
  28. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/common/__init__.py +0 -0
  29. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/common/utils.py +0 -0
  30. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/logging/__init__.py +0 -0
  31. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/logging/log_util.py +0 -0
  32. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/manifests/go-grpc-gateway-buf.yml +0 -0
  33. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/manifests/go-grpc-protoc.yml +0 -0
  34. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/manifests/java-springboot.yml +0 -0
  35. {haraka-0.2.33 → haraka-0.2.35}/haraka/utils/manifests/python-fastapi.yml +0 -0
  36. {haraka-0.2.33 → haraka-0.2.35}/haraka.egg-info/SOURCES.txt +0 -0
  37. {haraka-0.2.33 → haraka-0.2.35}/haraka.egg-info/dependency_links.txt +0 -0
  38. {haraka-0.2.33 → haraka-0.2.35}/haraka.egg-info/top_level.txt +0 -0
  39. {haraka-0.2.33 → haraka-0.2.35}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.33
3
+ Version: 0.2.35
4
4
  Summary: Reusable post-generation helper for Cookiecutter micro-service templates
5
5
  Author-email: Will Burks <will@example.com>
6
6
  License: MIT
@@ -81,7 +81,7 @@ class ResourcePurger:
81
81
 
82
82
  matched, non_dirs, non_files, _ = self.classify_paths(all_paths, project_dir, spec)
83
83
 
84
- self.print_summary(matched, non_dirs, non_files)
84
+ self._purge_unrelated(project_dir, matched, non_dirs, non_files)
85
85
 
86
86
  self._log.debug(f"Finished purging unrelated paths in project directory: {project_dir}")
87
87
 
@@ -137,7 +137,7 @@ class ResourcePurger:
137
137
  # --------------------------------------------------------------------------- #
138
138
  # Summary printing helpers #
139
139
  # --------------------------------------------------------------------------- #
140
- def _print_section(self, title: str, items: List[str]) -> None:
140
+ def _print_matches(self, title: str, items: List[str]) -> None:
141
141
  self._log.info(f"{title} — {len(items)}")
142
142
  if items:
143
143
  for p in sorted(items):
@@ -146,17 +146,40 @@ class ResourcePurger:
146
146
  self._log.info(" (none)")
147
147
  self._log.info("-" * 70)
148
148
 
149
- def print_summary(
149
+ def _dir_batch_delete(self, title: str, items: List[str], root: Path) -> None:
150
+ self._log.info(f"{title} — {len(items)}")
151
+ if items:
152
+ for p in sorted(items):
153
+ full_path = root / Path(p)
154
+ self._f.remove_dir(full_path)
155
+ self._log.debug(f" 🗑️ DELETED DIR {p}")
156
+ else:
157
+ self._log.info(" (none)")
158
+ self._log.info("-" * 70)
159
+
160
+ def _file_batch_delete(self, title: str, items: List[str], root: Path) -> None:
161
+ self._log.info(f"{title} — {len(items)}")
162
+ if items:
163
+ for p in sorted(items):
164
+ full_path = root / Path(p)
165
+ self._f.remove_file(full_path)
166
+ self._log.debug(f" 🗑️ DELETED DIR {p}")
167
+ else:
168
+ self._log.info(" (none)")
169
+ self._log.info("-" * 70)
170
+
171
+ def _purge_unrelated(
150
172
  self,
173
+ root: Path,
151
174
  matched: List[str],
152
175
  non_matched_dirs: List[str],
153
176
  non_matched_files: List[str],
154
177
  ) -> None:
155
178
  """Human-friendly digest of keep/delete results."""
156
179
  self._log.info("\n" + "=" * 70)
157
- self._print_section("✅ MATCHED (keep)", matched)
158
- self._print_section("🗂️ NON-MATCHED DIRECTORIES (delete)", non_matched_dirs)
159
- self._print_section("📄 NON-MATCHED FILES (delete)", non_matched_files)
180
+ self._print_matches("✅ MATCHED (keep)", matched)
181
+ self._dir_batch_delete("🗂️ NON-MATCHED DIRECTORIES (delete)", non_matched_dirs, root)
182
+ self._file_batch_delete("📄 NON-MATCHED FILES (delete)", non_matched_files, root)
160
183
  self._log.info("=" * 70)
161
184
 
162
185
  @staticmethod
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.33
3
+ Version: 0.2.35
4
4
  Summary: Reusable post-generation helper for Cookiecutter micro-service templates
5
5
  Author-email: Will Burks <will@example.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "haraka"
7
- version = "0.2.33"
7
+ version = "0.2.35"
8
8
  description = "Reusable post-generation helper for Cookiecutter micro-service templates"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
File without changes
File without changes
File without changes
File without changes
File without changes