python-chi 1.2.3__tar.gz → 1.2.5__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.
- python_chi-1.2.5/ChangeLog +7 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/PKG-INFO +1 -1
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/container.py +1 -1
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/hardware.py +4 -3
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/lease.py +4 -4
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/server.py +1 -1
- {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/PKG-INFO +1 -1
- python_chi-1.2.5/python_chi.egg-info/pbr.json +1 -0
- python_chi-1.2.5/setup.py +5 -0
- python_chi-1.2.3/ChangeLog +0 -7
- python_chi-1.2.3/python_chi.egg-info/pbr.json +0 -1
- python_chi-1.2.3/setup.py +0 -5
- {python_chi-1.2.3 → python_chi-1.2.5}/.github/CODEOWNERS +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/.github/workflows/linting.yml +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/.github/workflows/pypi-publish.yml +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/.github/workflows/test.yml +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/.mailmap +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/.readthedocs.yml +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/AUTHORS +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/DEVELOPMENT.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/LICENSE +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/Makefile +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/README.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/__init__.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/clients.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/context.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/exception.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/image.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/jupyterhub.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/keypair.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/magic.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/network.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/share.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/ssh.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/storage.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/chi/util.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/__init__.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/_templates/page.html +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/conf.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/examples.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/generate_notebook.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/index.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/clients.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/container.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/context.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/exception.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/hardware.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/image.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/lease.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/magic.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/network.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/server.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/share.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/ssh.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/storage.rst +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/docs/requirements.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/SOURCES.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/dependency_links.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/not-zip-safe +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/requires.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/top_level.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/requirements.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/ruff.toml +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/setup.cfg +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/test-requirements.txt +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/__init__.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_container.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_context.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_lease.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_network.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_server.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_share.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_ssh.py +0 -0
- {python_chi-1.2.3 → python_chi-1.2.5}/tox.ini +0 -0
|
@@ -390,14 +390,15 @@ def show_nodes(nodes: Optional[List[Node]] = None) -> None:
|
|
|
390
390
|
|
|
391
391
|
rows = []
|
|
392
392
|
for n in nodes:
|
|
393
|
+
fixed_gpu = {} if not n.gpu or isinstance(n.gpu, list) else n.gpu
|
|
393
394
|
rows.append(
|
|
394
395
|
{
|
|
395
396
|
"Node Name": n.name,
|
|
396
397
|
"Type": n.type,
|
|
397
|
-
"Clock Speed (GHz)": round(n.cpu.get("clock_speed"
|
|
398
|
+
"Clock Speed (GHz)": round((n.cpu.get("clock_speed") or 0) / 1e9, 2),
|
|
398
399
|
"RAM": n.main_memory.get("humanized_ram_size", "N/A"),
|
|
399
|
-
"GPU Model":
|
|
400
|
-
"GPU Count":
|
|
400
|
+
"GPU Model": fixed_gpu.get("gpu_model") or "",
|
|
401
|
+
"GPU Count": fixed_gpu.get("gpu_count") or "",
|
|
401
402
|
"Storage Size": n.storage_devices[0].get("humanized_size", "N/A")
|
|
402
403
|
if n.storage_devices
|
|
403
404
|
else "N/A",
|
|
@@ -1069,13 +1069,13 @@ def add_network_reservation(
|
|
|
1069
1069
|
|
|
1070
1070
|
if physical_network:
|
|
1071
1071
|
extra_constraints.append(["==", "$physical_network", physical_network])
|
|
1072
|
-
if stitch_provider
|
|
1072
|
+
if stitch_provider == "fabric":
|
|
1073
1073
|
extra_constraints.append(["==", "$stitch_provider", stitch_provider])
|
|
1074
|
-
|
|
1074
|
+
elif stitch_provider is not None:
|
|
1075
1075
|
raise CHIValueError("stitch_provider must be 'fabric' or None")
|
|
1076
|
-
if usage_type
|
|
1076
|
+
if usage_type == "storage":
|
|
1077
1077
|
extra_constraints.append(["==", "$usage_type", usage_type])
|
|
1078
|
-
|
|
1078
|
+
elif usage_type is not None:
|
|
1079
1079
|
raise CHIValueError("usage_type must be 'storage' or None")
|
|
1080
1080
|
|
|
1081
1081
|
resource_properties = _format_resource_properties(
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "9e8725f", "is_release": false}
|
python_chi-1.2.3/ChangeLog
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "3ff8f3d", "is_release": false}
|
python_chi-1.2.3/setup.py
DELETED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|