haraka 0.2.40__py3-none-any.whl → 0.2.42__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/service/fileOps/purge.py +7 -6
- haraka/utils/manifests/java-springboot.yml +3 -1
- {haraka-0.2.40.dist-info → haraka-0.2.42.dist-info}/METADATA +1 -1
- {haraka-0.2.40.dist-info → haraka-0.2.42.dist-info}/RECORD +6 -6
- {haraka-0.2.40.dist-info → haraka-0.2.42.dist-info}/WHEEL +0 -0
- {haraka-0.2.40.dist-info → haraka-0.2.42.dist-info}/top_level.txt +0 -0
@@ -83,7 +83,7 @@ class ResourcePurger:
|
|
83
83
|
|
84
84
|
matched, non_dirs, non_files, _ = self.classify_paths(all_paths, project_dir, spec)
|
85
85
|
|
86
|
-
self._purge_unrelated(project_dir, matched, non_dirs, non_files, protected_spec)
|
86
|
+
self._purge_unrelated(project_dir, matched, non_dirs, non_files, protected_spec, spec)
|
87
87
|
|
88
88
|
self._log.debug(f"Finished purging unrelated paths in project directory: {project_dir}")
|
89
89
|
|
@@ -148,15 +148,15 @@ class ResourcePurger:
|
|
148
148
|
self._log.info(" (none)")
|
149
149
|
self._log.info("-" * 70)
|
150
150
|
|
151
|
-
def _dir_batch_delete(self, title: str, items: List[str], root: Path, protected_spec: PathSpec) -> None:
|
151
|
+
def _dir_batch_delete(self, title: str, items: List[str], root: Path, protected_spec: PathSpec, keep_spec: PathSpec) -> None:
|
152
152
|
self._log.info(f"{title} — {len(items)}")
|
153
153
|
if items:
|
154
154
|
for p in sorted(items):
|
155
|
-
if
|
155
|
+
if protected_spec.match_file(p) and keep_spec.match_file(p):
|
156
|
+
self._log.debug(f" 🛡️ PROTECTED DIRECTORY DIR {p}")
|
157
|
+
else:
|
156
158
|
full_path = root / Path(p)
|
157
159
|
self._f.remove_dir(full_path)
|
158
|
-
else:
|
159
|
-
self._log.debug(f" 🛡️ PROTECTED DIRECTORY DIR {p}")
|
160
160
|
else:
|
161
161
|
self._log.info(" (none)")
|
162
162
|
self._log.info("-" * 70)
|
@@ -178,11 +178,12 @@ class ResourcePurger:
|
|
178
178
|
non_matched_dirs: List[str],
|
179
179
|
non_matched_files: List[str],
|
180
180
|
protected_spec: PathSpec,
|
181
|
+
keep_spec: PathSpec,
|
181
182
|
) -> None:
|
182
183
|
"""Human-friendly digest of keep/delete results."""
|
183
184
|
self._log.info("\n" + "=" * 70)
|
184
185
|
self._print_matches("✅ MATCHED (keep)", matched)
|
185
|
-
self._dir_batch_delete("🗂️ NON-MATCHED DIRECTORIES (delete)", non_matched_dirs, root, protected_spec)
|
186
|
+
self._dir_batch_delete("🗂️ NON-MATCHED DIRECTORIES (delete)", non_matched_dirs, root, protected_spec, keep_spec)
|
186
187
|
self._file_batch_delete("📄 NON-MATCHED FILES (delete)", non_matched_files, root)
|
187
188
|
self._log.info("=" * 70)
|
188
189
|
|
@@ -2,12 +2,14 @@ variant: java-springboot
|
|
2
2
|
|
3
3
|
keep:
|
4
4
|
# ── application source ────────────────────────────
|
5
|
+
- src/src/main
|
5
6
|
- src/main/java/
|
6
7
|
- src/main/java/**
|
7
8
|
- src/main/resources/
|
8
9
|
- src/main/resources/**
|
9
10
|
|
10
11
|
# ── tests ─────────────────────────────────────────
|
12
|
+
- src/test
|
11
13
|
- src/test/java/
|
12
14
|
- src/test/java/**
|
13
15
|
|
@@ -29,4 +31,4 @@ keep:
|
|
29
31
|
- infra/**
|
30
32
|
|
31
33
|
protected:
|
32
|
-
- src
|
34
|
+
- src/**
|
@@ -17,7 +17,7 @@ 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=qsNftbLoo8HHARBwNSHe6dUVPCoqzgv1SHUOH56gj00,3058
|
20
|
-
haraka/post_gen/service/fileOps/purge.py,sha256=
|
20
|
+
haraka/post_gen/service/fileOps/purge.py,sha256=dLwQal1uXgZaayTZkbgBSD-dA3mdz1HEYHaxVCjMD-Y,7625
|
21
21
|
haraka/post_gen/service/gitOps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
haraka/post_gen/service/gitOps/gitops.py,sha256=clWny1m9qB4yr8asba8JwqBjewlMVsJUmIOCLtAL8RI,4052
|
23
23
|
haraka/utils/__init__.py,sha256=3Cp4u0dyAGcmqes-tIr95KFsNsJx5Ji5Yzkto9546Hs,168
|
@@ -27,9 +27,9 @@ haraka/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
27
27
|
haraka/utils/logging/log_util.py,sha256=UQq2E24q3brvXqcyGCjfSxxHH48JF_BMg54TKdl1SHk,1049
|
28
28
|
haraka/utils/manifests/go-grpc-gateway-buf.yml,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
haraka/utils/manifests/go-grpc-protoc.yml,sha256=OaQlfW_S_OguhW_UcpBVdqdEtUMlg-SrT4bqLhQrY7Y,936
|
30
|
-
haraka/utils/manifests/java-springboot.yml,sha256=
|
30
|
+
haraka/utils/manifests/java-springboot.yml,sha256=rR9SvbqggfCNER_4iMbrg-oOG1fwCMIiqrDUYg2zT6s,981
|
31
31
|
haraka/utils/manifests/python-fastapi.yml,sha256=nhO6S9j_r-S10nM8nuw7PtR247-ePhBXHvaXg74CjWw,922
|
32
|
-
haraka-0.2.
|
33
|
-
haraka-0.2.
|
34
|
-
haraka-0.2.
|
35
|
-
haraka-0.2.
|
32
|
+
haraka-0.2.42.dist-info/METADATA,sha256=VdOQtgoaTKrtLDowkuse9yU1pYXfZ6SzgLIPDz-_PIs,579
|
33
|
+
haraka-0.2.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
34
|
+
haraka-0.2.42.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
|
35
|
+
haraka-0.2.42.dist-info/RECORD,,
|
File without changes
|
File without changes
|