haraka 0.2.8__py3-none-any.whl → 0.2.9__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.
@@ -8,7 +8,7 @@ _MANIFEST_DIR = Path(__file__).resolve().parent.parent.parent / "manifests"
8
8
 
9
9
  @dataclass(frozen=True, slots=True)
10
10
  class PostGenConfig:
11
- language: str
11
+ variant: str
12
12
  project_slug: str
13
13
  author: str
14
14
  description: str
haraka/post_gen/runner.py CHANGED
@@ -12,7 +12,7 @@ from haraka.post_gen.service.gitops import GitOps
12
12
 
13
13
  def main(cfg: PostGenConfig) -> None:
14
14
 
15
- _logger = Logger(cfg.language)
15
+ _logger = Logger(cfg.variant)
16
16
  logger = _logger.start_logger()
17
17
 
18
18
  try:
@@ -25,7 +25,7 @@ def main(cfg: PostGenConfig) -> None:
25
25
  raise
26
26
 
27
27
  divider("1️⃣ / 4️⃣ – Purge template junk")
28
- purge.purge(cfg.language, cfg.project_dir)
28
+ purge.purge(cfg.variant, cfg.project_dir)
29
29
  logger.info("Skipping git repo creation (steps 2-4)...")
30
30
 
31
31
  if cfg.create_repo:
@@ -41,7 +41,7 @@ def main(cfg: PostGenConfig) -> None:
41
41
 
42
42
  divider("🎉 Project generation complete 🎉")
43
43
 
44
- if cfg.language == "go-grpc-protoc":
44
+ if cfg.variant == "go-grpc-protoc":
45
45
  go_emoji_logo = [emoji["go"]]
