atlas-init 0.10.0__py3-none-any.whl → 0.10.1__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.
- atlas_init/__init__.py +1 -1
- atlas_init/tf_ext/tf_ws.py +7 -4
- {atlas_init-0.10.0.dist-info → atlas_init-0.10.1.dist-info}/METADATA +1 -1
- {atlas_init-0.10.0.dist-info → atlas_init-0.10.1.dist-info}/RECORD +7 -7
- {atlas_init-0.10.0.dist-info → atlas_init-0.10.1.dist-info}/WHEEL +0 -0
- {atlas_init-0.10.0.dist-info → atlas_init-0.10.1.dist-info}/entry_points.txt +0 -0
- {atlas_init-0.10.0.dist-info → atlas_init-0.10.1.dist-info}/licenses/LICENSE +0 -0
atlas_init/__init__.py
CHANGED
atlas_init/tf_ext/tf_ws.py
CHANGED
@@ -164,7 +164,7 @@ _ignored_workspace_dirs = [
|
|
164
164
|
]
|
165
165
|
|
166
166
|
|
167
|
-
class
|
167
|
+
class TFWorkspaceRunConfig(Entity):
|
168
168
|
path: Path
|
169
169
|
rel_path: str
|
170
170
|
resolved_vars: dict[str, Any]
|
@@ -205,7 +205,10 @@ def tf_ws(
|
|
205
205
|
variable_resolvers = variable_resolvers.merge(manual_resolvers)
|
206
206
|
|
207
207
|
def include_path(rel_path: str) -> bool:
|
208
|
-
return all(
|
208
|
+
return all(
|
209
|
+
f"/{ignored_dir}/" not in rel_path and not rel_path.startswith(f"{ignored_dir}/")
|
210
|
+
for ignored_dir in _ignored_workspace_dirs
|
211
|
+
)
|
209
212
|
|
210
213
|
paths = sorted(
|
211
214
|
(path.parent, rel_path)
|
@@ -219,7 +222,7 @@ def tf_ws(
|
|
219
222
|
resolver_vars = variable_resolvers.resolve_vars(path, rel_path)
|
220
223
|
resolved_vars, resolved_env_vars = as_tfvars_env(resolver_vars)
|
221
224
|
run_configs.append(
|
222
|
-
|
225
|
+
TFWorkspaceRunConfig(
|
223
226
|
path=path, rel_path=rel_path, resolved_vars=resolved_vars, resolved_env_vars=resolved_env_vars
|
224
227
|
)
|
225
228
|
)
|
@@ -233,7 +236,7 @@ def tf_ws(
|
|
233
236
|
run_count = len(run_configs)
|
234
237
|
assert run_count > 0, f"No run configs found from {root_path}"
|
235
238
|
|
236
|
-
def run_cmd(run_config:
|
239
|
+
def run_cmd(run_config: TFWorkspaceRunConfig):
|
237
240
|
tf_vars_str = dump(run_config.resolved_vars, "pretty_json")
|
238
241
|
tf_vars_path = run_config.tf_vars_path_json(settings)
|
239
242
|
ensure_parents_write_text(tf_vars_path, tf_vars_str)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: atlas-init
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1
|
4
4
|
Project-URL: Documentation, https://github.com/EspenAlbert/atlas-init#readme
|
5
5
|
Project-URL: Issues, https://github.com/EspenAlbert/atlas-init/issues
|
6
6
|
Project-URL: Source, https://github.com/EspenAlbert/atlas-init
|
@@ -1,4 +1,4 @@
|
|
1
|
-
atlas_init/__init__.py,sha256=
|
1
|
+
atlas_init/__init__.py,sha256=cXVIxMrhKIXWPl-jsmgP51rrSHIJ1VQPvFadAUy4rGQ,214
|
2
2
|
atlas_init/__main__.py,sha256=dY1dWWvwxRZMmnOFla6RSfti-hMeLeKdoXP7SVYqMUc,52
|
3
3
|
atlas_init/atlas_init.yaml,sha256=aCCg6PJgLcqh75v3tdEEG4UPrcJlbmbRaLj0c7PCumE,2373
|
4
4
|
atlas_init/cli.py,sha256=0b4_osi67Oj-hZnrtK70IbSKQDREjwUFv1_30_A03Zg,9447
|
@@ -149,10 +149,10 @@ atlas_init/tf_ext/tf_mod_gen.py,sha256=J3BDPHoTqScZ0CmNiYpE_sJaV17jFkMrfgtgejGzh
|
|
149
149
|
atlas_init/tf_ext/tf_mod_gen_provider.py,sha256=M7jJeH0VR1uN440d2H5-9lnj0s0d9QtaMeYsLwWW3Ak,5866
|
150
150
|
atlas_init/tf_ext/tf_modules.py,sha256=h_E8Po1fmOcIjU_d92dCjKZytBij4N9Mux70yLW7xVQ,16248
|
151
151
|
atlas_init/tf_ext/tf_vars.py,sha256=A__zcIBNvJ5y0l5F5G7KMQsYCuyr3iBZtRzXm4e6DQU,7875
|
152
|
-
atlas_init/tf_ext/tf_ws.py,sha256=
|
152
|
+
atlas_init/tf_ext/tf_ws.py,sha256=vT6rsYSeqAYp2aM9epVmbuZQGQa-U63jd1Z-yz53JSc,10199
|
153
153
|
atlas_init/tf_ext/typer_app.py,sha256=wzC6pwt7W0u2Ce3xcWVYRbFeP8C8pLw1Gy5BPeWQjZo,1110
|
154
|
-
atlas_init-0.10.
|
155
|
-
atlas_init-0.10.
|
156
|
-
atlas_init-0.10.
|
157
|
-
atlas_init-0.10.
|
158
|
-
atlas_init-0.10.
|
154
|
+
atlas_init-0.10.1.dist-info/METADATA,sha256=5k_XvDC2RirDAk1mSWpEk48Z7juHWC4-UjlzSUMuq5E,5902
|
155
|
+
atlas_init-0.10.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
156
|
+
atlas_init-0.10.1.dist-info/entry_points.txt,sha256=l38KdfCjY2v5q8Ves1qkWNvPTPND6Tp2EKX-RL-MN3c,200
|
157
|
+
atlas_init-0.10.1.dist-info/licenses/LICENSE,sha256=aKnucPyXnK1A-aXn4vac71zRpcB5BXjDyl4PDyi_hZg,1069
|
158
|
+
atlas_init-0.10.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|