haraka 0.2.20__tar.gz → 0.2.22__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.20 → haraka-0.2.22}/PKG-INFO +1 -1
  2. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/runner.py +1 -1
  3. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/service/fileOps/purge.py +8 -4
  4. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/manifests/java-springboot.yml +0 -5
  5. {haraka-0.2.20 → haraka-0.2.22}/haraka.egg-info/PKG-INFO +1 -1
  6. {haraka-0.2.20 → haraka-0.2.22}/haraka.egg-info/SOURCES.txt +2 -2
  7. {haraka-0.2.20 → haraka-0.2.22}/pyproject.toml +1 -1
  8. {haraka-0.2.20 → haraka-0.2.22}/MANIFEST.in +0 -0
  9. {haraka-0.2.20 → haraka-0.2.22}/haraka/__init__.py +0 -0
  10. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/__init__.py +0 -0
  11. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/ascii/__init__.py +0 -0
  12. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/ascii/assets.py +0 -0
  13. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/ascii/frame/__init__.py +0 -0
  14. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/ascii/frame/border.py +0 -0
  15. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/ascii/frame/framer.py +0 -0
  16. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/ascii/frame/width_utils.py +0 -0
  17. {haraka-0.2.20 → haraka-0.2.22}/haraka/art/create.py +0 -0
  18. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/__init__.py +0 -0
  19. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/config/__init__.py +0 -0
  20. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/config/config.py +0 -0
  21. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/resources/__init__.py +0 -0
  22. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/resources/assets.py +0 -0
  23. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/service/__init__.py +0 -0
  24. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/service/command.py +0 -0
  25. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/service/fileOps/__init__.py +0 -0
  26. {haraka-0.2.20 → haraka-0.2.22}/haraka/post_gen/service/fileOps/files.py +0 -0
  27. {haraka-0.2.20/haraka/post_gen/service/git → haraka-0.2.22/haraka/post_gen/service/gitOps}/__init__.py +0 -0
  28. {haraka-0.2.20/haraka/post_gen/service/git → haraka-0.2.22/haraka/post_gen/service/gitOps}/gitops.py +0 -0
  29. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/__init__.py +0 -0
  30. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/common/__init__.py +0 -0
  31. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/common/utils.py +0 -0
  32. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/logging/__init__.py +0 -0
  33. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/logging/log_util.py +0 -0
  34. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/manifests/go-grpc-gateway-buf.yml +0 -0
  35. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/manifests/go-grpc-protoc.yml +0 -0
  36. {haraka-0.2.20 → haraka-0.2.22}/haraka/utils/manifests/python-fastapi.yml +0 -0
  37. {haraka-0.2.20 → haraka-0.2.22}/haraka.egg-info/dependency_links.txt +0 -0
  38. {haraka-0.2.20 → haraka-0.2.22}/haraka.egg-info/top_level.txt +0 -0
  39. {haraka-0.2.20 → haraka-0.2.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.20
3
+ Version: 0.2.22
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
@@ -5,7 +5,7 @@ from haraka.utils import divider, Logger
5
5
  from haraka.post_gen.service.command import CommandRunner
6
6
  from haraka.post_gen.service.fileOps.files import FileOps
7
7
  from haraka.post_gen.service.fileOps.purge import ResourcePurger
8
- from haraka.post_gen.service.git.gitops import GitOps
8
+ from haraka.post_gen.service.gitOps.gitops import GitOps
9
9
 
10
10
 
11
11
  def main(cfg: PostGenConfig) -> None:
@@ -85,15 +85,19 @@ class ResourcePurger:
85
85
  rel = path.relative_to(root).as_posix()
86
86
  self._log.debug(f"Relative path for inspection: {rel}")
87
87
 
88
+ # Match directory paths explicitly with trailing slash
89
+ if path.is_dir() and spec.match_file(f"{rel}/"):
90
+ self._log.debug(f"Path matches keep patterns: {rel}/")
91
+ self._log.debug(f"Keeping directory: {rel}")
92
+ continue
93
+
94
+ # Regular file matching
88
95
  if spec.match_file(rel):
89
96
  self._log.debug(f"Path matches keep patterns: {rel}")
90
97
  self._log.debug(f"Keeping file: {rel}")
91
98
  continue
92
- elif path.is_dir() and spec.match_file(f"{rel}/"):
93
- self._log.debug(f"Path matches keep patterns: {rel}")
94
- self._log.debug(f"Keeping directory: {rel}")
95
- continue
96
99
 
100
+ # If path didn't match, delete
97
101
  if path.is_dir():
98
102
  self._f.remove_dir(path)
99
103
  self._log.debug(f"Deleted directory: {path}")
@@ -2,16 +2,12 @@ variant: java-springboot
2
2
 
3
3
  keep:
4
4
  # ── application source ────────────────────────────
5
- - src/
6
- - src/main/
7
5
  - src/main/java/
8
6
  - src/main/java/**
9
7
  - src/main/resources/
10
8
  - src/main/resources/**
11
9
 
12
10
  # ── tests ─────────────────────────────────────────
13
- - src/
14
- - src/test/
15
11
  - src/test/java/
16
12
  - src/test/java/**
17
13
 
@@ -22,7 +18,6 @@ keep:
22
18
  - README.md
23
19
 
24
20
  # ── IDE / run configs ─────────────────────────────
25
- - runConfigurations/
26
21
  - runConfigurations/SpringBoot/
27
22
  - runConfigurations/SpringBoot/**
28
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.20
3
+ Version: 0.2.22
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
@@ -24,8 +24,8 @@ haraka/post_gen/service/command.py
24
24
  haraka/post_gen/service/fileOps/__init__.py
25
25
  haraka/post_gen/service/fileOps/files.py
26
26
  haraka/post_gen/service/fileOps/purge.py
27
- haraka/post_gen/service/git/__init__.py
28
- haraka/post_gen/service/git/gitops.py
27
+ haraka/post_gen/service/gitOps/__init__.py
28
+ haraka/post_gen/service/gitOps/gitops.py
29
29
  haraka/utils/__init__.py
30
30
  haraka/utils/common/__init__.py
31
31
  haraka/utils/common/utils.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "haraka"
7
- version = "0.2.20"
7
+ version = "0.2.22"
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