46
46
  go_performance_mode = [
47
47
  goLang, divider_xl, performance_mode, divider_l, tools, divider_s,
@@ -1,180 +1,6 @@
1
1
  # assets.py ← drop this next to utils/, purge.py, etc.
2
2
  from haraka.art.ascii.assets import *
3
3
 
4
- LANGUAGE_ASSETS = [
5
- {
6
- "language": "go",
7
- "files": [
8
- "Dockerfile",
9
- "Makefile",
10
- "Makefile.cpp",
11
- "README.md",
12
- "go.mod",
13
- "skaffold.yaml",
14
- "configs/dev.yaml",
15
- "configs/prod.yaml",
16
- "internal/config/config.go",
17
- "internal/handler/echo.go",
18
- "internal/handler/ping.go",
19
- "internal/server/health.go",
20
- "internal/server/server.go",
21
- "pkg/proto/v1/ping.proto",
22
- "pkg/proto/v1/service.proto",
23
- # "cmd/{{ cookiecutter.project_slug }}/main.go",
24
- "test/integration/echo_integration_test.go",
25
- "test/integration/health_integration_test.go",
26
- "test/integration/ping_integration_test.go",
27
- "test/integration/testutil.go",
28
- "test/unit/config/config_test.go",
29
- "test/unit/handler/echo_test.go",
30
- "test/unit/handler/ping_test.go",
31
- "test/unit/server/health_test.go",
32
- "test/unit/server/server_test.go",
33
- "test/unit_test.go",
34
- "test/package.go",
35
- "runConfigurations/go/Golang.run.xml",
36
- "chart/Chart.yaml",
37
- "chart/templates/deployment.yaml",
38
- "chart/templates/service.yaml",
39
- "chart/templates/_helpers.tpl",
40
- "chart/values.yaml",
41
- "infra/terraform/main.tf",
42
- "src/cpp/CMakeLists.txt",
43
- "src/cpp/main.cc",
44
- "tests/cpp/test_stub.cc"
45
- ],
46
- "dirs": [
47
- "cmd/",
48
- "configs/",
49
- "internal/",
50
- "internal/config/",
51
- "internal/handler/",
52
- "internal/server/",
53
- "pkg/",
54
- "pkg/proto/",
55
- "pkg/proto/v1/",
56
- "test/",
57
- "test/integration/",
58
- "test/unit/",
59
- "test/unit/config/",
60
- "test/unit/handler/",
61
- "test/unit/server/",
62
- "runConfigurations/",
63
- "runConfigurations/go/",
64
- "chart/",
65
- "chart/templates/",
66
- "infra/",
67
- "infra/terraform/",
68
- "src/",
69
- "src/cpp/",
70
- "tests/",
71
- "tests/cpp/"
72
- ]
73
- },
74
- {
75
- "language": "python",
76
- "files": [
77
- "Dockerfile",
78
- "Makefile",
79
- "README.md",
80
- "requirements.txt",
81
- "pytest.ini",
82
- "skaffold.yaml",
83
- "src/app/__init__.py",
84
- "src/app/main.py",
85
- "src/app/core/config.py",
86
- "src/app/services/health.py",
87
- "src/app/schemas/health.py",
88
- "src/app/api/v1/__init__.py",
89
- "src/app/api/v1/routers/health.py",
90
- "tests/__init__.py",
91
- "tests/conftest.py",
92
- "tests/integration/test_health_endpoint.py",
93
- "tests/unit/api/v1/routers/test_health.py",
94
- "tests/unit/schemas/test_health_schema.py"
95
- ],
96
- "dirs": [
97
- "src/",
98
- "src/app/",
99
- "src/app/core/",
100
- "src/app/services/",
101
- "src/app/schemas/",
102
- "src/app/api/",
103
- "src/app/api/v1/",
104
- "src/app/api/v1/routers/",
105
- "tests/",
106
- "tests/integration/",
107
- "tests/unit/",
108
- "tests/unit/api/",
109
- "tests/unit/api/v1/",
110
- "tests/unit/api/v1/routers/",
111
- "tests/unit/schemas/"
112
- ]
113
- },
114
- {
115
- "language": "java",
116
- "files": [
117
- "Dockerfile",
118
- "Makefile",
119
- "README.md",
120
- "pom.xml",
121
- "skaffold.yaml",
122
- "src/main/java/com/example/Application.java",
123
- "src/main/java/com/example/config/OpenApiConfig.java",
124
- "src/main/java/com/example/controller/HealthController.java",
125
- "src/main/java/com/example/dto/HealthResponse.java",
126
- "src/main/java/com/example/exception/GlobalExceptionHandler.java",
127
- "src/main/java/com/example/service/HealthService.java",
128
- "src/main/resources/application.yml",
129
- "src/test/java/com/example/controller/HealthControllerTest.java",
130
- "src/test/java/com/example/service/HealthServiceTest.java"
131
- ],
132
- "dirs": [
133
- "src/",
134
- "src/main/",
135
- "src/main/java/",
136
- "src/main/java/com/",
137
- "src/main/java/com/example/",
138
- "src/main/java/com/example/config/",
139
- "src/main/java/com/example/controller/",
140
- "src/main/java/com/example/dto/",
141
- "src/main/java/com/example/exception/",
142
- "src/main/java/com/example/service/",
143
- "src/main/resources/",
144
- "src/test/",
145
- "src/test/java/",
146
- "src/test/java/com/",
147
- "src/test/java/com/example/",
148
- "src/test/java/com/example/controller/",
149
- "src/test/java/com/example/service/"
150
- ]
151
- }
152
- ]
153
-
154
- # ------------------------------------------------------------------ #
155
- # GLOBAL ASSETS (kept for every language) #
156
- # ------------------------------------------------------------------ #
157
- GLOBAL_ASSETS = {
158
- "files": [
159
- "Dockerfile",
160
- "Makefile",
161
- "README.md",
162
- "skaffold.yaml",
163
- "chart/Chart.yaml",
164
- "chart/values.yaml",
165
- "chart/templates/_helpers.tpl",
166
- "chart/templates/deployment.yaml",
167
- "chart/templates/service.yaml",
168
- "infra/terraform/main.tf",
169
- ],
170
- "dirs": [
171
- "chart/",
172
- "chart/templates/",
173
- "infra/",
174
- "infra/terraform/",
175
- ],
176
- }
177
-
178
4
  go_emoji_logo = [
179
5
  emoji["go"]
180
6
  ]
haraka/utils/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  from haraka.post_gen.config import PostGenConfig
2
2
  from .logging.log_util import Logger
3
3
  from .common.utils import *
4
- from haraka.post_gen.service.assets import *
5
- __all__ = ["PostGenConfig", "", "divider", "Logger", "LANGUAGE_ASSETS", "GLOBAL_ASSETS"]
4
+
5
+ __all__ = ["PostGenConfig", "", "divider", "Logger"]
@@ -21,8 +21,8 @@ class Logger:
21
21
  print(f"{self.label} ERROR: {msg}", file=file)
22
22
 
23
23
  @staticmethod
24
- def get_label(language: str) -> str:
25
- if language == "go":
24
+ def get_label(variant: str) -> str:
25
+ if variant == "go":
26
26
  return f"[🔥Go Fast: post_gen]"
27
- return f"[🔥post_gen ({language})]"
27
+ return f"[🔥post_gen ({variant})]"
28
28
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.8
3
+ Version: 0.2.9
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
@@ -8,21 +8,21 @@ 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=6daM8f11pyswRlumRO4zxtOm5n3kqTgc69tbD1rz-6o,1926
11
+ haraka/post_gen/runner.py,sha256=J568noKQ3Cv44MzkFA3d2Vbwl6Tt8VPCfRj3_Y-hZSM,1923
12
12
  haraka/post_gen/config/__init__.py,sha256=-_XkJ_Dni28yJCMfIceQSiH1wa_hHsZMoBTyvR9Ikbc,62
13
- haraka/post_gen/config/config.py,sha256=4qUtL8S3ivZLr0_qMwCv8ZxwRV-6dwErIRSD6IR92rI,1275
13
+ haraka/post_gen/config/config.py,sha256=PoQSZELwSbPMuDM1UktW83omKYmalGfo8Onuaaw4z9g,1274
14
14
  haraka/post_gen/service/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
- haraka/post_gen/service/assets.py,sha256=UARi1iDczVHoNGm5FpKkSXCk-yvnzyMMtSJM1SxMRSA,6157
15
+ haraka/post_gen/service/assets.py,sha256=-oz3vlBaVOjeCOO2QHRvOmfyurR1KgihqXqbTtxDNG4,461
16
16
  haraka/post_gen/service/command.py,sha256=5yxPSQmQpzAyPNoLtzxaUz1VWgPnTfD7XlkBUu5rIeI,1672
17
17
  haraka/post_gen/service/files.py,sha256=1hPHn_nYI5A2JKJqxmNFK5fpo9DNPcGR4K7qCPOO5GE,1993
18
18
  haraka/post_gen/service/gitops.py,sha256=hRnztg_5yW3L_bdh05gcgGQ25wwjSTn8pX1sja-m91s,2434
19
19
  haraka/post_gen/service/purge.py,sha256=cNs2pHkXN1EJS7RIGR7pAmqJcyQ4eUbhkGpPqrq0Zv4,2656
20
- haraka/utils/__init__.py,sha256=3WDKxExMNfIrsYqnO0somSJavCJc5_s56S7ffbnXmzc,248
20
+ haraka/utils/__init__.py,sha256=3Cp4u0dyAGcmqes-tIr95KFsNsJx5Ji5Yzkto9546Hs,168
21
21
  haraka/utils/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  haraka/utils/common/utils.py,sha256=kMnMXe_hcxGkD0MKGmR1lIwsRND7BaFPRbGN4PwonfM,360
23
23
  haraka/utils/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
- haraka/utils/logging/log_util.py,sha256=rl-VnSPns84MPDp7SwArtrO4oPHUPUiRNdkp0NBvxsY,778
25
- haraka-0.2.8.dist-info/METADATA,sha256=HqUywv1r5vwg-vlCrWyQ5y6dInpThJ7dFJrUFlCm9xU,578
26
- haraka-0.2.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- haraka-0.2.8.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
28
- haraka-0.2.8.dist-info/RECORD,,
24
+ haraka/utils/logging/log_util.py,sha256=S876RggZrLVCLlsEM5i7w1PGKCvR1WECykwtJW83NO0,775
25
+ haraka-0.2.9.dist-info/METADATA,sha256=bTD8d-tpMFFPdV3PkEo8diMfpttTUPwtRqyUrYrDwIs,578
26
+ haraka-0.2.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ haraka-0.2.9.dist-info/top_level.txt,sha256=1khpwypLKWoklVd_CgFiwAfcctVSXRoRPc3BI9lyIXo,7
28
+ haraka-0.2.9.dist-info/RECORD,,
File without changes