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

torchx/util/types.py CHANGED
@@ -45,6 +45,9 @@ def to_dict(arg: str) -> Dict[str, str]:
45
45
 
46
46
  to_dict("FOO=v1") == {"FOO": "v1"}
47
47
 
48
+ to_dict("FOO=''") == {"FOO": ""}
49
+ to_dict('FOO=""') == {"FOO": ""}
50
+
48
51
  to_dict("FOO=v1,v2") == {"FOO": "v1,v2"]}
49
52
  to_dict("FOO=v1;v2") == {"FOO": "v1;v2"]}
50
53
  to_dict("FOO=v1;v2") == {"FOO": "v1;v2,"]}
@@ -70,6 +73,9 @@ def to_dict(arg: str) -> Dict[str, str]:
70
73
  else:
71
74
  return vk[0:idx].strip(), vk[idx + 1 :].strip()
72
75
 
76
+ def to_val(val: str) -> str:
77
+ return val if val != '""' and val != "''" else ""
78
+
73
79
  arg_map: Dict[str, str] = {}
74
80
 
75
81
  if not arg:
@@ -92,10 +98,10 @@ def to_dict(arg: str) -> Dict[str, str]:
92
98
  # middle elements are value_{n}<delim>key_{n+1}
93
99
  for vk in split_arg[1 : split_arg_len - 1]: # python deals with
94
100
  val, key_next = parse_val_key(vk)
95
- arg_map[key] = val
101
+ arg_map[key] = to_val(val)
96
102
  key = key_next
97
103
  val = split_arg[-1] # last element is always a value
98
- arg_map[key] = val
104
+ arg_map[key] = to_val(val)
99
105
  return arg_map
100
106
 
101
107
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: torchx-nightly
3
- Version: 2024.5.20
3
+ Version: 2024.5.22
4
4
  Summary: TorchX SDK and Components
5
5
  Home-page: https://github.com/pytorch/torchx
6
6
  Author: TorchX Devs
@@ -108,14 +108,14 @@ torchx/util/io.py,sha256=HNpWLcFUX0WTAP3CsdamHz--FR5A4kSdLCPfNqa2UkA,1807
108
108
  torchx/util/modules.py,sha256=LRTuZRH5bbRr0ZaCtCtvKbgwhMoPsTx-GokWbCLGPdk,1131
109
109
  torchx/util/shlex.py,sha256=eXEKu8KC3zIcd8tEy9_s8Ds5oma8BORr-0VGWNpG2dk,463
110
110
  torchx/util/strings.py,sha256=GkLWCmYS89Uv6bWc5hH0XwvHy7oQmprv2U7axC4A2e8,678
111
- torchx/util/types.py,sha256=ynRZWRhmyLboRmz6XcCcu8617YhMh63NPC_6ysysyx8,7379
111
+ torchx/util/types.py,sha256=een55pV-N8aBc3qUBjHRc1llJcX10JVa19pB8dBE8No,7564
112
112
  torchx/workspace/__init__.py,sha256=FqN8AN4VhR1C_SBY10MggQvNZmyanbbuPuE-JCjkyUY,798
113
113
  torchx/workspace/api.py,sha256=1heBmPgB-W5Zf9gwViM7NrqvHpZlVYeMN7jpY8Qkytc,5479
114
114
  torchx/workspace/dir_workspace.py,sha256=npNW_IjUZm_yS5r-8hrRkH46ndDd9a_eApT64m1S1T4,2268
115
115
  torchx/workspace/docker_workspace.py,sha256=PFu2KQNVC-0p2aKJ-W_BKA9ZOmXdCY2ABEkCExp3udQ,10269
116
- torchx_nightly-2024.5.20.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
117
- torchx_nightly-2024.5.20.dist-info/METADATA,sha256=CmuVjuUzSqL2VPeRcqLh03HrFEwrILa2Mo15w1U7UXg,6053
118
- torchx_nightly-2024.5.20.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
119
- torchx_nightly-2024.5.20.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
120
- torchx_nightly-2024.5.20.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
121
- torchx_nightly-2024.5.20.dist-info/RECORD,,
116
+ torchx_nightly-2024.5.22.dist-info/LICENSE,sha256=WVHfXhFC0Ia8LTKt_nJVYobdqTJVg_4J3Crrfm2A8KQ,1721
117
+ torchx_nightly-2024.5.22.dist-info/METADATA,sha256=tEO2moJx7YFtQRJszO39UeVXalSTri72vwp1X_5Z8P4,6053
118
+ torchx_nightly-2024.5.22.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
119
+ torchx_nightly-2024.5.22.dist-info/entry_points.txt,sha256=3JYZFlX9aWzR-Gs_qsx1zq7mlqbFz6Mi9rQUULW8caI,170
120
+ torchx_nightly-2024.5.22.dist-info/top_level.txt,sha256=pxew3bc2gsiViS0zADs0jb6kC5v8o_Yy_85fhHj_J1A,7
121
+ torchx_nightly-2024.5.22.dist-info/RECORD,,