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.
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/PKG-INFO +2 -2
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/pyproject.toml +1 -1
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/auth.py +6 -2
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/internal/legacy.py +4 -4
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test.cfg +1 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/.gitignore +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/README.md +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/__init__.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/__main__.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/config.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/internal/__init__.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/internal/config.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/jobs.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/py.typed +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/src/diracx/cli/utils.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test.yaml +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test_buggy.cfg +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test_secret.cfg +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/test_cssync.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/test_legacy.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/test_internal.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/test_jobs.py +0 -0
- {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.
|
|
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.
|
|
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
|
|
@@ -12,7 +12,9 @@ from typing import Annotated, Optional
|
|
|
12
12
|
import typer
|
|
13
13
|
|
|
14
14
|
from diracx.client.aio import AsyncDiracClient
|
|
15
|
-
|
|
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(
|
|
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
|
-
"
|
|
289
|
-
|
|
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
|
|
|
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
|
{diracx_cli-0.0.1a45 → diracx_cli-0.0.1a46}/tests/legacy/cs_sync/integration_test_secret.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|