haraka 0.2.23__tar.gz → 0.2.24__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.23 → haraka-0.2.24}/PKG-INFO +1 -1
  2. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/fileOps/purge.py +26 -5
  3. {haraka-0.2.23 → haraka-0.2.24}/haraka.egg-info/PKG-INFO +1 -1
  4. {haraka-0.2.23 → haraka-0.2.24}/pyproject.toml +1 -1
  5. {haraka-0.2.23 → haraka-0.2.24}/MANIFEST.in +0 -0
  6. {haraka-0.2.23 → haraka-0.2.24}/haraka/__init__.py +0 -0
  7. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/__init__.py +0 -0
  8. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/ascii/__init__.py +0 -0
  9. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/ascii/assets.py +0 -0
  10. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/ascii/frame/__init__.py +0 -0
  11. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/ascii/frame/border.py +0 -0
  12. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/ascii/frame/framer.py +0 -0
  13. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/ascii/frame/width_utils.py +0 -0
  14. {haraka-0.2.23 → haraka-0.2.24}/haraka/art/create.py +0 -0
  15. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/__init__.py +0 -0
  16. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/config/__init__.py +0 -0
  17. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/config/config.py +0 -0
  18. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/resources/__init__.py +0 -0
  19. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/resources/assets.py +0 -0
  20. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/runner.py +0 -0
  21. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/__init__.py +0 -0
  22. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/command.py +0 -0
  23. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/fileOps/__init__.py +0 -0
  24. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/fileOps/files.py +0 -0
  25. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/gitOps/__init__.py +0 -0
  26. {haraka-0.2.23 → haraka-0.2.24}/haraka/post_gen/service/gitOps/gitops.py +0 -0
  27. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/__init__.py +0 -0
  28. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/common/__init__.py +0 -0
  29. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/common/utils.py +0 -0
  30. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/logging/__init__.py +0 -0
  31. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/logging/log_util.py +0 -0
  32. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/manifests/go-grpc-gateway-buf.yml +0 -0
  33. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/manifests/go-grpc-protoc.yml +0 -0
  34. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/manifests/java-springboot.yml +0 -0
  35. {haraka-0.2.23 → haraka-0.2.24}/haraka/utils/manifests/python-fastapi.yml +0 -0
  36. {haraka-0.2.23 → haraka-0.2.24}/haraka.egg-info/SOURCES.txt +0 -0
  37. {haraka-0.2.23 → haraka-0.2.24}/haraka.egg-info/dependency_links.txt +0 -0
  38. {haraka-0.2.23 → haraka-0.2.24}/haraka.egg-info/top_level.txt +0 -0
  39. {haraka-0.2.23 → haraka-0.2.24}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.23
3
+ Version: 0.2.24
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
@@ -78,23 +78,44 @@ class ResourcePurger:
78
78
  def _purge_unrelated(self, root: Path, spec: PathSpec) -> None:
79
79
  """
80
80
  Walk the project tree; delete every path NOT matched by *spec*.
81
+
82
+ Updated to align with the `test_java_manifest` logic for cleaner organization.
81
83
  """
82
84
 
85
+ # Dictionaries to separate matches and non-matches for logging
86
+ matches = []
87
+ non_matches = []
88
+
89
+ # Walk the project tree to inspect all paths
83
90
  for path in root.rglob("*"):
84
- self._log.debug(f"Scanning path: {path}")
91
+ self._log.debug(f"\nScanning path: {path}")
85
92
  rel = path.relative_to(root).as_posix()
86
93
  self._log.debug(f"Relative path for inspection: {rel}")
87
94
 
88
- # Regular file matching
89
- if spec.match_file(path):
95
+ # Match file against the PathSpec
96
+ if spec.match_file(rel):
90
97
  self._log.debug(f"Path matches keep patterns: {rel}")
91
- self._log.debug(f"Keeping file: {rel}")
98
+ matches.append(path) # Collect paths to keep
92
99
  continue
93
100
 
94
- # If path didn't match, delete
101
+ # Non-matching paths: collect and delete
102
+ self._log.debug(f"Path does not match keep patterns: {rel}")
103
+ non_matches.append(path)
95
104
  if path.is_dir():
96
105
  self._f.remove_dir(path)
97
106
  self._log.debug(f"Deleted directory: {path}")
98
107
  else:
99
108
  self._f.remove_file(path)
100
109
  self._log.debug(f"Deleted file: {path}")
110
+
111
+ # Print results cleanly for debugging/logging purposes
112
+ self._log.info("\nMATCHED PATHS:")
113
+ self._log.info("=" * 80)
114
+ for match in matches:
115
+ self._log.info(f"✅ {match}")
116
+
117
+ self._log.info("\nNOT MATCHED PATHS:")
118
+ self._log.info("=" * 80)
119
+ for non_match in non_matches:
120
+ self._log.info(f"❌ {non_match}")
121
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.23
3
+ Version: 0.2.24
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.23"
7
+ version = "0.2.24"
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