diracx-cli 0.0.1a45__tar.gz → 0.0.1a46__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.
Files changed (23) hide show
  1. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/PKG-INFO +2 -2
  2. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/pyproject.toml +1 -1
  3. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/auth.py +6 -2
  4. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/internal/legacy.py +4 -4
  5. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test.cfg +1 -0
  6. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/.gitignore +0 -0
  7. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/README.md +0 -0
  8. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/__init__.py +0 -0
  9. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/__main__.py +0 -0
  10. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/config.py +0 -0
  11. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/internal/__init__.py +0 -0
  12. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/internal/config.py +0 -0
  13. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/jobs.py +0 -0
  14. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/py.typed +0 -0
  15. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/utils.py +0 -0
  16. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test.yaml +0 -0
  17. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test_buggy.cfg +0 -0
  18. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test_secret.cfg +0 -0
  19. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/test_cssync.py +0 -0
  20. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/test_legacy.py +0 -0
  21. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/test_internal.py +0 -0
  22. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/test_jobs.py +0 -0
  23. {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/test_login.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: diracx-cli
3
- Version: 0.0.1a45
3
+ Version: 0.0.1a46
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
@@ -17,7 +17,7 @@ Requires-Dist: gitpython
17
17
  Requires-Dist: pydantic>=2.10
18
18
  Requires-Dist: pyyaml
19
19
  Requires-Dist: rich
20
- Requires-Dist: typer>=0.12.4
20
+ Requires-Dist: typer>=0.15.4
21
21
  Provides-Extra: testing
22
22
  Requires-Dist: diracx-testing; extra == 'testing'
23
23
  Provides-Extra: types
@@ -20,7 +20,7 @@ dependencies = [
20
20
  "gitpython",
21
21
  "pydantic>=2.10",
22
22
  "rich",
23
- "typer>=0.12.4",
23
+ "typer>=0.15.4",
24
24
  "pyyaml",
25
25
  ]
26
26
  dynamic = ["version"]
@@ -12,7 +12,9 @@ from typing import Annotated, Optional
12
12
  import typer
13
13
 
14
14
  from diracx.client.aio import AsyncDiracClient
15
- from diracx.client.models import DeviceFlowErrorResponse
15
+
16
+ # See https://github.com/DIRACGrid/diracx/issues/578
17
+ from diracx.client.models import DeviceFlowErrorResponse # type: ignore [attr-defined]
16
18
  from diracx.core.preferences import get_diracx_preferences
17
19
  from diracx.core.utils import read_credentials, write_credentials
18
20
 
@@ -88,7 +90,9 @@ async def login(
88
90
  )
89
91
  while expires > datetime.now(tz=timezone.utc):
90
92
  print(".", end="", flush=True)
91
- response = await api.auth.get_oidc_token(device_code=data.device_code, client_id=api.client_id) # type: ignore
93
+ response = await api.auth.get_oidc_token(
94
+ device_code=data.device_code, client_id=api.client_id
95
+ ) # type: ignore
92
96
  if isinstance(response, DeviceFlowErrorResponse):
93
97
  if response.error == "authorization_pending":
94
98
  # TODO: Setting more than 5 seconds results in an error
@@ -95,6 +95,7 @@ def _apply_fixes(raw):
95
95
  raw["DIRAC"].pop("Extensions", None)
96
96
  raw["DIRAC"].pop("Framework", None)
97
97
  raw["DIRAC"].pop("Security", None)
98
+ raw["DIRAC"].pop("PreferredURLPatterns", None)
98
99
 
99
100
  # This is VOMS specific and no longer required
100
101
  raw["DIRAC"].pop("ConnConf", None)
@@ -265,7 +266,6 @@ def generate_helm_values(
265
266
  from diracx.core.extensions import select_from_extension
266
267
 
267
268
  for entry_point in select_from_extension(group="diracx.db.sql"):
268
-
269
269
  db_name = entry_point.name
270
270
  db_config = all_db_configs.get(db_name, {})
271
271
 
@@ -284,9 +284,9 @@ def generate_helm_values(
284
284
  if "Password" in db_config:
285
285
  sql_dbs["dbs"][db_name]["password"] = db_config.get("Password")
286
286
  if "Host" in db_config or "Port" in db_config:
287
- sql_dbs["dbs"][db_name][
288
- "host"
289
- ] = f"{db_config.get('Host', default_db_host)}:{db_config.get('Port', default_db_port)}"
287
+ sql_dbs["dbs"][db_name]["host"] = (
288
+ f"{db_config.get('Host', default_db_host)}:{db_config.get('Port', default_db_port)}"
289
+ )
290
290
  if not sql_dbs["dbs"][db_name]:
291
291
  sql_dbs["dbs"][db_name] = None
292
292
 
@@ -1,6 +1,7 @@
1
1
  DIRAC
2
2
  {
3
3
  VirtualOrganization = vo
4
+ PreferredURLPatterns = .*\.main\.invalid/.*
4
5
  Configuration
5
6
  {
6
7
  Name = Production
File without changes
File without changes