haraka 0.2.17__tar.gz → 0.2.19__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.
- {haraka-0.2.17 → haraka-0.2.19}/PKG-INFO +1 -1
- {haraka-0.2.17 → haraka-0.2.19}/haraka/post_gen/runner.py +3 -3
- {haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/service/fileOps}/files.py +0 -2
- {haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/service/fileOps}/purge.py +7 -5
- {haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/service/git}/gitops.py +1 -1
- haraka-0.2.19/haraka/utils/common/__init__.py +0 -0
- haraka-0.2.19/haraka/utils/logging/__init__.py +0 -0
- haraka-0.2.19/haraka/utils/manifests/go-grpc-gateway-buf.yml +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka.egg-info/PKG-INFO +1 -1
- {haraka-0.2.17 → haraka-0.2.19}/haraka.egg-info/SOURCES.txt +7 -4
- {haraka-0.2.17 → haraka-0.2.19}/pyproject.toml +1 -1
- {haraka-0.2.17 → haraka-0.2.19}/MANIFEST.in +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/ascii/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/ascii/assets.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/ascii/frame/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/ascii/frame/border.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/ascii/frame/framer.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/ascii/frame/width_utils.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/art/create.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/post_gen/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/post_gen/config/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/post_gen/config/config.py +0 -0
- {haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/resources}/__init__.py +0 -0
- {haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/resources}/assets.py +0 -0
- {haraka-0.2.17/haraka/utils/common → haraka-0.2.19/haraka/post_gen/service}/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/post_gen/service/command.py +0 -0
- {haraka-0.2.17/haraka/utils/logging → haraka-0.2.19/haraka/post_gen/service/fileOps}/__init__.py +0 -0
- /haraka-0.2.17/haraka/utils/manifests/go-grpc-gateway-buf.yml → /haraka-0.2.19/haraka/post_gen/service/git/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/utils/__init__.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/utils/common/utils.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/utils/logging/log_util.py +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/utils/manifests/go-grpc-protoc.yml +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/utils/manifests/java-springboot.yml +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka/utils/manifests/python-fastapi.yml +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka.egg-info/dependency_links.txt +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/haraka.egg-info/top_level.txt +0 -0
- {haraka-0.2.17 → haraka-0.2.19}/setup.cfg +0 -0
@@ -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:
|
{haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/service/fileOps}/files.py
RENAMED
@@ -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)
|
{haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/service/fileOps}/purge.py
RENAMED
@@ -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
|
|
@@ -89,7 +87,11 @@ class ResourcePurger:
|
|
89
87
|
|
90
88
|
if spec.match_file(rel):
|
91
89
|
self._log.debug(f"Path matches keep patterns: {rel}")
|
92
|
-
self._log.debug(f"Keeping: {rel}")
|
90
|
+
self._log.debug(f"Keeping file: {rel}")
|
91
|
+
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}")
|
93
95
|
continue
|
94
96
|
|
95
97
|
if path.is_dir():
|
File without changes
|
File without changes
|
File without changes
|
@@ -17,12 +17,15 @@ haraka/post_gen/__init__.py
|
|
17
17
|
haraka/post_gen/runner.py
|
18
18
|
haraka/post_gen/config/__init__.py
|
19
19
|
haraka/post_gen/config/config.py
|
20
|
+
haraka/post_gen/resources/__init__.py
|
21
|
+
haraka/post_gen/resources/assets.py
|
20
22
|
haraka/post_gen/service/__init__.py
|
21
|
-
haraka/post_gen/service/assets.py
|
22
23
|
haraka/post_gen/service/command.py
|
23
|
-
haraka/post_gen/service/
|
24
|
-
haraka/post_gen/service/
|
25
|
-
haraka/post_gen/service/purge.py
|
24
|
+
haraka/post_gen/service/fileOps/__init__.py
|
25
|
+
haraka/post_gen/service/fileOps/files.py
|
26
|
+
haraka/post_gen/service/fileOps/purge.py
|
27
|
+
haraka/post_gen/service/git/__init__.py
|
28
|
+
haraka/post_gen/service/git/gitops.py
|
26
29
|
haraka/utils/__init__.py
|
27
30
|
haraka/utils/common/__init__.py
|
28
31
|
haraka/utils/common/utils.py
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{haraka-0.2.17/haraka/post_gen/service → haraka-0.2.19/haraka/post_gen/resources}/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{haraka-0.2.17/haraka/utils/logging → haraka-0.2.19/haraka/post_gen/service/fileOps}/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|