haraka 0.2.18__py3-none-any.whl → 0.2.19__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/resources/__init__.py +0 -0
- haraka/post_gen/runner.py +3 -3
- haraka/post_gen/service/fileOps/__init__.py +0 -0
- haraka/post_gen/service/{files.py → fileOps/files.py} +0 -2
- haraka/post_gen/service/{purge.py → fileOps/purge.py} +2 -4
- haraka/post_gen/service/git/__init__.py +0 -0
- haraka/post_gen/service/{gitops.py → git/gitops.py} +1 -1
- {haraka-0.2.18.dist-info → haraka-0.2.19.dist-info}/METADATA +1 -1
- {haraka-0.2.18.dist-info → haraka-0.2.19.dist-info}/RECORD +12 -9
- /haraka/post_gen/{service → resources}/assets.py +0 -0
- {haraka-0.2.18.dist-info → haraka-0.2.19.dist-info}/WHEEL +0 -0
- {haraka-0.2.18.dist-info → haraka-0.2.19.dist-info}/top_level.txt +0 -0
File without changes
|
haraka/post_gen/runner.py
CHANGED
@@ -3,9 +3,9 @@ from haraka.art.ascii.assets import *
|
|
3
3
|
from .config import PostGenConfig
|
4
4
|
from haraka.utils import divider, Logger
|
5
5
|
from haraka.post_gen.service.command import CommandRunner
|
6
|
-
from haraka.post_gen.service.files import FileOps
|
7
|
-
from haraka.post_gen.service.purge import ResourcePurger
|
8
|
-
from haraka.post_gen.service.gitops import GitOps
|
6
|
+
from haraka.post_gen.service.fileOps.files import FileOps
|
7
|
+
from haraka.post_gen.service.fileOps.purge import ResourcePurger
|
8
|
+
from haraka.post_gen.service.git.gitops import GitOps
|
9
9
|
|
10
10
|
|
11
11
|
def main(cfg: PostGenConfig) -> None:
|
File without changes
|
@@ -47,14 +47,12 @@ class FileOps:
|
|
47
47
|
self.logger.warn(f"Could not remove directory {self._relpath(path)}: {e}")
|
48
48
|
|
49
49
|
def print_tree(self, path: Path, prefix: str = "") -> None:
|
50
|
-
self.logger.debug(f"Printing directory tree starting at: {self._relpath(path)}")
|
51
50
|
|
52
51
|
if not path.exists():
|
53
52
|
self.logger.debug(f"Path {self._relpath(path)} does not exist")
|
54
53
|
self.logger.warn(f"Path does not exist: {path}")
|
55
54
|
return
|
56
55
|
entries = sorted(path.iterdir(), key=lambda p: (p.is_file(), p.name.lower()))
|
57
|
-
self.logger.debug(f"Found {len(entries)} entries in directory {self._relpath(path)}")
|
58
56
|
for i, entry in enumerate(entries):
|
59
57
|
branch = "└── " if i == len(entries) - 1 else "├── "
|
60
58
|
print(prefix + branch + entry.name)
|
@@ -21,14 +21,12 @@ Requires: pip install pathspec PyYAML
|
|
21
21
|
from __future__ import annotations
|
22
22
|
|
23
23
|
from pathlib import Path
|
24
|
-
from typing import Iterable
|
25
24
|
|
26
|
-
import yaml
|
27
25
|
from pathspec import PathSpec
|
28
26
|
|
29
|
-
from .files import FileOps
|
27
|
+
from haraka.post_gen.service.fileOps.files import FileOps
|
30
28
|
from haraka.utils import Logger, divider
|
31
|
-
from
|
29
|
+
from haraka.post_gen.config import config
|
32
30
|
|
33
31
|
_MANIFEST_DIR = Path(__file__).resolve().parent.parent.parent / "manifests"
|
34
32
|
|
File without changes
|
@@ -8,15 +8,18 @@ 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=
|
11
|
+
haraka/post_gen/runner.py,sha256=MRb5y30FbGTImYEV7ZomwBdHFNz3ycFr7e16TMN3gb0,3268
|
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
|
+
haraka/post_gen/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
+
haraka/post_gen/resources/assets.py,sha256=-oz3vlBaVOjeCOO2QHRvOmfyurR1KgihqXqbTtxDNG4,461
|
14
16
|
haraka/post_gen/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
-
haraka/post_gen/service/assets.py,sha256=-oz3vlBaVOjeCOO2QHRvOmfyurR1KgihqXqbTtxDNG4,461
|
16
17
|
haraka/post_gen/service/command.py,sha256=yvEzW9rMSXWeQ_2DXuQNtGH6sRuZnK6viMud-amFQXw,2348
|
17
|
-
haraka/post_gen/service/
|
18
|
-
haraka/post_gen/service/
|
19
|
-
haraka/post_gen/service/purge.py,sha256=
|
18
|
+
haraka/post_gen/service/fileOps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
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
23
|
haraka/utils/__init__.py,sha256=3Cp4u0dyAGcmqes-tIr95KFsNsJx5Ji5Yzkto9546Hs,168
|
21
24
|
haraka/utils/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
25
|
haraka/utils/common/utils.py,sha256=kMnMXe_hcxGkD0MKGmR1lIwsRND7BaFPRbGN4PwonfM,360
|
@@ -26,7 +29,7 @@ haraka/utils/manifests/go-grpc-gateway-buf.yml,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
26
29
|
haraka/utils/manifests/go-grpc-protoc.yml,sha256=aR-Tv6iIcBzni3jbTg10wvceydBdk07fM7y3QcK1B8k,948
|
27
30
|
haraka/utils/manifests/java-springboot.yml,sha256=WzcaStDgzyWmBhV2TUiYEkxHhYwydN9ww2yjZYyhSmw,929
|
28
31
|
haraka/utils/manifests/python-fastapi.yml,sha256=FKHV0G53I0hoqAVmvoB18rVxw7PiVB_yjSwd_urXgn0,860
|
29
|
-
haraka-0.2.
|
30
|
-
haraka-0.2.
|
31
|
-
haraka-0.2.
|
32
|
-
haraka-0.2.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|