haraka 0.2.19__py3-none-any.whl → 0.2.21__py3-none-any.whl

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.
haraka/post_gen/runner.py CHANGED
@@ -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}")
@@ -6,8 +6,8 @@ keep:
6
6
  - cmd/**
7
7
  - internal/
8
8
  - internal/**
9
- - pkg/proto/
10
- - pkg/proto/**
9
+ - pkg/
10
+ - pkg/**
11
11
  - configs/
12
12
  - configs/**
13
13
  - go.mod
@@ -2,12 +2,16 @@ variant: java-springboot
2
2
 
3
3
  keep:
4
4
  # ── application source ────────────────────────────
5
+ - src/
6
+ - src/main/
5
7
  - src/main/java/
6
8
  - src/main/java/**
7
9
  - src/main/resources/
8
10
  - src/main/resources/**
9
11
 
10
12
  # ── tests ─────────────────────────────────────────
13
+ - src/
14
+ - src/test/
11
15
  - src/test/java/
12
16
  - src/test/java/**
13
17
 
@@ -18,6 +22,7 @@ keep:
18
22
  - README.md
19
23
 
20
24
  # ── IDE / run configs ─────────────────────────────
25
+ - runConfigurations/
21
26
  - runConfigurations/SpringBoot/
22
27
  - runConfigurations/SpringBoot/**
23
28
 
@@ -2,6 +2,7 @@ variant: python-fastapi
2
2
 
3
3
  keep:
4
4
  # ── application source ─────────────────────────────
5
+ - src/
5
6
  - src/app/
6
7
  - src/app/**
7
8
 
@@ -17,6 +18,8 @@ keep:
17
18
  - README.md
18
19
 
19
20
  # ── IDE / run configs ──────────────────────────────
21
+ - runConfigurations/
22
+ - runConfigurations/Python/
20
23
  - runConfigurations/Python/FastAPI.run.xml
21
24
 
22
25
  # ── deployment & infra (shared) ────────────────────
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.19
3
+ Version: 0.2.21
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
@@ -8,7 +8,7 @@ haraka/art/ascii/frame/border.py,sha256=n7qaLxzzBmf8ewatbe5gN97DO4afZM67bBjpU1Oq
8
8
  haraka/art/ascii/frame/framer.py,sha256=s_-lsb-hGhlH_73q5iTtk8KHW0MSeSHSAvNFVmL1c9A,3951
9
9
  haraka/art/ascii/frame/width_utils.py,sha256=in4AV3gTBBXUX6N01j67Icu9vsHFomybBN8rpL3sQ5s,810
10
10
  haraka/post_gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- haraka/post_gen/runner.py,sha256=MRb5y30FbGTImYEV7ZomwBdHFNz3ycFr7e16TMN3gb0,3268
11
+ haraka/post_gen/runner.py,sha256=CgC3-mOA6dOovJBCLykrec_Segitbu0XesMH6jsl6lM,3271
12
12
  haraka/post_gen/config/__init__.py,sha256=-_XkJ_Dni28yJCMfIceQSiH1wa_hHsZMoBTyvR9Ikbc,62
13
13
  haraka/post_gen/config/config.py,sha256=nmsQ19ONWE76GFQtah_PUO1HygE-ZCCOfK03M-t-kMs,1310
14
14
  haraka/post_gen/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,19 +17,19 @@ haraka/post_gen/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
17
17
  haraka/post_gen/service/command.py,sha256=yvEzW9rMSXWeQ_2DXuQNtGH6sRuZnK6viMud-amFQXw,2348
18
18
  haraka/post_gen/service/fileOps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  haraka/post_gen/service/fileOps/files.py,sha256=Jm_0bhvVnNqSPGKQ2RnMpx8JLV74M-IXMmwly9fpmVw,3020
20
- haraka/post_gen/service/fileOps/purge.py,sha256=6MOUrwXojr2qQxebT_tczVlquVE-D0jlP67toR6oIIs,3765
21
- haraka/post_gen/service/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
- haraka/post_gen/service/git/gitops.py,sha256=clWny1m9qB4yr8asba8JwqBjewlMVsJUmIOCLtAL8RI,4052
20
+ haraka/post_gen/service/fileOps/purge.py,sha256=yMdjWPBj_k06gDw9hCoZmtv69KwuZdSROABPUNl1lVA,3911
21
+ haraka/post_gen/service/gitOps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
+ haraka/post_gen/service/gitOps/gitops.py,sha256=clWny1m9qB4yr8asba8JwqBjewlMVsJUmIOCLtAL8RI,4052
23
23
  haraka/utils/__init__.py,sha256=3Cp4u0dyAGcmqes-tIr95KFsNsJx5Ji5Yzkto9546Hs,168
24
24
  haraka/utils/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  haraka/utils/common/utils.py,sha256=kMnMXe_hcxGkD0MKGmR1lIwsRND7BaFPRbGN4PwonfM,360
26
26
  haraka/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  haraka/utils/logging/log_util.py,sha256=Pf5uuxPfeaQDygOy3AWVj2W_4QSKM6V4FCHCJk6KypY,961
28
28
  haraka/utils/manifests/go-grpc-gateway-buf.yml,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
- haraka/utils/manifests/go-grpc-protoc.yml,sha256=aR-Tv6iIcBzni3jbTg10wvceydBdk07fM7y3QcK1B8k,948
30
- haraka/utils/manifests/java-springboot.yml,sha256=WzcaStDgzyWmBhV2TUiYEkxHhYwydN9ww2yjZYyhSmw,929
31
- haraka/utils/manifests/python-fastapi.yml,sha256=FKHV0G53I0hoqAVmvoB18rVxw7PiVB_yjSwd_urXgn0,860
32
- haraka-0.2.19.dist-info/METADATA,sha256=9uxOPhqqwdRdQuROHuHdlLT3oW012AhllHQyokBkPbQ,579
33
- haraka-0.2.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- haraka-0.2.19.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
35
- haraka-0.2.19.dist-info/RECORD,,
29
+ haraka/utils/manifests/go-grpc-protoc.yml,sha256=OaQlfW_S_OguhW_UcpBVdqdEtUMlg-SrT4bqLhQrY7Y,936
30
+ haraka/utils/manifests/java-springboot.yml,sha256=q88hrqL44jumOUTySK78OPRdKxZlTqY9QqR8HtP4VBE,998
31
+ haraka/utils/manifests/python-fastapi.yml,sha256=nhO6S9j_r-S10nM8nuw7PtR247-ePhBXHvaXg74CjWw,922
32
+ haraka-0.2.21.dist-info/METADATA,sha256=LiI-KM9vch-bqJgeSyPJiK2nguFqqgPdQtKJ4LUu-ww,579
33
+ haraka-0.2.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
+ haraka-0.2.21.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
35
+ haraka-0.2.21.dist-info/RECORD,,
File without changes
File without changes