diracx-cli 0.0.1a29__py3-none-any.whl → 0.0.1a32__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 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.token(device_code=data.device_code, client_id=api.client_id) # type: ignore
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
@@ -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
- config = Config.model_validate(raw)
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
- # api.valid(enforce_https=False)
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,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: diracx-cli
3
- Version: 0.0.1a29
3
+ Version: 0.0.1a32
4
4
  Summary: TODO
5
5
  License: GPL-3.0-only
6
6
  Classifier: Intended Audience :: Science/Research
@@ -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=e3jl1iGplZrPBXvFM1j1D59BdoyE34wZsSEkDDjUg2Q,4751
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=qxV7y_WVtYzO6h55lgbWgk_ZC9eN1i1hIFHTpwxC9mE,4760
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=sbiWdvIWTLDE4gnuZQJ00xCf1th2rYffPtMsl9X--lU,13181
11
- diracx_cli-0.0.1a29.dist-info/METADATA,sha256=bz3kol5pJx2L4OfdGP3JnpTJc664z0NOK9L67nfz2pM,803
12
- diracx_cli-0.0.1a29.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
13
- diracx_cli-0.0.1a29.dist-info/entry_points.txt,sha256=b1909GHVOkFUiHVglNlpwia4Ug-7Ncrg-8D5xtYVAlw,169
14
- diracx_cli-0.0.1a29.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
15
- diracx_cli-0.0.1a29.dist-info/RECORD,,
10
+ diracx/cli/internal/legacy.py,sha256=Wzfdgjbt9xxUK6MkCrEGNXdMOJzkvUGJh2MnD2j_2QE,13547
11
+ diracx_cli-0.0.1a32.dist-info/METADATA,sha256=eHhg3iqfRhU0dAe6l3aiSQqtSXVacn9_hJ2mDUbrRkw,803
12
+ diracx_cli-0.0.1a32.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
13
+ diracx_cli-0.0.1a32.dist-info/entry_points.txt,sha256=b1909GHVOkFUiHVglNlpwia4Ug-7Ncrg-8D5xtYVAlw,169
14
+ diracx_cli-0.0.1a32.dist-info/top_level.txt,sha256=vJx10tdRlBX3rF2Psgk5jlwVGZNcL3m_7iQWwgPXt-U,7
15
+ diracx_cli-0.0.1a32.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.2)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5