xoscar 0.7.12__cp39-cp39-win_amd64.whl → 0.7.13__cp39-cp39-win_amd64.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.cp39-win_amd64.pyd +0 -0
- xoscar/backends/message.cp39-win_amd64.pyd +0 -0
- xoscar/collective/uv.dll +0 -0
- xoscar/collective/xoscar_pygloo.cp39-win_amd64.pyd +0 -0
- xoscar/context.cp39-win_amd64.pyd +0 -0
- xoscar/core.cp39-win_amd64.pyd +0 -0
- xoscar/serialization/core.cp39-win_amd64.pyd +0 -0
- xoscar/virtualenv/core.py +7 -1
- xoscar/virtualenv/uv.py +36 -1
- {xoscar-0.7.12.dist-info → xoscar-0.7.13.dist-info}/METADATA +1 -1
- {xoscar-0.7.12.dist-info → xoscar-0.7.13.dist-info}/RECORD +13 -13
- {xoscar-0.7.12.dist-info → xoscar-0.7.13.dist-info}/WHEEL +0 -0
- {xoscar-0.7.12.dist-info → xoscar-0.7.13.dist-info}/top_level.txt +0 -0
xoscar/_utils.cp39-win_amd64.pyd
CHANGED
|
Binary file
|
|
Binary file
|
xoscar/collective/uv.dll
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
xoscar/core.cp39-win_amd64.pyd
CHANGED
|
Binary file
|
|
Binary file
|
xoscar/virtualenv/core.py
CHANGED
|
@@ -29,7 +29,13 @@ class VirtualEnvManager(ABC):
|
|
|
29
29
|
self.env_path = env_path.resolve()
|
|
30
30
|
|
|
31
31
|
@abstractmethod
|
|
32
|
-
def
|
|
32
|
+
def exists_env(self) -> bool:
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
@abstractmethod
|
|
36
|
+
def create_env(
|
|
37
|
+
self, python_path: Path | None = None, exists: str = "ignore"
|
|
38
|
+
) -> None:
|
|
33
39
|
pass
|
|
34
40
|
|
|
35
41
|
@abstractmethod
|
xoscar/virtualenv/uv.py
CHANGED
|
@@ -65,9 +65,44 @@ class UVVirtualEnvManager(VirtualEnvManager):
|
|
|
65
65
|
uv_path = "uv"
|
|
66
66
|
return uv_path
|
|
67
67
|
|
|
68
|
-
def
|
|
68
|
+
def exists_env(self) -> bool:
|
|
69
|
+
"""Check if virtual environment already exists."""
|
|
70
|
+
return self.env_path.exists() and (self.env_path / "pyvenv.cfg").exists()
|
|
71
|
+
|
|
72
|
+
def create_env(
|
|
73
|
+
self, python_path: Path | None = None, exists: str = "ignore"
|
|
74
|
+
) -> None:
|
|
75
|
+
"""
|
|
76
|
+
Create virtual environment.
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
python_path: Path to Python interpreter to use
|
|
80
|
+
exists: How to handle existing environment:
|
|
81
|
+
- "ignore": Skip creation if environment already exists (default)
|
|
82
|
+
- "error": Raise error if environment exists
|
|
83
|
+
- "clear": Remove existing environment and create new one
|
|
84
|
+
"""
|
|
85
|
+
if self.exists_env():
|
|
86
|
+
if exists == "error":
|
|
87
|
+
raise FileExistsError(
|
|
88
|
+
f"Virtual environment already exists at {self.env_path}"
|
|
89
|
+
)
|
|
90
|
+
elif exists == "ignore":
|
|
91
|
+
logger.info(
|
|
92
|
+
f"Virtual environment already exists at {self.env_path}, skipping creation"
|
|
93
|
+
)
|
|
94
|
+
return
|
|
95
|
+
elif exists == "clear":
|
|
96
|
+
logger.info(f"Removing existing virtual environment at {self.env_path}")
|
|
97
|
+
self.remove_env()
|
|
98
|
+
else:
|
|
99
|
+
raise ValueError(
|
|
100
|
+
f"Invalid exists option: {exists}. Must be one of: error, clear, ignore"
|
|
101
|
+
)
|
|
102
|
+
|
|
69
103
|
uv_path = self._get_uv_path()
|
|
70
104
|
cmd = [uv_path, "venv", str(self.env_path), "--system-site-packages"]
|
|
105
|
+
|
|
71
106
|
if python_path:
|
|
72
107
|
cmd += ["--python", str(python_path)]
|
|
73
108
|
elif _is_in_pyinstaller():
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
xoscar/__init__.py,sha256=lzCXUmkuIjcjkiNQFekysdJR_ZhlbjcfR5ka1bZZNQg,1683
|
|
2
|
-
xoscar/_utils.cp39-win_amd64.pyd,sha256=
|
|
2
|
+
xoscar/_utils.cp39-win_amd64.pyd,sha256=M_NqS-u0ybRHD9YVgOU-7JkOj1qJxE5G70LH8TQxHHg,115712
|
|
3
3
|
xoscar/_utils.pxd,sha256=rlNbTg5lhXA-jCOLksqF4jhUlNn0xw2jx1HxdLa34pc,1193
|
|
4
4
|
xoscar/_utils.pyx,sha256=TWScgqmJGYzjbWBOShBLkq07ldfYEQ5fw6V4OytX_IA,7626
|
|
5
5
|
xoscar/_version.py,sha256=bsfCVAo_o9LkiP3AjPsP4SRRqhjuS0t4D1WGJPzbdls,24412
|
|
@@ -7,10 +7,10 @@ xoscar/api.py,sha256=QQDHn-_FiDExmOxEk8BUnq4Qrx13VX3shSlEEqPQJo0,15175
|
|
|
7
7
|
xoscar/backend.py,sha256=8G5JwjoOT6Q2slb11eXNApxgcmvNQUCdQzkoIMDwLcQ,1917
|
|
8
8
|
xoscar/batch.py,sha256=Jk5BSpvMFAV9DrRy0a9tgPvIo_dt8cbJReZBL0cnOPc,8128
|
|
9
9
|
xoscar/constants.py,sha256=GJ1KEOxwnqksc9K_GH42TSWpQECeC6ti3KJmE3PUcTw,810
|
|
10
|
-
xoscar/context.cp39-win_amd64.pyd,sha256=
|
|
10
|
+
xoscar/context.cp39-win_amd64.pyd,sha256=lWd25V5LA7odENeUCmwGc2JKhtxeCqM8vXbhMD11hCI,164352
|
|
11
11
|
xoscar/context.pxd,sha256=6n6IAbmArSRq8EjcsbS6npW8xP1jI0qOoS1fF0oyj-o,746
|
|
12
12
|
xoscar/context.pyx,sha256=FOJVerGOvxe2USryXEQA0rpaFX_ScxISH6QWKUcahY8,11310
|
|
13
|
-
xoscar/core.cp39-win_amd64.pyd,sha256=
|
|
13
|
+
xoscar/core.cp39-win_amd64.pyd,sha256=lJgURCW1SPQLoNrOTmmSxYRkuQiIlkf4-uxCsW1fUOY,324096
|
|
14
14
|
xoscar/core.pxd,sha256=9IZP7dYGfnF1I-obIls8R8b6forxDOPbiM3v5nVslLk,1368
|
|
15
15
|
xoscar/core.pyx,sha256=U6jCZN74MQHi7HkQRaVGm_w5q-FMsw0nnE3aU6533_Q,22756
|
|
16
16
|
xoscar/debug.py,sha256=hrmxIH6zvTKasQo6PUUgXu5mgEsR0g87Fvpw7CoHipg,5257
|
|
@@ -30,7 +30,7 @@ xoscar/backends/allocate_strategy.py,sha256=DzvTlixwzTANURI2mDLHm3vcaugSPDxU6UQZ
|
|
|
30
30
|
xoscar/backends/config.py,sha256=86j0g_Xrl8ENPzBWi296yWg9QEcljvdKK-yJbfYTvQ0,5532
|
|
31
31
|
xoscar/backends/context.py,sha256=qWwksx8JxYcKR-LQA3PvXh4ReuuTTEyDaLbjpxGXcTA,16766
|
|
32
32
|
xoscar/backends/core.py,sha256=fbekAxys_t1Dv7if-1R6uVvC_yAxNkXLeQ1V1ZSAfC0,11161
|
|
33
|
-
xoscar/backends/message.cp39-win_amd64.pyd,sha256=
|
|
33
|
+
xoscar/backends/message.cp39-win_amd64.pyd,sha256=wnIKkH8rNY9qrTgL3240ttbnEttmaRCJz5i6vNzJY2E,245248
|
|
34
34
|
xoscar/backends/message.pyx,sha256=lBEjMJv4VyxmeO9lHXJJazOajbFnTLak4PSBcLoPZvU,20331
|
|
35
35
|
xoscar/backends/pool.py,sha256=bS_m8XBkfQQsCOaLEzM6HkV5e78dPPp1bCH6yjvPEss,62153
|
|
36
36
|
xoscar/backends/router.py,sha256=EjfNpQUrhFU15eYe1kRPueziHgI2gfDViUzm7ruvXDE,10817
|
|
@@ -57,8 +57,8 @@ xoscar/collective/common.py,sha256=9c7xq3IOUvfA0I9GnpalUqXZOzmF6IEILv4zL64BYVE,3
|
|
|
57
57
|
xoscar/collective/core.py,sha256=191aPxbUgWpjzrqyozndImDAQhZFmqoQdBkHFLDfXN0,24239
|
|
58
58
|
xoscar/collective/process_group.py,sha256=kTPbrLMJSGhqbiWvTIiz-X3W0rZWd_CFn_zUIlXbOlM,23286
|
|
59
59
|
xoscar/collective/utils.py,sha256=p3WEVtXvnVhkuO5mRgQBhBRFr1dKHcDKMjrbMyuiyfg,1219
|
|
60
|
-
xoscar/collective/uv.dll,sha256=
|
|
61
|
-
xoscar/collective/xoscar_pygloo.cp39-win_amd64.pyd,sha256=
|
|
60
|
+
xoscar/collective/uv.dll,sha256=_k0yO7S26icYYwET2Jd-9d2YC-qi03h5dBHpjNHm95E,620544
|
|
61
|
+
xoscar/collective/xoscar_pygloo.cp39-win_amd64.pyd,sha256=ukJTPGIMIP19sFJJ9YT45cV66I7TKba51WVBeWZcSWU,839680
|
|
62
62
|
xoscar/metrics/__init__.py,sha256=RjXuuYw4I2YYgD8UY2Z5yCZk0Z56xMJ1n40O80Dtxf8,726
|
|
63
63
|
xoscar/metrics/api.py,sha256=dtJ4QrIqQNXhJedeqOPs4TXKgrRGZFFN50xAd9SCfec,9144
|
|
64
64
|
xoscar/metrics/backends/__init__.py,sha256=ZHepfhCDRuK9yz4pAM7bjpWDvS3Ijp1YgyynoUFLeuU,594
|
|
@@ -69,7 +69,7 @@ xoscar/metrics/backends/prometheus/__init__.py,sha256=ZHepfhCDRuK9yz4pAM7bjpWDvS
|
|
|
69
69
|
xoscar/metrics/backends/prometheus/prometheus_metric.py,sha256=65hb8O3tmsEJ7jgOrIwl_suj9SE5Tmqcfjuk0urkLvE,2120
|
|
70
70
|
xoscar/serialization/__init__.py,sha256=tS8C49yrW_geWNEsbgW3phK1q4YN1ojI6CN-vroIFYM,876
|
|
71
71
|
xoscar/serialization/aio.py,sha256=7YLXgkWpQ3ANy-TZ1qO8Mt4_J3cZFhFh2FEgUgxMT60,4873
|
|
72
|
-
xoscar/serialization/core.cp39-win_amd64.pyd,sha256=
|
|
72
|
+
xoscar/serialization/core.cp39-win_amd64.pyd,sha256=t16vuKIDm176_uMckRL1R5QzpwI01cJF8E-87fDUMaA,267264
|
|
73
73
|
xoscar/serialization/core.pxd,sha256=X-47bqBM2Kzw5SkLqICdKD0gU6CpmLsBxC3kfW--wVk,1013
|
|
74
74
|
xoscar/serialization/core.pyx,sha256=ZKexLRnRwZXXn2045kR7xfM_szcoPNrDuouQCWtpFp8,30570
|
|
75
75
|
xoscar/serialization/cuda.py,sha256=Fj4Cpr_YmkGceUCo0mQn8fRvmHP_5WcLdRx6epZ3RC0,3869
|
|
@@ -79,10 +79,10 @@ xoscar/serialization/numpy.py,sha256=C6WVx-Sdl2OHBAvVY34DFjAKXlekMbpc2ni6bR8wxYo
|
|
|
79
79
|
xoscar/serialization/pyfury.py,sha256=3ucal29Hr7PX9_1SfB2x43FE2xw_C0rLkVv3foL7qwM,1200
|
|
80
80
|
xoscar/serialization/scipy.py,sha256=9ph-yoRoNiwUZTwQrn35U60VPirWlncXNAg6EXvqMR4,2554
|
|
81
81
|
xoscar/virtualenv/__init__.py,sha256=rhJ7I6x7aXjKOCzSqsKLwqFJMh4YC2sqchEIJNEfI58,1151
|
|
82
|
-
xoscar/virtualenv/core.py,sha256=
|
|
82
|
+
xoscar/virtualenv/core.py,sha256=5w1UDnzLHKyrFFwqAJFXVxkpXrd5ux8OlxSR3971bMo,3055
|
|
83
83
|
xoscar/virtualenv/utils.py,sha256=tZYB1kAEym5e8WK9SxhW7VgZzXk6fJMm6MoBA7pY4gM,2523
|
|
84
|
-
xoscar/virtualenv/uv.py,sha256=
|
|
85
|
-
xoscar-0.7.
|
|
86
|
-
xoscar-0.7.
|
|
87
|
-
xoscar-0.7.
|
|
88
|
-
xoscar-0.7.
|
|
84
|
+
xoscar/virtualenv/uv.py,sha256=hHWtt6xxNTKNbuHpYXicgXxb2IDBg5Nqtn7Mw4xBEQU,10976
|
|
85
|
+
xoscar-0.7.13.dist-info/METADATA,sha256=s6pbK1V7uqX__vGJo4Gk-kJFi4KaCBDS4bcDGqtKlJo,9361
|
|
86
|
+
xoscar-0.7.13.dist-info/WHEEL,sha256=yA7mxgqX2UV73NtJdMh2AAmdb628loM81912H3s5r00,100
|
|
87
|
+
xoscar-0.7.13.dist-info/top_level.txt,sha256=vYlqqY4Nys8Thm1hePIuUv8eQePdULVWMmt7lXtX_ZA,21
|
|
88
|
+
xoscar-0.7.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|