xoscar 0.7.13__cp310-cp310-macosx_10_9_x86_64.whl → 0.7.14__cp310-cp310-macosx_10_9_x86_64.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 xoscar might be problematic. Click here for more details.
- xoscar/_utils.cpython-310-darwin.so +0 -0
- xoscar/backends/message.cpython-310-darwin.so +0 -0
- xoscar/context.cpython-310-darwin.so +0 -0
- xoscar/core.cpython-310-darwin.so +0 -0
- xoscar/serialization/core.cpython-310-darwin.so +0 -0
- xoscar/virtualenv/uv.py +22 -10
- {xoscar-0.7.13.dist-info → xoscar-0.7.14.dist-info}/METADATA +1 -1
- {xoscar-0.7.13.dist-info → xoscar-0.7.14.dist-info}/RECORD +10 -10
- {xoscar-0.7.13.dist-info → xoscar-0.7.14.dist-info}/WHEEL +0 -0
- {xoscar-0.7.13.dist-info → xoscar-0.7.14.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
xoscar/virtualenv/uv.py
CHANGED
|
@@ -150,16 +150,25 @@ class UVVirtualEnvManager(VirtualEnvManager):
|
|
|
150
150
|
@staticmethod
|
|
151
151
|
def _split_specs(
|
|
152
152
|
specs: list[str], installed: dict[str, str]
|
|
153
|
-
) -> tuple[list[str], dict[str, str]]:
|
|
153
|
+
) -> tuple[list[str], list[str], dict[str, str]]:
|
|
154
154
|
"""
|
|
155
155
|
Split the given requirement specs into:
|
|
156
|
+
- keep: specs that need to be kept, e.g. git+github://xxx
|
|
156
157
|
- to_resolve: specs that need to be passed to the resolver (unsatisfied ones)
|
|
157
158
|
- pinned: already satisfied specs, used for constraint to lock their versions
|
|
158
159
|
"""
|
|
160
|
+
keep: list[str] = []
|
|
159
161
|
to_resolve: list[str] = []
|
|
160
162
|
pinned: dict[str, str] = {}
|
|
161
163
|
|
|
162
164
|
for spec_str in specs:
|
|
165
|
+
# skip git+xxx
|
|
166
|
+
if spec_str.startswith(
|
|
167
|
+
("git+", "http://", "https://", "svn+", "hg+", "bzr+")
|
|
168
|
+
):
|
|
169
|
+
keep.append(spec_str)
|
|
170
|
+
continue
|
|
171
|
+
|
|
163
172
|
req = Requirement(spec_str)
|
|
164
173
|
name = req.name.lower()
|
|
165
174
|
cur_ver = installed.get(name)
|
|
@@ -185,7 +194,7 @@ class UVVirtualEnvManager(VirtualEnvManager):
|
|
|
185
194
|
# Parsing error, be conservative and resolve it
|
|
186
195
|
to_resolve.append(spec_str)
|
|
187
196
|
|
|
188
|
-
return to_resolve, pinned
|
|
197
|
+
return keep, to_resolve, pinned
|
|
189
198
|
|
|
190
199
|
def _filter_packages_not_installed(self, packages: list[str]) -> list[str]:
|
|
191
200
|
"""
|
|
@@ -200,18 +209,21 @@ class UVVirtualEnvManager(VirtualEnvManager):
|
|
|
200
209
|
}
|
|
201
210
|
|
|
202
211
|
# exclude those packages that satisfied in system site packages
|
|
203
|
-
to_resolve, pinned = self._split_specs(packages, installed)
|
|
204
|
-
if not to_resolve:
|
|
212
|
+
keep, to_resolve, pinned = self._split_specs(packages, installed)
|
|
213
|
+
if not keep and not to_resolve:
|
|
205
214
|
logger.debug("All requirement specifiers satisfied by system packages.")
|
|
206
215
|
return []
|
|
207
216
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
217
|
+
if to_resolve:
|
|
218
|
+
resolved = self._resolve_install_plan(to_resolve, pinned)
|
|
219
|
+
logger.debug(f"Resolved install list: {resolved}")
|
|
220
|
+
if not keep and not resolved:
|
|
221
|
+
# no packages to install
|
|
222
|
+
return []
|
|
223
|
+
else:
|
|
224
|
+
resolved = []
|
|
213
225
|
|
|
214
|
-
final =
|
|
226
|
+
final = keep.copy()
|
|
215
227
|
for item in resolved:
|
|
216
228
|
name, version = item.split("==")
|
|
217
229
|
key = name.lower()
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
xoscar-0.7.
|
|
2
|
-
xoscar-0.7.
|
|
3
|
-
xoscar-0.7.
|
|
4
|
-
xoscar-0.7.
|
|
1
|
+
xoscar-0.7.14.dist-info/RECORD,,
|
|
2
|
+
xoscar-0.7.14.dist-info/WHEEL,sha256=G2_osVyqlO3rQICDNwzuQ-zsxS79EB0lsq9jZ8r7Rkc,138
|
|
3
|
+
xoscar-0.7.14.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
|
|
4
|
+
xoscar-0.7.14.dist-info/METADATA,sha256=bTouvWumRWQDRY1ApYh9XVZ7HthHSUa8ctv-___IW6U,9135
|
|
5
5
|
xoscar/_utils.pyx,sha256=frgVQ5xGp92jBKc4PsPmjOlVsXlKeHWtTOAMfHmBaII,7380
|
|
6
6
|
xoscar/backend.py,sha256=is436OPkZfSpQXaoqTRVta5eoye_pp45RFgCstAk2hU,1850
|
|
7
7
|
xoscar/core.pxd,sha256=I_C2ka7XryyGnnAVXUVm8xfS1gtIrCs6X-9rswgOcUU,1317
|
|
@@ -10,7 +10,7 @@ xoscar/context.pxd,sha256=qKa0OyDPZtVymftSh447m-RzFZgmz8rGqQBa7qlauvc,725
|
|
|
10
10
|
xoscar/batch.py,sha256=DpArS0L3WYJ_HVPG-6hSYEwoAFY1mY2-mlC4Jp5M_Dw,7872
|
|
11
11
|
xoscar/nvutils.py,sha256=qmW4mKLU0WB2yCs198ccQOgLL02zB7Fsa-AotO3NOmg,20412
|
|
12
12
|
xoscar/constants.py,sha256=QHHSREw6uWBBjQDCFqlNfTvBZgniJPGy42KSIsR8Fqw,787
|
|
13
|
-
xoscar/_utils.cpython-310-darwin.so,sha256=
|
|
13
|
+
xoscar/_utils.cpython-310-darwin.so,sha256=l_gQ96-oT60djuthhgWL9gYb4lkv5sNjhEJEsLv9qmw,162344
|
|
14
14
|
xoscar/__init__.py,sha256=sy7Wtn2EuQZI0I4Az_MfsBVZm4G0DRj46qRyExgmnJk,1622
|
|
15
15
|
xoscar/api.py,sha256=zxNqOjGiTIKuAip9WJ0LOoM7yevD6P5rb-sLynpZ2Zo,14648
|
|
16
16
|
xoscar/utils.py,sha256=MaKiW4Vphwhh8c0yoqN8G8hbJr1zXgpf49EdvmGc1ZU,16500
|
|
@@ -20,8 +20,8 @@ xoscar/context.pyx,sha256=8CdgPnWcE9eOp3N600WgDQ03MCi8P73eUOGcfV7Zksg,10942
|
|
|
20
20
|
xoscar/errors.py,sha256=wBlQOKsXf0Fc4skN39tDie0YZT-VIAuLNRgoDl2pZcA,1241
|
|
21
21
|
xoscar/core.pyx,sha256=phN-yYV0A0QI8WFi2jCu0nc4CnShTepfDi0V7ZrLYPY,22092
|
|
22
22
|
xoscar/driver.py,sha256=498fowtJr6b3FE8FIOA_Tc1Vwx88nfZw7p0FxrML0h4,1372
|
|
23
|
-
xoscar/context.cpython-310-darwin.so,sha256=
|
|
24
|
-
xoscar/core.cpython-310-darwin.so,sha256=
|
|
23
|
+
xoscar/context.cpython-310-darwin.so,sha256=UyT-fpLpz3y1gbjJHBeYQjvxodf8tDAw4ZFfCUKR16Y,200160
|
|
24
|
+
xoscar/core.cpython-310-darwin.so,sha256=ePtAilznlC7Aj2hpeeVMACcjxWUyAfKmCHxcrd31Oh4,413432
|
|
25
25
|
xoscar/profiling.py,sha256=BC5OF0HzSaXv8V7w-y-B8r5gV5DgxHFoTEIF6jCMioQ,8015
|
|
26
26
|
xoscar/_utils.pxd,sha256=5KYAL3jfPdejsHnrGGT2s--ZUX5SXznQWpHVSno429k,1157
|
|
27
27
|
xoscar/metrics/__init__.py,sha256=9Badi7rxYikGm2dQiNCrj9GgMRBxwuR3JaEKcFZmfak,705
|
|
@@ -47,11 +47,11 @@ xoscar/serialization/cuda.py,sha256=iFUEnN4SiquBIhyieyOrfw3TnKnW-tU_vYgqOxO_DrA,
|
|
|
47
47
|
xoscar/serialization/scipy.py,sha256=yOEi0NB8cqQ6e2UnCZ1w006RsB7T725tIL-DM_hNcsU,2482
|
|
48
48
|
xoscar/serialization/aio.py,sha256=5DySPgDxU43ec7_5Ct44-Oqt7YNSJBfuf8VdQgQlChA,4731
|
|
49
49
|
xoscar/serialization/core.pyx,sha256=bjR-zXGm9qersk7kYPzpjpMIxDl_Auur4BCubRfKmfA,29626
|
|
50
|
-
xoscar/serialization/core.cpython-310-darwin.so,sha256=
|
|
50
|
+
xoscar/serialization/core.cpython-310-darwin.so,sha256=wZRkXV0dnX6ChVZkB0iI6BbbULe-Q8zE8Jnm-S1fpKc,391832
|
|
51
51
|
xoscar/serialization/mlx.py,sha256=tRu_7o6RizdRhbr88EasHrZtShimAsLy3pIEO-by29o,2118
|
|
52
52
|
xoscar/backends/config.py,sha256=4tZMiXAMMS8qQ4SX_LjONLtSQVfZTx3m-IK3EqbkYdk,5375
|
|
53
53
|
xoscar/backends/allocate_strategy.py,sha256=tC1Nbq2tJohahUwd-zoRYHEDX65wyuX8tmeY45uWj_w,4845
|
|
54
|
-
xoscar/backends/message.cpython-310-darwin.so,sha256
|
|
54
|
+
xoscar/backends/message.cpython-310-darwin.so,sha256=-6u1tQLT6yxyPTVyTY__T5qEEvtEa-bm5owInEJeDIM,355504
|
|
55
55
|
xoscar/backends/__init__.py,sha256=VHEBQcUWM5bj027W8EUf9PiJUAP7JoMrRw3Tsvy5ySw,643
|
|
56
56
|
xoscar/backends/core.py,sha256=EH-fHlV9x3bnruEHaUtGYO7osKLfLJ4AQHtuzA_mr2g,10857
|
|
57
57
|
xoscar/backends/context.py,sha256=XfDPG2eDhAhE6hWBEkEsHTnyyOYN9R3houlMjAL7BFw,16329
|
|
@@ -84,4 +84,4 @@ xoscar/aio/base.py,sha256=9j0f1piwfE5R5GIvV212vSD03ixdaeSzSSsO2kxJZVE,2249
|
|
|
84
84
|
xoscar/virtualenv/__init__.py,sha256=65t9_X1DvbanNjFy366SiiWZrRTpa9SXWMXPmqayE-4,1117
|
|
85
85
|
xoscar/virtualenv/core.py,sha256=MV1lbkixGl45REHS04uaPuqPKxyVbBmVnB_umuR_eWw,2957
|
|
86
86
|
xoscar/virtualenv/utils.py,sha256=mL_uATHhj82xec0-0IZ6N8yI-laPAB4t8G3alPUGtPA,2439
|
|
87
|
-
xoscar/virtualenv/uv.py,sha256=
|
|
87
|
+
xoscar/virtualenv/uv.py,sha256=8fsZtUfMfSI1FZL7eLMfF-znG7fGVwshdERiHqSvems,11119
|
|
File without changes
|
|
File without changes
|