xenfra 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.3
2
2
  Name: xenfra
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: A 'Zen Mode' infrastructure engine for Python developers.
5
5
  Author: xenfra-cloud
6
6
  Author-email: xenfra-cloud <xenfracloud@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xenfra"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "A 'Zen Mode' infrastructure engine for Python developers."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -2,6 +2,7 @@ from rich.console import Console
2
2
  from rich.table import Table
3
3
  from rich.prompt import Prompt, Confirm, IntPrompt
4
4
  from rich.panel import Panel
5
+ import importlib.metadata
5
6
 
6
7
  # Import Custom Logic
7
8
  from xenfra.engine import InfraEngine
@@ -22,10 +23,16 @@ IMAGES = {
22
23
  }
23
24
 
24
25
  def print_header(email):
26
+ try:
27
+ # Get the version of the installed 'xenfra' package
28
+ version = importlib.metadata.version("xenfra")
29
+ except importlib.metadata.PackageNotFoundError:
30
+ version = "dev" # Fallback for local development
31
+
25
32
  console.clear()
26
33
  grid = Table.grid(expand=True)
27
34
  grid.add_column(justify="center", ratio=1)
28
- grid.add_row("[bold cyan]🧘 XENFRA[/bold cyan] [dim]v0.1.0[/dim]")
35
+ grid.add_row(f"[bold cyan]🧘 XENFRA[/bold cyan] [dim]v{version}[/dim]")
29
36
  grid.add_row("[italic]Infrastructure in Zen Mode[/italic]")
30
37
  console.print(Panel(
31
38
  grid,
@@ -247,7 +247,7 @@ class InfraEngine:
247
247
  if is_dockerized:
248
248
  log("🚀 Starting application with Docker Compose...")
249
249
  c = self._get_connection(droplet.ip_address)
250
- c.run("cd /root/app && docker-compose up -d", hide=True)
250
+ c.run("cd /root/app && docker compose up -d", hide=True)
251
251
 
252
252
  log("🎉 Deployment successful!")
253
253
  return {"status": "success", "ip": droplet.ip_address, "name": name}
File without changes
File without changes
File without changes
File without changes
File without changes