haraka 0.2.44__tar.gz → 0.2.46__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.
Files changed (39) hide show
  1. {haraka-0.2.44 → haraka-0.2.46}/PKG-INFO +1 -1
  2. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/config/config.py +5 -4
  3. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/runner.py +13 -9
  4. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/fileOps/purge.py +2 -2
  5. haraka-0.2.44/haraka/utils/manifests/go-grpc-protoc.yml → haraka-0.2.46/haraka/utils/manifests/GoUltraFast.yml +1 -1
  6. haraka-0.2.44/haraka/utils/manifests/java-springboot.yml → haraka-0.2.46/haraka/utils/manifests/JavaFein.yml +1 -1
  7. haraka-0.2.44/haraka/utils/manifests/python-fastapi.yml → haraka-0.2.46/haraka/utils/manifests/PyFast.yml +5 -3
  8. {haraka-0.2.44 → haraka-0.2.46}/haraka.egg-info/PKG-INFO +1 -1
  9. {haraka-0.2.44 → haraka-0.2.46}/haraka.egg-info/SOURCES.txt +4 -4
  10. {haraka-0.2.44 → haraka-0.2.46}/pyproject.toml +1 -1
  11. {haraka-0.2.44 → haraka-0.2.46}/MANIFEST.in +0 -0
  12. {haraka-0.2.44 → haraka-0.2.46}/haraka/__init__.py +0 -0
  13. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/__init__.py +0 -0
  14. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/ascii/__init__.py +0 -0
  15. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/ascii/assets.py +0 -0
  16. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/ascii/frame/__init__.py +0 -0
  17. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/ascii/frame/border.py +0 -0
  18. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/ascii/frame/framer.py +0 -0
  19. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/ascii/frame/width_utils.py +0 -0
  20. {haraka-0.2.44 → haraka-0.2.46}/haraka/art/create.py +0 -0
  21. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/__init__.py +0 -0
  22. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/config/__init__.py +0 -0
  23. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/resources/__init__.py +0 -0
  24. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/resources/assets.py +0 -0
  25. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/__init__.py +0 -0
  26. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/command.py +0 -0
  27. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/fileOps/__init__.py +0 -0
  28. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/fileOps/files.py +0 -0
  29. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/gitOps/__init__.py +0 -0
  30. {haraka-0.2.44 → haraka-0.2.46}/haraka/post_gen/service/gitOps/gitops.py +0 -0
  31. {haraka-0.2.44 → haraka-0.2.46}/haraka/utils/__init__.py +0 -0
  32. {haraka-0.2.44 → haraka-0.2.46}/haraka/utils/common/__init__.py +0 -0
  33. {haraka-0.2.44 → haraka-0.2.46}/haraka/utils/common/utils.py +0 -0
  34. {haraka-0.2.44 → haraka-0.2.46}/haraka/utils/logging/__init__.py +0 -0
  35. {haraka-0.2.44 → haraka-0.2.46}/haraka/utils/logging/log_util.py +0 -0
  36. {haraka-0.2.44 → haraka-0.2.46}/haraka/utils/manifests/go-grpc-gateway-buf.yml +0 -0
  37. {haraka-0.2.44 → haraka-0.2.46}/haraka.egg-info/dependency_links.txt +0 -0
  38. {haraka-0.2.44 → haraka-0.2.46}/haraka.egg-info/top_level.txt +0 -0
  39. {haraka-0.2.44 → haraka-0.2.46}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.44
3
+ Version: 0.2.46
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,12 +10,13 @@ _MANIFEST_DIR = Path(__file__).resolve().parent.parent.parent / "utils" / "manif
10
10
  class PostGenConfig:
11
11
  variant: str
12
12
  project_slug: str
13
- author: str
14
- description: str
13
+ author_gh: str
15
14
  project_dir: Path
16
- create_repo: bool
15
+ description: str
16
+ use_git: bool
17
+ confirm_remote: bool
17
18
  verbose: bool = False
18
- evm: bool = False # Extreme Verbosity Mode - For in depth debugging
19
+ evm: bool = False # Extreme Verbosity Mode - For in depth debugging dev tool
19
20
 
20
21
 
21
22
  def load_manifest(variant: str) -> Tuple[List[str], List[str]]:
@@ -38,10 +38,7 @@ def main(cfg: PostGenConfig) -> None:
38
38
  purge.purge(cfg.variant, cfg.project_dir)
39
39
  logger.debug(f"Purge completed for variant: {cfg.variant} in directory: {cfg.project_dir}")
40
40
 
41
- logger.info("Skipping git repo creation (steps 2-4)...")
42
- logger.debug(f"Configuration for create_repo: {cfg.create_repo}")
43
-
44
- if cfg.create_repo:
41
+ if cfg.use_git:
45
42
 
46
43
  divider("2️⃣ / 4️⃣ – Initialise Git repo")
47
44
  logger.debug("Starting Git repository initialization")
