verulla-cli 0.0.5__tar.gz → 0.0.6__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.
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/CHANGELOG.md +4 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/PKG-INFO +2 -2
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/pyproject.toml +2 -2
- verulla_cli-0.0.6/tests/test_cli_import.py +6 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_main.py +37 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/__init__.py +1 -1
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/main.py +15 -0
- verulla_cli-0.0.5/tests/test_cli_import.py +0 -4
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/.gitignore +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_admin_cmd.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_apps_client.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_auth.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_buildkit.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_buildkit_real.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_deploy_client.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_dev_check.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_emulate.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_owner_commands.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_packaging.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_secrets_client.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/tests/test_sketch_status.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/apps_client.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/auth.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/buildkit.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/config.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/deploy_client.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/emulate.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/packaging.py +0 -0
- {verulla_cli-0.0.5 → verulla_cli-0.0.6}/verulla_cli/secrets_client.py +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# verulla-cli changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
- Support the `port:` manifest field for Dockerfile apps, including the Dockerfile `EXPOSE` consistency check.
|
|
6
|
+
|
|
3
7
|
## 0.0.5
|
|
4
8
|
|
|
5
9
|
- Make `verulla deploy --wait` wait for the deployed app's runtime health to become ready, not just build/apply completion. It exits nonzero on a crash and reports the available crash cause plus a hint to check the configured (or default 8080) listening port; the wait timeout remains bounded.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: verulla-cli
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.6
|
|
4
4
|
Requires-Python: >=3.12
|
|
5
5
|
Requires-Dist: docker>=7
|
|
6
6
|
Requires-Dist: httpx>=0.27
|
|
7
7
|
Requires-Dist: typer>=0.12
|
|
8
|
-
Requires-Dist: verulla-manifest==0.0.
|
|
8
|
+
Requires-Dist: verulla-manifest==0.0.3
|
|
@@ -10,6 +10,13 @@ from verulla_cli.main import _secret_scope, app
|
|
|
10
10
|
runner = CliRunner()
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
def test_cli_reports_installed_version() -> None:
|
|
14
|
+
result = runner.invoke(app, ["--version"])
|
|
15
|
+
|
|
16
|
+
assert result.exit_code == 0
|
|
17
|
+
assert result.output.strip() == "verulla 0.0.6"
|
|
18
|
+
|
|
19
|
+
|
|
13
20
|
def test_auth_and_customer_commands_are_registered() -> None:
|
|
14
21
|
result = runner.invoke(app, ["--help"])
|
|
15
22
|
assert result.exit_code == 0
|
|
@@ -317,6 +324,36 @@ def test_deploy_valid_manifest_not_logged_in(tmp_path, monkeypatch) -> None:
|
|
|
317
324
|
assert "not authenticated" in result.output
|
|
318
325
|
|
|
319
326
|
|
|
327
|
+
def test_deploy_accepts_dockerfile_port_before_login(tmp_path, monkeypatch) -> None:
|
|
328
|
+
monkeypatch.setattr("verulla_cli.main.get_token", _not_logged_in)
|
|
329
|
+
(tmp_path / "Dockerfile").write_text("FROM example\nEXPOSE 8000\n")
|
|
330
|
+
(tmp_path / "verulla.yml").write_text(
|
|
331
|
+
"version: 1\napp: demo-app\nfunctions:\n"
|
|
332
|
+
" - name: web\n runtime: dockerfile\n port: 8000\n"
|
|
333
|
+
"routes:\n - path: /\n function: web\n"
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
result = runner.invoke(app, ["deploy", str(tmp_path), "--api-url", "http://127.0.0.1:1"])
|
|
337
|
+
|
|
338
|
+
assert result.exit_code == 1
|
|
339
|
+
assert "not authenticated" in result.output
|
|
340
|
+
assert "port" not in result.output.lower()
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def test_deploy_rejects_unknown_manifest_key_before_login(tmp_path, monkeypatch) -> None:
|
|
344
|
+
def _boom():
|
|
345
|
+
raise AssertionError("get_token must not be called for invalid manifests")
|
|
346
|
+
|
|
347
|
+
monkeypatch.setattr("verulla_cli.main.get_token", _boom)
|
|
348
|
+
(tmp_path / "verulla.yml").write_text(VALID_MANIFEST + "unexpected: true\n")
|
|
349
|
+
|
|
350
|
+
result = runner.invoke(app, ["deploy", str(tmp_path), "--api-url", "http://127.0.0.1:1"])
|
|
351
|
+
|
|
352
|
+
assert result.exit_code == 1
|
|
353
|
+
assert "Error" in result.output
|
|
354
|
+
assert "unexpected" in result.output
|
|
355
|
+
|
|
356
|
+
|
|
320
357
|
def test_deploy_success_prints_deployment(tmp_path, monkeypatch) -> None:
|
|
321
358
|
monkeypatch.setattr(
|
|
322
359
|
"verulla_cli.main.get_token", lambda: "tok"
|
|
@@ -11,6 +11,7 @@ import uuid
|
|
|
11
11
|
|
|
12
12
|
import typer
|
|
13
13
|
|
|
14
|
+
from verulla_cli import __version__
|
|
14
15
|
from verulla_cli.config import DEFAULT_API_URL
|
|
15
16
|
from verulla_cli.auth import CREDENTIALS_PATH, DeviceLoginError, get_token, run_device_login, save_credentials
|
|
16
17
|
from verulla_manifest import load_manifest, translate
|
|
@@ -56,7 +57,21 @@ app = typer.Typer(
|
|
|
56
57
|
name="verulla",
|
|
57
58
|
help=f"Verulla: AI-agent-friendly deployment & hosting CLI. API URL default: {DEFAULT_API_URL} (override with --api-url or VERULLA_API_URL).",
|
|
58
59
|
no_args_is_help=True,
|
|
60
|
+
invoke_without_command=True,
|
|
59
61
|
)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@app.callback()
|
|
65
|
+
def _main(
|
|
66
|
+
version: bool = typer.Option(
|
|
67
|
+
False, "--version", is_eager=True, help="Show the installed Verulla CLI version and exit."
|
|
68
|
+
),
|
|
69
|
+
) -> None:
|
|
70
|
+
if version:
|
|
71
|
+
typer.echo(f"verulla {__version__}")
|
|
72
|
+
raise typer.Exit()
|
|
73
|
+
|
|
74
|
+
|
|
60
75
|
sketch_app = typer.Typer(name="sketch", help="Inspect Sketch trial lifecycle status.", no_args_is_help=True)
|
|
61
76
|
app.add_typer(sketch_app, name="sketch")
|
|
62
77
|
owner_app = typer.Typer(name="owner", help="Manage the verified owner hand-off.", no_args_is_help=True)
|
|
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
|
|
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
|