haraka 0.2.38__py3-none-any.whl → 0.2.39__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.
@@ -27,14 +27,22 @@ def load_manifest(variant: str) -> Tuple[List[str], List[str]]:
27
27
  f"(expected {manifest_path})"
28
28
  )
29
29
  doc = yaml.safe_load(manifest_path.read_text())
30
- if not isinstance(doc, dict) or "keep" not in doc or "protected_dirs" not in doc:
31
- raise ValueError(f"Manifest {manifest_path} missing a `keep:` section")
30
+ if not isinstance(doc, dict):
31
+ if "keep" not in doc:
32
+ raise ValueError(f"Manifest {manifest_path} missing a `keep:` section")
33
+
34
+ if "protected" not in doc:
35
+ raise ValueError(f"Manifest {manifest_path} missing a `protected:` section")
36
+
32
37
  keep_patterns = doc["keep"]
33
- protected_dirs = doc.get("protected_dirs", [])
38
+ protected_dirs = doc.get("protected", [])
39
+
34
40
  if not isinstance(keep_patterns, Iterable):
35
41
  raise TypeError(f"`keep` section in {manifest_path} must be a list")
42
+
36
43
  if not isinstance(protected_dirs, Iterable):
37
44
  raise TypeError(f"`protected` section in {manifest_path} must be a list")
45
+
38
46
  return list(keep_patterns), list(protected_dirs)
39
47
 
40
48
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.38
3
+ Version: 0.2.39
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
@@ -10,7 +10,7 @@ haraka/art/ascii/frame/width_utils.py,sha256=in4AV3gTBBXUX6N01j67Icu9vsHFomybBN8
10
10
  haraka/post_gen/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
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
- haraka/post_gen/config/config.py,sha256=XexywLrjD2cR0K-9J8ObVCSchHnQuoQfW0-YIElG8ig,1652
13
+ haraka/post_gen/config/config.py,sha256=G6Y3a_kjDXjynYi-d3z2oQ8rsp0WSn68TcyNaJZrpN8,1758
14
14
  haraka/post_gen/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  haraka/post_gen/resources/assets.py,sha256=-oz3vlBaVOjeCOO2QHRvOmfyurR1KgihqXqbTtxDNG4,461
16
16
  haraka/post_gen/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -29,7 +29,7 @@ haraka/utils/manifests/go-grpc-gateway-buf.yml,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
29
29
  haraka/utils/manifests/go-grpc-protoc.yml,sha256=OaQlfW_S_OguhW_UcpBVdqdEtUMlg-SrT4bqLhQrY7Y,936
30
30
  haraka/utils/manifests/java-springboot.yml,sha256=AF4ebSqKj2AG4dlTfgJJjzG7Nke4wknRshROHbSL_dc,961
31
31
  haraka/utils/manifests/python-fastapi.yml,sha256=nhO6S9j_r-S10nM8nuw7PtR247-ePhBXHvaXg74CjWw,922
32
- haraka-0.2.38.dist-info/METADATA,sha256=A5nj60d9nrUhfK061R74gQkTzh8M72qa5JWLEB2ijWM,579
33
- haraka-0.2.38.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- haraka-0.2.38.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
35
- haraka-0.2.38.dist-info/RECORD,,
32
+ haraka-0.2.39.dist-info/METADATA,sha256=EMQWLHjXM7S594H9hC54Msg_850T2mbsuK64mGihfgA,579
33
+ haraka-0.2.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
+ haraka-0.2.39.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
35
+ haraka-0.2.39.dist-info/RECORD,,