haraka 0.2.8__tar.gz → 0.2.10__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 (33) hide show
  1. {haraka-0.2.8 → haraka-0.2.10}/PKG-INFO +1 -1
  2. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/config/config.py +1 -1
  3. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/runner.py +3 -3
  4. haraka-0.2.10/haraka/post_gen/service/assets.py +30 -0
  5. haraka-0.2.10/haraka/utils/__init__.py +5 -0
  6. {haraka-0.2.8 → haraka-0.2.10}/haraka/utils/logging/log_util.py +3 -3
  7. {haraka-0.2.8 → haraka-0.2.10}/haraka.egg-info/PKG-INFO +1 -1
  8. {haraka-0.2.8 → haraka-0.2.10}/pyproject.toml +1 -1
  9. haraka-0.2.8/haraka/post_gen/service/assets.py +0 -204
  10. haraka-0.2.8/haraka/utils/__init__.py +0 -5
  11. {haraka-0.2.8 → haraka-0.2.10}/haraka/__init__.py +0 -0
  12. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/__init__.py +0 -0
  13. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/ascii/__init__.py +0 -0
  14. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/ascii/assets.py +0 -0
  15. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/ascii/frame/__init__.py +0 -0
  16. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/ascii/frame/border.py +0 -0
  17. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/ascii/frame/framer.py +0 -0
  18. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/ascii/frame/width_utils.py +0 -0
  19. {haraka-0.2.8 → haraka-0.2.10}/haraka/art/create.py +0 -0
  20. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/__init__.py +0 -0
  21. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/config/__init__.py +0 -0
  22. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/service/__init__.py +0 -0
  23. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/service/command.py +0 -0
  24. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/service/files.py +0 -0
  25. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/service/gitops.py +0 -0
  26. {haraka-0.2.8 → haraka-0.2.10}/haraka/post_gen/service/purge.py +0 -0
  27. {haraka-0.2.8 → haraka-0.2.10}/haraka/utils/common/__init__.py +0 -0
  28. {haraka-0.2.8 → haraka-0.2.10}/haraka/utils/common/utils.py +0 -0
  29. {haraka-0.2.8 → haraka-0.2.10}/haraka/utils/logging/__init__.py +0 -0
  30. {haraka-0.2.8 → haraka-0.2.10}/haraka.egg-info/SOURCES.txt +0 -0
  31. {haraka-0.2.8 → haraka-0.2.10}/haraka.egg-info/dependency_links.txt +0 -0
  32. {haraka-0.2.8 → haraka-0.2.10}/haraka.egg-info/top_level.txt +0 -0
  33. {haraka-0.2.8 → haraka-0.2.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haraka
3
- Version: 0.2.8
3
+ Version: 0.2.10
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,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
@@ -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,
@@ -0,0 +1,30 @@
1
+ # assets.py ← drop this next to utils/, purge.py, etc.
2
+ from haraka.art.ascii.assets import *
3
+
4
+ go_emoji_logo = [
5
+ emoji["go"]
6
+ ]
7
+ go_performance_mode = [
8
+ goLang,
9
+ divider_xl,
10
+ performance_mode,
11
+ divider_l,
12
+ tools,
13
+ divider_s,
14
+ gRPC,
15
+ divider_mono,
16
+ protoC,
17
+ divider_mono,
18
+ autoMaxProcs,
19
+ divider_mono,
20
+ ants,
21
+ divider_mono,
22
+ zeroLog,
23
+ ]
24
+ go_fast = [
25
+ goFast,
26
+ gRpc_ProtoBuf,
27
+ server,
28
+ by,
29
+ wjb_dev
30
+ ]
@@ -0,0 +1,5 @@
1
+ from haraka.post_gen.config import PostGenConfig
2
+ from .logging.log_util import Logger
3
+ from .common.utils import *
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.10
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "haraka"
7
- version = "0.2.8"
7
+ version = "0.2.10"
8
8
  description = "Reusable post-generation helper for Cookiecutter micro-service templates"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -1,204 +0,0 @@
1
- # assets.py ← drop this next to utils/, purge.py, etc.
2
- from haraka.art.ascii.assets import *
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
- go_emoji_logo = [
179
- emoji["go"]
180
- ]
181
- go_performance_mode = [
182
- goLang,
183
- divider_xl,
184
- performance_mode,
185
- divider_l,
186
- tools,
187
- divider_s,
188
- gRPC,
189
- divider_mono,
190
- protoC,
191
- divider_mono,
192
- autoMaxProcs,
193
- divider_mono,
194
- ants,
195
- divider_mono,
196
- zeroLog,
197
- ]
198
- go_fast = [
199
- goFast,
200
- gRpc_ProtoBuf,
201
- server,
202
- by,
203
- wjb_dev
204
- ]
@@ -1,5 +0,0 @@
1
- from haraka.post_gen.config import PostGenConfig
2
- from .logging.log_util import Logger
3
- from .common.utils import *
4
- from haraka.post_gen.service.assets import *
5
- __all__ = ["PostGenConfig", "", "divider", "Logger", "LANGUAGE_ASSETS", "GLOBAL_ASSETS"]
File without changes
File without changes
File without changes
File without changes