trainwave-cli 0.1.10__tar.gz → 0.1.11__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.
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/PKG-INFO +2 -1
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/pyproject.toml +1 -1
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/cli/setup.py +8 -1
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/README.md +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/__init__.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/api.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/cli/auth.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/cli/jobs.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/cli/offers.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/config/config.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/format_utils.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/io.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/main.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/utils.py +0 -0
- {trainwave_cli-0.1.10 → trainwave_cli-0.1.11}/trainwave_cli/xceptions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: trainwave-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.11
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Johan Backman
|
|
6
6
|
Author-email: johan@trainwave.ai
|
|
@@ -9,6 +9,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
13
|
Requires-Dist: aiofiles (>=24.1.0,<25.0.0)
|
|
13
14
|
Requires-Dist: aiohttp (>=3.10,<4.0)
|
|
14
15
|
Requires-Dist: beaupy (>=3.9.2,<4.0.0)
|
|
@@ -20,7 +20,6 @@ app = typer.Typer()
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
async def _run_setup_guide(existing_config: dict[str, Any]) -> dict[str, Any]:
|
|
23
|
-
typer.echo("Running setup\n")
|
|
24
23
|
api_client = Api(config.api_key, config.endpoint)
|
|
25
24
|
|
|
26
25
|
_existing_config = copy.deepcopy(existing_config)
|
|
@@ -29,6 +28,14 @@ async def _run_setup_guide(existing_config: dict[str, Any]) -> dict[str, Any]:
|
|
|
29
28
|
_existing_config["env_vars"] = [{"key": k, "value": v} for k, v in vars.items()]
|
|
30
29
|
|
|
31
30
|
url, session_token = await api_client.create_cli_config_session(_existing_config)
|
|
31
|
+
|
|
32
|
+
# If we know which org to use then make sure to config the FE as well
|
|
33
|
+
if _existing_config.get("organization"):
|
|
34
|
+
url = f"{url}?use_org={_existing_config['organization']}"
|
|
35
|
+
|
|
36
|
+
typer.echo("Opening the configuration guide in the browser...\n")
|
|
37
|
+
typer.echo(f"URL: {url}\n")
|
|
38
|
+
|
|
32
39
|
webbrowser.open_new_tab(url)
|
|
33
40
|
|
|
34
41
|
end_polling_at = time.time() + 60 * CONFIG_SESSION_POLLING_TIME
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|