licos-platform-cli 0.2.14__tar.gz → 0.2.15__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.
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/PKG-INFO +2 -2
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/pyproject.toml +2 -2
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/oauth_commands.py +6 -6
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/tests/test_cli.py +8 -8
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/.gitignore +0 -0
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/__init__.py +0 -0
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/database_commands.py +0 -0
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/help_commands.py +0 -0
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/knowledge_commands.py +0 -0
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/main.py +0 -0
- {licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/storage_commands.py +0 -0
|
@@ -4,11 +4,11 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "licos-platform-cli"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.15"
|
|
8
8
|
description = "LICOS platform CLI"
|
|
9
9
|
requires-python = ">=3.10"
|
|
10
10
|
dependencies = [
|
|
11
|
-
"licos-platform-sdk>=0.3.
|
|
11
|
+
"licos-platform-sdk>=0.3.2",
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[project.scripts]
|
{licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/oauth_commands.py
RENAMED
|
@@ -137,12 +137,12 @@ def _cmd_revoke_grant(args: argparse.Namespace) -> Any:
|
|
|
137
137
|
return oauth.revoke_grant(args.grant_id)
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
def _cmd_configure_project(args: argparse.Namespace) -> dict[str, Any]:
|
|
141
|
-
public_base_url = (
|
|
142
|
-
args.public_base_url
|
|
143
|
-
or os.environ.get("LICOS_PLATFORM_PUBLIC_BASE_URL")
|
|
144
|
-
or os.environ.get("LICOS_OAUTH_PUBLIC_BASE_URL")
|
|
145
|
-
)
|
|
140
|
+
def _cmd_configure_project(args: argparse.Namespace) -> dict[str, Any]:
|
|
141
|
+
public_base_url = (
|
|
142
|
+
args.public_base_url
|
|
143
|
+
or os.environ.get("LICOS_PLATFORM_PUBLIC_BASE_URL")
|
|
144
|
+
or os.environ.get("LICOS_OAUTH_PUBLIC_BASE_URL")
|
|
145
|
+
)
|
|
146
146
|
if not public_base_url:
|
|
147
147
|
raise argparse.ArgumentTypeError(
|
|
148
148
|
"--public-base-url, LICOS_PLATFORM_PUBLIC_BASE_URL, or LICOS_OAUTH_PUBLIC_BASE_URL is required"
|
|
@@ -291,12 +291,12 @@ class PlatformCliTests(unittest.TestCase):
|
|
|
291
291
|
"clientId": "client-3",
|
|
292
292
|
}
|
|
293
293
|
with tempfile.TemporaryDirectory() as tmp:
|
|
294
|
-
env = {
|
|
295
|
-
"LICOS_PROJECT_PATH": tmp,
|
|
296
|
-
"AGENT_PROJECT_ID": "project/1",
|
|
297
|
-
"LICOS_PLATFORM_PUBLIC_BASE_URL": "https://platform.example",
|
|
298
|
-
"LICOS_DEPLOY_PUBLIC_BASE_URL": "https://deploy.example",
|
|
299
|
-
}
|
|
294
|
+
env = {
|
|
295
|
+
"LICOS_PROJECT_PATH": tmp,
|
|
296
|
+
"AGENT_PROJECT_ID": "project/1",
|
|
297
|
+
"LICOS_PLATFORM_PUBLIC_BASE_URL": "https://platform.example",
|
|
298
|
+
"LICOS_DEPLOY_PUBLIC_BASE_URL": "https://deploy.example",
|
|
299
|
+
}
|
|
300
300
|
with mock.patch.dict(os.environ, env, clear=False):
|
|
301
301
|
with mock.patch.object(oauth_commands.oauth, "ensure_project_app", return_value=app) as ensure:
|
|
302
302
|
code, stdout, stderr = run_cli(
|
|
@@ -332,8 +332,8 @@ class PlatformCliTests(unittest.TestCase):
|
|
|
332
332
|
)
|
|
333
333
|
config = json.loads((Path(tmp) / "config" / "licos-oauth.json").read_text(encoding="utf-8"))
|
|
334
334
|
self.assertEqual(config["redirectUriConfigs"], redirects)
|
|
335
|
-
self.assertEqual(config["publicBaseUrl"], "https://platform.example")
|
|
336
|
-
self.assertEqual(json.loads(stdout)["selectionMode"], "auto-apply")
|
|
335
|
+
self.assertEqual(config["publicBaseUrl"], "https://platform.example")
|
|
336
|
+
self.assertEqual(json.loads(stdout)["selectionMode"], "auto-apply")
|
|
337
337
|
|
|
338
338
|
def test_oauth_configure_without_redirect_requires_stable_project_metadata(self) -> None:
|
|
339
339
|
with tempfile.TemporaryDirectory() as tmp:
|
|
File without changes
|
|
File without changes
|
{licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/database_commands.py
RENAMED
|
File without changes
|
{licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/help_commands.py
RENAMED
|
File without changes
|
{licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/knowledge_commands.py
RENAMED
|
File without changes
|
|
File without changes
|
{licos_platform_cli-0.2.14 → licos_platform_cli-0.2.15}/src/licos_platform_cli/storage_commands.py
RENAMED
|
File without changes
|