runledger-cli 0.1.1__tar.gz → 0.1.2__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.4
2
2
  Name: runledger-cli
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Zero‑instrumentation experiment registry CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
@@ -86,11 +86,15 @@ def wait_for_backend(timeout=60):
86
86
  return False
87
87
 
88
88
  def start_backend():
89
- if not os.path.exists(COMPOSE_FILE):
90
- console.print("[red]docker-compose.yml not found. Are you in the project root?[/red]")
89
+ compose_file = COMPOSE_FILE
90
+ if not os.path.exists(compose_file):
91
+ console.print("[red]Cannot find docker-compose.yml[/red]")
91
92
  sys.exit(1)
92
93
  console.print("Starting RunLedger backend...")
93
- subprocess.run(f"docker compose -f {COMPOSE_FILE} up -d", shell=True, check=True)
94
+ subprocess.run(
95
+ ["docker", "compose", "-f", compose_file, "-p", "runledger", "up", "-d"],
96
+ shell=True, check=True
97
+ )
94
98
  if wait_for_backend():
95
99
  console.print("[green]RunLedger backend is running.[/green]")
96
100
  else:
@@ -98,8 +102,12 @@ def start_backend():
98
102
  sys.exit(1)
99
103
 
100
104
  def stop_backend():
101
- if os.path.exists(COMPOSE_FILE):
102
- subprocess.run(f"docker compose -f {COMPOSE_FILE} down", shell=True, check=True)
105
+ compose_file = COMPOSE_FILE
106
+ if os.path.exists(compose_file):
107
+ subprocess.run(
108
+ ["docker", "compose", "-f", compose_file, "-p", "runledger", "down"],
109
+ shell=True, check=True
110
+ )
103
111
  console.print("RunLedger backend stopped.")
104
112
  else:
105
113
  console.print("[red]Cannot find docker-compose.yml[/red]")
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "runledger-cli"
7
- version = "0.1.1"
7
+ version = "0.1.2"
8
8
  description = "Zero‑instrumentation experiment registry CLI"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: runledger-cli
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Zero‑instrumentation experiment registry CLI
5
5
  Requires-Python: >=3.10
6
6
  Description-Content-Type: text/markdown
File without changes
File without changes