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.
Files changed (74) hide show
  1. python_chi-1.2.5/ChangeLog +7 -0
  2. {python_chi-1.2.3 → python_chi-1.2.5}/PKG-INFO +1 -1
  3. {python_chi-1.2.3 → python_chi-1.2.5}/chi/container.py +1 -1
  4. {python_chi-1.2.3 → python_chi-1.2.5}/chi/hardware.py +4 -3
  5. {python_chi-1.2.3 → python_chi-1.2.5}/chi/lease.py +4 -4
  6. {python_chi-1.2.3 → python_chi-1.2.5}/chi/server.py +1 -1
  7. {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/PKG-INFO +1 -1
  8. python_chi-1.2.5/python_chi.egg-info/pbr.json +1 -0
  9. python_chi-1.2.5/setup.py +5 -0
  10. python_chi-1.2.3/ChangeLog +0 -7
  11. python_chi-1.2.3/python_chi.egg-info/pbr.json +0 -1
  12. python_chi-1.2.3/setup.py +0 -5
  13. {python_chi-1.2.3 → python_chi-1.2.5}/.github/CODEOWNERS +0 -0
  14. {python_chi-1.2.3 → python_chi-1.2.5}/.github/workflows/linting.yml +0 -0
  15. {python_chi-1.2.3 → python_chi-1.2.5}/.github/workflows/pypi-publish.yml +0 -0
  16. {python_chi-1.2.3 → python_chi-1.2.5}/.github/workflows/test.yml +0 -0
  17. {python_chi-1.2.3 → python_chi-1.2.5}/.mailmap +0 -0
  18. {python_chi-1.2.3 → python_chi-1.2.5}/.readthedocs.yml +0 -0
  19. {python_chi-1.2.3 → python_chi-1.2.5}/AUTHORS +0 -0
  20. {python_chi-1.2.3 → python_chi-1.2.5}/DEVELOPMENT.rst +0 -0
  21. {python_chi-1.2.3 → python_chi-1.2.5}/LICENSE +0 -0
  22. {python_chi-1.2.3 → python_chi-1.2.5}/Makefile +0 -0
  23. {python_chi-1.2.3 → python_chi-1.2.5}/README.rst +0 -0
  24. {python_chi-1.2.3 → python_chi-1.2.5}/chi/__init__.py +0 -0
  25. {python_chi-1.2.3 → python_chi-1.2.5}/chi/clients.py +0 -0
  26. {python_chi-1.2.3 → python_chi-1.2.5}/chi/context.py +0 -0
  27. {python_chi-1.2.3 → python_chi-1.2.5}/chi/exception.py +0 -0
  28. {python_chi-1.2.3 → python_chi-1.2.5}/chi/image.py +0 -0
  29. {python_chi-1.2.3 → python_chi-1.2.5}/chi/jupyterhub.py +0 -0
  30. {python_chi-1.2.3 → python_chi-1.2.5}/chi/keypair.py +0 -0
  31. {python_chi-1.2.3 → python_chi-1.2.5}/chi/magic.py +0 -0
  32. {python_chi-1.2.3 → python_chi-1.2.5}/chi/network.py +0 -0
  33. {python_chi-1.2.3 → python_chi-1.2.5}/chi/share.py +0 -0
  34. {python_chi-1.2.3 → python_chi-1.2.5}/chi/ssh.py +0 -0
  35. {python_chi-1.2.3 → python_chi-1.2.5}/chi/storage.py +0 -0
  36. {python_chi-1.2.3 → python_chi-1.2.5}/chi/util.py +0 -0
  37. {python_chi-1.2.3 → python_chi-1.2.5}/docs/__init__.py +0 -0
  38. {python_chi-1.2.3 → python_chi-1.2.5}/docs/_templates/page.html +0 -0
  39. {python_chi-1.2.3 → python_chi-1.2.5}/docs/conf.py +0 -0
  40. {python_chi-1.2.3 → python_chi-1.2.5}/docs/examples.rst +0 -0
  41. {python_chi-1.2.3 → python_chi-1.2.5}/docs/generate_notebook.py +0 -0
  42. {python_chi-1.2.3 → python_chi-1.2.5}/docs/index.rst +0 -0
  43. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/clients.rst +0 -0
  44. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/container.rst +0 -0
  45. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/context.rst +0 -0
  46. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/exception.rst +0 -0
  47. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/hardware.rst +0 -0
  48. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/image.rst +0 -0
  49. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/lease.rst +0 -0
  50. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/magic.rst +0 -0
  51. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/network.rst +0 -0
  52. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/server.rst +0 -0
  53. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/share.rst +0 -0
  54. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/ssh.rst +0 -0
  55. {python_chi-1.2.3 → python_chi-1.2.5}/docs/modules/storage.rst +0 -0
  56. {python_chi-1.2.3 → python_chi-1.2.5}/docs/requirements.txt +0 -0
  57. {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/SOURCES.txt +0 -0
  58. {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/dependency_links.txt +0 -0
  59. {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/not-zip-safe +0 -0
  60. {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/requires.txt +0 -0
  61. {python_chi-1.2.3 → python_chi-1.2.5}/python_chi.egg-info/top_level.txt +0 -0
  62. {python_chi-1.2.3 → python_chi-1.2.5}/requirements.txt +0 -0
  63. {python_chi-1.2.3 → python_chi-1.2.5}/ruff.toml +0 -0
  64. {python_chi-1.2.3 → python_chi-1.2.5}/setup.cfg +0 -0
  65. {python_chi-1.2.3 → python_chi-1.2.5}/test-requirements.txt +0 -0
  66. {python_chi-1.2.3 → python_chi-1.2.5}/tests/__init__.py +0 -0
  67. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_container.py +0 -0
  68. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_context.py +0 -0
  69. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_lease.py +0 -0
  70. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_network.py +0 -0
  71. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_server.py +0 -0
  72. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_share.py +0 -0
  73. {python_chi-1.2.3 → python_chi-1.2.5}/tests/test_ssh.py +0 -0
  74. {python_chi-1.2.3 → python_chi-1.2.5}/tox.ini +0 -0
@@ -0,0 +1,7 @@
1
+ CHANGES
2
+ =======
3
+
4
+ v1.2.5
5
+ ------
6
+
7
+ * Add container exposed\_ports default arg
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-chi
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: Helper library for Chameleon Infrastructure (CHI) testbed
5
5
  Home-page: https://www.chameleoncloud.org
6
6
  Author: University of Chicago
@@ -70,7 +70,7 @@ class Container:
70
70
  self,
71
71
  name: str,
72
72
  image_ref: str,
73
- exposed_ports: List[str],
73
+ exposed_ports: List[str] = None,
74
74
  reservation_id: str = None,
75
75
  start: bool = True,
76
76
  start_timeout: int = 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", 0) / 1e9, 2),
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": (n.gpu or {}).get("gpu_model") or "",
400
- "GPU Count": (n.gpu or {}).get("gpu_count") or "",
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 and stitch_provider != "fabric":
1072
+ if stitch_provider == "fabric":
1073
1073
  extra_constraints.append(["==", "$stitch_provider", stitch_provider])
1074
- else:
1074
+ elif stitch_provider is not None:
1075
1075
  raise CHIValueError("stitch_provider must be 'fabric' or None")
1076
- if usage_type and usage_type != "storage":
1076
+ if usage_type == "storage":
1077
1077
  extra_constraints.append(["==", "$usage_type", usage_type])
1078
- else:
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(
@@ -191,7 +191,7 @@ class Server:
191
191
  image=self.image_name,
192
192
  flavor=self.flavor_name,
193
193
  key=self.keypair.name,
194
- net_ids=[chi_network.get_network_id(DEFAULT_NETWORK)],
194
+ net_ids=[chi_network.get_network_id(self.network_name)],
195
195
  **kwargs,
196
196
  )
197
197
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-chi
3
- Version: 1.2.3
3
+ Version: 1.2.5
4
4
  Summary: Helper library for Chameleon Infrastructure (CHI) testbed
5
5
  Home-page: https://www.chameleoncloud.org
6
6
  Author: University of Chicago
@@ -0,0 +1 @@
1
+ {"git_version": "9e8725f", "is_release": false}
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env python
2
+
3
+ from setuptools import setup
4
+
5
+ setup(setup_requires=["pbr"], pbr=True, version="v1.2.5")
@@ -1,7 +0,0 @@
1
- CHANGES
2
- =======
3
-
4
- v1.2.3
5
- ------
6
-
7
- * Fix formatting and tests
@@ -1 +0,0 @@
1
- {"git_version": "3ff8f3d", "is_release": false}
python_chi-1.2.3/setup.py DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env python
2
-
3
- from setuptools import setup
4
-
5
- setup(setup_requires=["pbr"], pbr=True, version="v1.2.3")
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