diracx-cli 0.0.1a45__tar.gz → 0.0.1a47__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.1a47}/PKG-INFO +2 -2
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/pyproject.toml +1 -1
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/auth.py +6 -2
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/internal/legacy.py +6 -7
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/legacy/cs_sync/integration_test.cfg +1 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/.gitignore +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/README.md +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/__init__.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/__main__.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/config.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/internal/__init__.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/internal/config.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/jobs.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/py.typed +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/src/diracx/cli/utils.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/legacy/cs_sync/integration_test.yaml +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/legacy/cs_sync/integration_test_buggy.cfg +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/legacy/cs_sync/integration_test_secret.cfg +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/legacy/cs_sync/test_cssync.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/legacy/test_legacy.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/test_internal.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/tests/test_jobs.py +0 -0
- {diracx_cli-0.0.1a45 → diracx_cli-0.0.1a47}/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.1a47
|
|
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)
|
|
@@ -210,7 +211,6 @@ def generate_helm_values(
|
|
|
210
211
|
},
|
|
211
212
|
"rabbitmq": {"enabled": False},
|
|
212
213
|
"mysql": {"enabled": False},
|
|
213
|
-
"global": {"images": {"services": "FILL ME"}, "storageClassName": "FILL ME"},
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
cfg = diraccfg.CFG().loadFromBuffer(public_cfg.read_text())
|
|
@@ -264,8 +264,7 @@ def generate_helm_values(
|
|
|
264
264
|
|
|
265
265
|
from diracx.core.extensions import select_from_extension
|
|
266
266
|
|
|
267
|
-
for entry_point in select_from_extension(group="diracx.
|
|
268
|
-
|
|
267
|
+
for entry_point in select_from_extension(group="diracx.dbs.sql"):
|
|
269
268
|
db_name = entry_point.name
|
|
270
269
|
db_config = all_db_configs.get(db_name, {})
|
|
271
270
|
|
|
@@ -284,9 +283,9 @@ def generate_helm_values(
|
|
|
284
283
|
if "Password" in db_config:
|
|
285
284
|
sql_dbs["dbs"][db_name]["password"] = db_config.get("Password")
|
|
286
285
|
if "Host" in db_config or "Port" in db_config:
|
|
287
|
-
sql_dbs["dbs"][db_name][
|
|
288
|
-
"
|
|
289
|
-
|
|
286
|
+
sql_dbs["dbs"][db_name]["host"] = (
|
|
287
|
+
f"{db_config.get('Host', default_db_host)}:{db_config.get('Port', default_db_port)}"
|
|
288
|
+
)
|
|
290
289
|
if not sql_dbs["dbs"][db_name]:
|
|
291
290
|
sql_dbs["dbs"][db_name] = None
|
|
292
291
|
|
|
@@ -311,7 +310,7 @@ def generate_helm_values(
|
|
|
311
310
|
},
|
|
312
311
|
}
|
|
313
312
|
|
|
314
|
-
for entry_point in select_from_extension(group="diracx.
|
|
313
|
+
for entry_point in select_from_extension(group="diracx.dbs.os"):
|
|
315
314
|
db_name = entry_point.name
|
|
316
315
|
db_config = all_db_configs.get(db_name, {})
|
|
317
316
|
|
|
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.1a47}/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
|