trainwave-cli 0.1.7__tar.gz → 0.1.8__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.7
3
+ Version: 0.1.8
4
4
  Summary:
5
5
  Author: Johan Backman
6
6
  Author-email: johan@trainwave.ai
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "trainwave-cli"
3
- version = "0.1.7"
3
+ version = "0.1.8"
4
4
  description = ""
5
5
  authors = ["Johan Backman <johan@trainwave.ai>"]
6
6
  readme = "README.md"
@@ -2,6 +2,7 @@ import json
2
2
  import os
3
3
  import sys
4
4
  import traceback
5
+ from typing import Optional
5
6
  from dataclasses import asdict
6
7
  from datetime import datetime, timezone
7
8
  from pathlib import Path
@@ -37,11 +38,11 @@ async def launch( # noqa
37
38
  setup_command: Annotated[str, typer.Option()],
38
39
  run_command: Annotated[str, typer.Option()],
39
40
  # Optional params
40
- organization: Annotated[str, typer.Option()] | None = None,
41
+ organization: Annotated[Optional[str], typer.Option()] = None,
41
42
  expires: Annotated[str, typer.Option()] = "",
42
43
  env_vars={}, # dict[str, str] not supported by typer yet
43
44
  exclude_gitignore: Annotated[bool, typer.Option()] = True,
44
- exclude_regex: Annotated[str, typer.Option()] | None = None,
45
+ exclude_regex: Annotated[Optional[str], typer.Option()] = None,
45
46
  # Harware parameters
46
47
  image: Annotated[str, typer.Option()] = "",
47
48
  hdd_size_mb: Annotated[int, typer.Option()] = 20,
@@ -49,7 +50,7 @@ async def launch( # noqa
49
50
  cpus: Annotated[int, typer.Option()] = 0,
50
51
  gpus: Annotated[int, typer.Option()] = 0,
51
52
  gpu_type: Annotated[str, typer.Option()] = "",
52
- compliance_soc2: Annotated[bool, typer.Option()] | None = None,
53
+ compliance_soc2: Annotated[Optional[bool], typer.Option()] = None,
53
54
  ) -> None:
54
55
  api_client = Api(config.api_key, config.endpoint, project)
55
56
  # Interpolate environe variables
@@ -1,7 +1,7 @@
1
1
  import copy
2
2
  import time
3
3
  import webbrowser
4
- from typing import Annotated, Any
4
+ from typing import Annotated, Any, Optional
5
5
 
6
6
  import toml
7
7
  import typer
@@ -60,7 +60,7 @@ async def _run_setup_guide(existing_config: dict[str, Any]) -> dict[str, Any]:
60
60
  @async_command
61
61
  @ensure_api_key
62
62
  async def default(
63
- config: Annotated[str | None, typer.Argument()] = None,
63
+ config: Annotated[Optional[str], typer.Argument()] = None,
64
64
  accept: Annotated[bool, "Accept overwrite of config"] = False,
65
65
  ) -> None:
66
66
  config_path = "trainwave.toml"
File without changes