katalon-cli 0.1.0__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.
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/PKG-INFO +16 -2
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/README.md +15 -1
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/pyproject.toml +1 -1
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/pyproject.toml.orig +1 -1
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/release.py +2 -2
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/main.py +1 -1
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/__init__.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/__init__.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/backup.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/checks.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/compose_gen.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/docker.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/paths.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/core/state.py +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/py.typed +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/templates/Caddyfile.j2 +0 -0
- {katalon_cli-0.1.0 → katalon_cli-0.1.2}/src/katalon_cli/templates/compose.yaml.j2 +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: katalon-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Installer & Updater CLI für Katalon Production-Instanzen
|
|
5
5
|
Author: Karl Krägelin
|
|
6
6
|
Author-email: Karl Krägelin <karlkraegelin@gmail.com>
|
|
@@ -14,7 +14,7 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
|
|
15
15
|
# katalon-cli
|
|
16
16
|
|
|
17
|
-
Installer & Updater für [Katalon](https://github.com/
|
|
17
|
+
Installer & Updater für [Katalon Collections](https://github.com/katalon-collections/katalon) Production-Instanzen.
|
|
18
18
|
Verwaltet eine Instanz unter einem Zielverzeichnis (z.B. `/opt/katalon/`) — pullt gepinnte
|
|
19
19
|
Release-Images, generiert `compose.yaml`, macht Backups vor jedem Update, kann rollbacken.
|
|
20
20
|
|
|
@@ -40,6 +40,20 @@ katalon logs [service]
|
|
|
40
40
|
Alle Befehle: `--dir PATH` (default `/opt/katalon`). `install`/`update` fragen interaktiv
|
|
41
41
|
(Auswahl über `rich.prompt`), `update`/`rollback` haben `--yes` zum Überspringen der Rückfrage.
|
|
42
42
|
|
|
43
|
+
`/opt/katalon` gehört root — `katalon install` scheitert dort ohne Vorbereitung mit
|
|
44
|
+
"Permission denied". `sudo katalon install` funktioniert i.d.R. nicht (sudo hat eigenes
|
|
45
|
+
PATH, findet das per `uv tool` installierte `katalon` nicht). Zwei Optionen:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# a) anderes Zielverzeichnis, kein root nötig
|
|
49
|
+
katalon install --dir ~/katalon
|
|
50
|
+
|
|
51
|
+
# b) bei /opt/katalon bleiben: Verzeichnis vorab anlegen und dem User geben
|
|
52
|
+
sudo mkdir -p /opt/katalon
|
|
53
|
+
sudo chown $USER:$USER /opt/katalon
|
|
54
|
+
katalon install --dir /opt/katalon
|
|
55
|
+
```
|
|
56
|
+
|
|
43
57
|
## Entwicklung
|
|
44
58
|
|
|
45
59
|
```bash
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# katalon-cli
|
|
2
2
|
|
|
3
|
-
Installer & Updater für [Katalon](https://github.com/
|
|
3
|
+
Installer & Updater für [Katalon Collections](https://github.com/katalon-collections/katalon) Production-Instanzen.
|
|
4
4
|
Verwaltet eine Instanz unter einem Zielverzeichnis (z.B. `/opt/katalon/`) — pullt gepinnte
|
|
5
5
|
Release-Images, generiert `compose.yaml`, macht Backups vor jedem Update, kann rollbacken.
|
|
6
6
|
|
|
@@ -26,6 +26,20 @@ katalon logs [service]
|
|
|
26
26
|
Alle Befehle: `--dir PATH` (default `/opt/katalon`). `install`/`update` fragen interaktiv
|
|
27
27
|
(Auswahl über `rich.prompt`), `update`/`rollback` haben `--yes` zum Überspringen der Rückfrage.
|
|
28
28
|
|
|
29
|
+
`/opt/katalon` gehört root — `katalon install` scheitert dort ohne Vorbereitung mit
|
|
30
|
+
"Permission denied". `sudo katalon install` funktioniert i.d.R. nicht (sudo hat eigenes
|
|
31
|
+
PATH, findet das per `uv tool` installierte `katalon` nicht). Zwei Optionen:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
# a) anderes Zielverzeichnis, kein root nötig
|
|
35
|
+
katalon install --dir ~/katalon
|
|
36
|
+
|
|
37
|
+
# b) bei /opt/katalon bleiben: Verzeichnis vorab anlegen und dem User geben
|
|
38
|
+
sudo mkdir -p /opt/katalon
|
|
39
|
+
sudo chown $USER:$USER /opt/katalon
|
|
40
|
+
katalon install --dir /opt/katalon
|
|
41
|
+
```
|
|
42
|
+
|
|
29
43
|
## Entwicklung
|
|
30
44
|
|
|
31
45
|
```bash
|
|
@@ -9,7 +9,7 @@ from pathlib import Path
|
|
|
9
9
|
import httpx
|
|
10
10
|
from pydantic import BaseModel
|
|
11
11
|
|
|
12
|
-
GITHUB_REPO = "
|
|
12
|
+
GITHUB_REPO = "katalon-collections/katalon"
|
|
13
13
|
CACHE_TTL_SECONDS = 3600
|
|
14
14
|
CACHE_PATH = Path.home() / ".cache" / "katalon-cli" / "releases.json"
|
|
15
15
|
|
|
@@ -45,7 +45,7 @@ def _fetch_release_asset(tag: str | None) -> dict:
|
|
|
45
45
|
raise ValueError(
|
|
46
46
|
f"Release {data.get('tag_name', tag)} hat kein katalon-release.json Asset."
|
|
47
47
|
)
|
|
48
|
-
with httpx.Client(timeout=15) as client:
|
|
48
|
+
with httpx.Client(timeout=15, follow_redirects=True) as client:
|
|
49
49
|
asset_resp = client.get(asset["browser_download_url"])
|
|
50
50
|
asset_resp.raise_for_status()
|
|
51
51
|
return asset_resp.json()
|
|
@@ -20,7 +20,7 @@ from .core.compose_gen import write_compose
|
|
|
20
20
|
from .core.paths import default_instance_dir
|
|
21
21
|
from .core.state import InstallationState, instance_dir_or_raise
|
|
22
22
|
|
|
23
|
-
app = typer.Typer(add_completion=False, help="Installer & Updater für Katalon.")
|
|
23
|
+
app = typer.Typer(add_completion=False, help="Installer & Updater für Katalon Collections.")
|
|
24
24
|
console = Console()
|
|
25
25
|
|
|
26
26
|
DEFAULT_DIR = default_instance_dir()
|
|
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
|