mainsequence 2.0.4b0__py3-none-any.whl → 2.0.4rc0__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.
- mainsequence/cli/cli.py +13 -3
- mainsequence/dashboards/streamlit/assets/image_1_base64.txt +1 -0
- mainsequence/dashboards/streamlit/assets/image_2_base64.txt +1 -0
- mainsequence/dashboards/streamlit/assets/image_3_base64.txt +1 -0
- mainsequence/dashboards/streamlit/assets/image_4_base64.txt +1 -0
- mainsequence/dashboards/streamlit/assets/image_5_base64.txt +1 -0
- mainsequence/dashboards/streamlit/core/theme.py +2 -2
- {mainsequence-2.0.4b0.dist-info → mainsequence-2.0.4rc0.dist-info}/METADATA +1 -1
- {mainsequence-2.0.4b0.dist-info → mainsequence-2.0.4rc0.dist-info}/RECORD +13 -8
- {mainsequence-2.0.4b0.dist-info → mainsequence-2.0.4rc0.dist-info}/WHEEL +0 -0
- {mainsequence-2.0.4b0.dist-info → mainsequence-2.0.4rc0.dist-info}/entry_points.txt +0 -0
- {mainsequence-2.0.4b0.dist-info → mainsequence-2.0.4rc0.dist-info}/licenses/LICENSE +0 -0
- {mainsequence-2.0.4b0.dist-info → mainsequence-2.0.4rc0.dist-info}/top_level.txt +0 -0
mainsequence/cli/cli.py
CHANGED
@@ -366,12 +366,22 @@ def project_set_up_locally(
|
|
366
366
|
if env_text and not env_text.endswith("\n"): env_text += "\n"
|
367
367
|
env_text += f"MAINSEQUENCE_TOKEN={project_token}\n"
|
368
368
|
|
369
|
-
#
|
370
|
-
|
371
|
-
|
369
|
+
# --- ensure TDAG_ENDPOINT points at the current backend URL ---
|
370
|
+
backend = cfg.backend_url()
|
371
|
+
lines = env_text.splitlines()
|
372
|
+
if any(line.startswith("TDAG_ENDPOINT=") for line in lines):
|
373
|
+
env_text = "\n".join(
|
374
|
+
(f"TDAG_ENDPOINT={backend}" if line.startswith("TDAG_ENDPOINT=") else line)
|
375
|
+
for line in lines
|
376
|
+
)
|
377
|
+
else:
|
378
|
+
if env_text and not env_text.endswith("\n"): env_text += "\n"
|
379
|
+
env_text += f"TDAG_ENDPOINT={backend}\n"
|
372
380
|
|
373
381
|
|
374
382
|
|
383
|
+
# write final .env with both vars present
|
384
|
+
(target_dir / ".env").write_text(env_text, encoding="utf-8")
|
375
385
|
cfg.set_link(project_id, str(target_dir))
|
376
386
|
|
377
387
|
typer.secho(f"Local folder: {target_dir}", fg=typer.colors.GREEN)
|