torchx-nightly 2025.2.19__py3-none-any.whl → 2025.2.21__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.

Potentially problematic release.


This version of torchx-nightly might be problematic. Click here for more details.

@@ -83,6 +83,7 @@ def sh(
83
83
  env: Optional[Dict[str, str]] = None,
84
84
  max_retries: int = 0,
85
85
  mounts: Optional[List[str]] = None,
86
+ entrypoint: Optional[str] = None,
86
87
  ) -> specs.AppDef:
87
88
  """
88
89
  Runs the provided command via sh. Currently sh does not support
@@ -100,6 +101,7 @@ def sh(
100
101
  max_retries: the number of scheduler retries allowed
101
102
  mounts: mounts to mount into the worker environment/container (ex. type=<bind/volume>,src=/host,dst=/job[,readonly]).
102
103
  See scheduler documentation for more info.
104
+ entrypoint: the entrypoint to use for the command (defaults to sh)
103
105
  """
104
106
 
105
107
  escaped_args = " ".join(shlex.quote(arg) for arg in args)
@@ -113,7 +115,7 @@ def sh(
113
115
  specs.Role(
114
116
  name="sh",
115
117
  image=image,
116
- entrypoint="sh",
118
+ entrypoint=entrypoint or "sh",
117
119
  args=["-c", escaped_args],
118
120
  num_replicas=num_replicas,
119
121
  resource=specs.resource(cpu=cpu, gpu=gpu, memMB=memMB, h=h),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2025.2.19
3
+ Version: 2025.2.21
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -30,7 +30,7 @@ torchx/components/metrics.py,sha256=1gbp8BfzZWGa7PD1db5vRADlONzmae4qSBUUdCWayr0,
30
30
  torchx/components/serve.py,sha256=uxIC5gU2ecg0EJIPX_oEPzNNOXRAre4j2eXusrgwGAI,2156
31
31
  torchx/components/structured_arg.py,sha256=etjZ1XRttrolvtr1bFuTi7bVsmvBAgqO0q-TeM3Etxk,9569
32
32
  torchx/components/train.py,sha256=vtrQXRcD7bIcbb3lSeyD9BBlIe1mv1WNW6rnLK9R0Mw,1259
33
- torchx/components/utils.py,sha256=fwqAO4lVbh1zyKSjjcE5X_kkpUVBQ0uRp_-ItZ3UyQQ,9040
33
+ torchx/components/utils.py,sha256=22GijtXcbgk-DiLpcETGgpvNCqWH6K_HtS-O-NnHgGE,9167
34
34
  torchx/components/integration_tests/__init__.py,sha256=Md3cCHD7Ano9kV15PqGbicgUO-RMdh4aVy1yKiDt_xE,208
35
35
  torchx/components/integration_tests/component_provider.py,sha256=cFNGqmclcZTJlOW_YGf5XEuGeWloTmcJEAh02Aob_PQ,3995
36
36
  torchx/components/integration_tests/integ_tests.py,sha256=O8jd8Jq5O0mns7xzIFsHexBDHkIIAIfELQkWCzNPzRw,5165
@@ -115,9 +115,9 @@ torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,
115
115
  torchx/workspace/api.py,sha256=PtDkGTC5lX03pRoYpuMz2KCmM1ZOycRP1UknqvNb97Y,6341
116
116
  torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
117
117
  torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
118
- torchx_nightly-2025.2.19.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
- torchx_nightly-2025.2.19.dist-info/METADATA,sha256=ZjADHyZ5LaH9B0KnglfajaOUpt5Aj77LyJgh_j9rouk,6169
120
- torchx_nightly-2025.2.19.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
- torchx_nightly-2025.2.19.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
- torchx_nightly-2025.2.19.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
- torchx_nightly-2025.2.19.dist-info/RECORD,,
118
+ torchx_nightly-2025.2.21.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
119
+ torchx_nightly-2025.2.21.dist-info/METADATA,sha256=aMqyM7YhE6Cm3bbf2lgBO2W-piXAqjei8c50kOyk7zc,6169
120
+ torchx_nightly-2025.2.21.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
121
+ torchx_nightly-2025.2.21.dist-info/entry_points.txt,sha256=T328AMXeKI3JZnnxfkEew2ZcMN1oQDtkXjMz7lkV-P4,169
122
+ torchx_nightly-2025.2.21.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
123
+ torchx_nightly-2025.2.21.dist-info/RECORD,,