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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: licos-platform-cli
3
- Version: 0.2.14
3
+ Version: 0.2.15
4
4
  Summary: LICOS platform CLI
5
5
  Requires-Python: >=3.10
6
- Requires-Dist: licos-platform-sdk>=0.3.0
6
+ Requires-Dist: licos-platform-sdk>=0.3.2
@@ -4,11 +4,11 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "licos-platform-cli"
7
- version = "0.2.14"
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.0",
11
+ "licos-platform-sdk>=0.3.2",
12
12
  ]
13
13
 
14
14
  [project.scripts]
@@ -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: