xoscar 0.7.13__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl → 0.7.14__cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.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/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
- resolved = self._resolve_install_plan(to_resolve, pinned)
209
- logger.debug(f"Resolved install list: {resolved}")
210
- if not resolved:
211
- # no packages to install
212
- return []
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xoscar
3
- Version: 0.7.13
3
+ Version: 0.7.14
4
4
  Summary: Python actor framework for heterogeneous computing.
5
5
  Home-page: http://github.com/xorbitsai/xoscar
6
6
  Author: Qin Xuye
@@ -80,8 +80,8 @@ xoscar/serialization/scipy.py,sha256=yOEi0NB8cqQ6e2UnCZ1w006RsB7T725tIL-DM_hNcsU
80
80
  xoscar/virtualenv/__init__.py,sha256=65t9_X1DvbanNjFy366SiiWZrRTpa9SXWMXPmqayE-4,1117
81
81
  xoscar/virtualenv/core.py,sha256=MV1lbkixGl45REHS04uaPuqPKxyVbBmVnB_umuR_eWw,2957
82
82
  xoscar/virtualenv/utils.py,sha256=mL_uATHhj82xec0-0IZ6N8yI-laPAB4t8G3alPUGtPA,2439
83
- xoscar/virtualenv/uv.py,sha256=OjaHgIR2pOySaLbsnFELOYkX4Y5QZLSm2yqyLApPbdo,10668
84
- xoscar-0.7.13.dist-info/METADATA,sha256=PZcHK2IMvzLoUnkOdtZIsdN1rBpex1nGjiYPx9Qn5-8,9135
85
- xoscar-0.7.13.dist-info/WHEEL,sha256=SqeGUsDS88JbDMFEmg5kozXLxkaYruG6PG7xezonLcQ,154
86
- xoscar-0.7.13.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
87
- xoscar-0.7.13.dist-info/RECORD,,
83
+ xoscar/virtualenv/uv.py,sha256=8fsZtUfMfSI1FZL7eLMfF-znG7fGVwshdERiHqSvems,11119
84
+ xoscar-0.7.14.dist-info/METADATA,sha256=bTouvWumRWQDRY1ApYh9XVZ7HthHSUa8ctv-___IW6U,9135
85
+ xoscar-0.7.14.dist-info/WHEEL,sha256=SqeGUsDS88JbDMFEmg5kozXLxkaYruG6PG7xezonLcQ,154
86
+ xoscar-0.7.14.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
87
+ xoscar-0.7.14.dist-info/RECORD,,