@@ -55,16 +52,23 @@ def main(cfg: PostGenConfig) -> None:
55
52
  git.stage_commit(cfg.project_dir)
56
53
  logger.debug(f"Initial commit completed in directory: {cfg.project_dir}")
57
54
 
58
- divider("4️⃣ / 4️⃣ – Create GitHub repo & push")
59
- logger.debug("Starting GitHub repository creation and push")
55
+ if cfg.confirm_remote and cfg.author_gh:
56
+ divider("4️⃣ / 4️⃣ – Create GitHub repo & push")
57
+ logger.debug("Starting GitHub repository creation and push")
60
58
 
61
- git.push_to_github(cfg.project_dir, cfg.author, cfg.project_slug, cfg.description)
62
- logger.debug(f"Pushed to GitHub: Author: {cfg.author}, Slug: {cfg.project_slug}, Description: {cfg.description}")
59
+ git.push_to_github(cfg.project_dir, cfg.author_gh, cfg.project_slug, cfg.description)
60
+ logger.debug(f"Pushed to GitHub: Author: {cfg.author_gh}, Slug: {cfg.project_slug}, Description: {cfg.description}")
61
+ else:
62
+ logger.info("Skipping create remote (step 4)...")
63
+ logger.debug(f"Configuration for confirm_remote: {cfg.confirm_remote}")
64
+ else:
65
+ logger.info("Skipping git repo creation (steps 2-4)...")
66
+ logger.debug(f"Configuration for use_git: {cfg.use_git}")
63
67
 
64
68
  divider("🎉 Project generation complete 🎉")
65
69
  logger.debug("Project generation completed")
66
70
 
67
- if cfg.variant == "go-grpc-protoc":
71
+ if cfg.variant == "GoUltraFast":
68
72
  logger.debug(f"Detected variant: {cfg.variant}, beginning Go-specific steps")
69
73
  go_emoji_logo = [emoji["go"]]
70
74
  go_performance_mode = [
@@ -7,7 +7,7 @@ variant, as defined by a YAML manifest in `haraka/manifests/<variant>.yml`.
7
7
 
8
8
  Manifest format (git-wildmatch globs):
9
9
 
10
- variant: python-fastapi
10
+ variant: PyFast
11
11
  keep:
12
12
  - src/app/**
13
13
  - tests/**
@@ -52,7 +52,7 @@ class ResourcePurger:
52
52
  Parameters
53
53
  ----------
54
54
  variant
55
- Variant key, e.g. ``python-fastapi`` or ``go-grpc-protoc``.
55
+ Variant key, e.g. ``PyFast`` or ``GoUltraFast``.
56
56
  project_dir
57
57
  Root of the freshly generated Cookiecutter project.
58
58
  """
@@ -1,4 +1,4 @@
1
- variant: go-grpc-protoc
1
+ variant: GoUltraFast
2
2
 
3
3
  keep:
4
4
  # ── application source (Go) ─────────────────────────
@@ -1,4 +1,4 @@
1
- variant: java-springboot
1
+ variant: JavaFein
2
2
 
3
3
  keep:
4
4
  # ── application source ────────────────────────────
@@ -1,8 +1,7 @@
1
- variant: python-fastapi
1
+ variant: PyFast
2
2
 
3
3
  keep:
4
4
  # ── application source ─────────────────────────────
5
- - src/
6
5
  - src/app/
7
6
  - src/app/**
8
7
 
@@ -18,7 +17,6 @@ keep:
18
17
  - README.md
19
18
 
20
19
  # ── IDE / run configs ──────────────────────────────
21
- - runConfigurations/
22
20
  - runConfigurations/Python/
23
21
  - runConfigurations/Python/FastAPI.run.xml
24
22
 
@@ -28,3 +26,7 @@ keep:
28
26
  - chart/**
29
27
  - infra/
30
28
  - infra/**
29
+
30
+ protected:
31
+ - src
32
+ - runConfigurations
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.44
3
+ Version: 0.2.46
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
@@ -31,7 +31,7 @@ haraka/utils/common/__init__.py
31
31
  haraka/utils/common/utils.py
32
32
  haraka/utils/logging/__init__.py
33
33
  haraka/utils/logging/log_util.py
34
- haraka/utils/manifests/go-grpc-gateway-buf.yml
35
- haraka/utils/manifests/go-grpc-protoc.yml
36
- haraka/utils/manifests/java-springboot.yml
37
- haraka/utils/manifests/python-fastapi.yml
34
+ haraka/utils/manifests/GoUltraFast.yml
35
+ haraka/utils/manifests/JavaFein.yml
36
+ haraka/utils/manifests/PyFast.yml
37
+ haraka/utils/manifests/go-grpc-gateway-buf.yml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "haraka"
7
- version = "0.2.44"
7
+ version = "0.2.46"
8
8
  description = "Reusable post-generation helper for Cookiecutter micro-service templates"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
File without changes
File without changes
File without changes
File without changes
File without changes