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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trainwave-cli
3
- Version: 0.1.10
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)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "trainwave-cli"
3
- version = "0.1.10"
3
+ version = "0.1.11"
4
4
  description = ""
5
5
  authors = ["Johan Backman <johan@trainwave.ai>"]
6
6
  readme = "README.md"
@@ -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