diracx-cli 0.0.1a29__py3-none-any.whl → 0.0.1a31__py3-none-any.whl
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/auth.py +1 -1
- diracx/cli/internal/legacy.py +12 -2
- diracx/cli/jobs.py +1 -2
- {diracx_cli-0.0.1a29.dist-info → diracx_cli-0.0.1a31.dist-info}/METADATA +2 -2
- {diracx_cli-0.0.1a29.dist-info → diracx_cli-0.0.1a31.dist-info}/RECORD +8 -8
- {diracx_cli-0.0.1a29.dist-info → diracx_cli-0.0.1a31.dist-info}/WHEEL +1 -1
- {diracx_cli-0.0.1a29.dist-info → diracx_cli-0.0.1a31.dist-info}/entry_points.txt +0 -0
- {diracx_cli-0.0.1a29.dist-info → diracx_cli-0.0.1a31.dist-info}/top_level.txt +0 -0
diracx/cli/auth.py
CHANGED
|
@@ -88,7 +88,7 @@ async def login(
|
|
|
88
88
|
)
|
|
89
89
|
while expires > datetime.now(tz=timezone.utc):
|
|
90
90
|
print(".", end="", flush=True)
|
|
91
|
-
response = await api.auth.
|
|
91
|
+
response = await api.auth.get_oidc_token(device_code=data.device_code, client_id=api.client_id) # type: ignore
|
|
92
92
|
if isinstance(response, DeviceFlowErrorResponse):
|
|
93
93
|
if response.error == "authorization_pending":
|
|
94
94
|
# TODO: Setting more than 5 seconds results in an error
|
diracx/cli/internal/legacy.py
CHANGED
|
@@ -21,6 +21,7 @@ from typer import Option
|
|
|
21
21
|
|
|
22
22
|
from diracx.core.config import Config
|
|
23
23
|
from diracx.core.config.schema import Field, SupportInfo
|
|
24
|
+
from diracx.core.extensions import select_from_extension
|
|
24
25
|
|
|
25
26
|
from ..utils import AsyncTyper
|
|
26
27
|
|
|
@@ -76,8 +77,10 @@ def cs_sync(old_file: Path, new_file: Path):
|
|
|
76
77
|
)
|
|
77
78
|
|
|
78
79
|
_apply_fixes(raw)
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
config_class: Config = select_from_extension(group="diracx", name="config")[
|
|
81
|
+
0
|
|
82
|
+
].load()
|
|
83
|
+
config = config_class.model_validate(raw)
|
|
81
84
|
new_file.write_text(
|
|
82
85
|
yaml.safe_dump(config.model_dump(exclude_unset=True, mode="json"))
|
|
83
86
|
)
|
|
@@ -361,6 +364,13 @@ def generate_helm_values(
|
|
|
361
364
|
diracx_settings["DIRACX_SANDBOX_STORE_BUCKET_NAME"] = (
|
|
362
365
|
f"{diracx_hostname.split('.')[0]}-sandboxes"
|
|
363
366
|
)
|
|
367
|
+
try:
|
|
368
|
+
diracx_settings["DIRACX_SANDBOX_STORE_SE_NAME"] = cfg["Systems"][
|
|
369
|
+
"WorkloadManagement"
|
|
370
|
+
]["Services"]["SandboxStore"]["LocalSE"]
|
|
371
|
+
except KeyError:
|
|
372
|
+
pass
|
|
373
|
+
|
|
364
374
|
diracx_settings["DIRACX_SANDBOX_STORE_S3_CLIENT_KWARGS"] = json.dumps(
|
|
365
375
|
{
|
|
366
376
|
"endpoint_url": "FILL ME",
|
diracx/cli/jobs.py
CHANGED
|
@@ -152,8 +152,7 @@ def display_rich(data, content_range: ContentRange) -> None:
|
|
|
152
152
|
@app.async_command()
|
|
153
153
|
async def submit(jdl: list[FileText]):
|
|
154
154
|
async with DiracClient() as api:
|
|
155
|
-
|
|
156
|
-
jobs = await api.jobs.submit_bulk_jdl_jobs([x.read() for x in jdl])
|
|
155
|
+
jobs = await api.jobs.submit_jdl_jobs([x.read() for x in jdl])
|
|
157
156
|
print(
|
|
158
157
|
f"Inserted {len(jobs)} jobs with ids: {','.join(map(str, (job.job_id for job in jobs)))}"
|
|
159
158
|
)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
diracx/cli/__init__.py,sha256=HB9Umd1DXskg8lrRY0ZnSaOBVYPD5Pl4PYRWts-ZR0E,808
|
|
2
2
|
diracx/cli/__main__.py,sha256=yGjYWjRcrrp5mJ0xD0v3rc7VIA9bzDib5D7LPAdH4OI,92
|
|
3
|
-
diracx/cli/auth.py,sha256=
|
|
3
|
+
diracx/cli/auth.py,sha256=B-M2oF6wDvQSwtVl6eLsdFF9mdii28xDJ6b9z3u4GIA,4760
|
|
4
4
|
diracx/cli/config.py,sha256=-QPTTuH83epgFviO_af_DJBVjRakIrc6MbxkHg1KLlI,853
|
|
5
|
-
diracx/cli/jobs.py,sha256=
|
|
5
|
+
diracx/cli/jobs.py,sha256=o-AH5MUtPTpccHtFtmWkn36yMGo6FIKQrua5nAJgHvQ,4714
|
|
6
6
|
diracx/cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
diracx/cli/utils.py,sha256=NwhMMHwveKOdW2aoSqpnLnfOKhPnjmPPLpX69naPAzc,855
|
|
8
8
|
diracx/cli/internal/__init__.py,sha256=KZrzVcKu3YhNev2XF2KA2nttAa9ONU3CVUgatVMonJ4,143
|
|
9
9
|
diracx/cli/internal/config.py,sha256=xPT7lnJ3QPqJgaNJuMoUpV6CIIxZY_d7HKFb4uINb_8,6552
|
|
10
|
-
diracx/cli/internal/legacy.py,sha256=
|
|
11
|
-
diracx_cli-0.0.
|
|
12
|
-
diracx_cli-0.0.
|
|
13
|
-
diracx_cli-0.0.
|
|
14
|
-
diracx_cli-0.0.
|
|
15
|
-
diracx_cli-0.0.
|
|
10
|
+
diracx/cli/internal/legacy.py,sha256=Wzfdgjbt9xxUK6MkCrEGNXdMOJzkvUGJh2MnD2j_2QE,13547
|
|
11
|
+
diracx_cli-0.0.1a31.dist-info/METADATA,sha256=VNcP0ehpPXSryGdbIINePb2GaBpmZakjo9h496H6ftE,803
|
|
12
|
+
diracx_cli-0.0.1a31.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
13
|
+
diracx_cli-0.0.1a31.dist-info/entry_points.txt,sha256=b1909GHVOkFUiHVglNlpwia4Ug-7Ncrg-8D5xtYVAlw,169
|
|
14
|
+
diracx_cli-0.0.1a31.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
|
|
15
|
+
diracx_cli-0.0.1a31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|