Skip to content

Commit 51eb0e6

Browse files
committed
chore: bump version to 0.10.1, sealed_worker test uses published wheel index
Bump version strings to 0.10.1 in pyproject.toml and __init__.py. Sealed worker integration test uses pollockjj.github.io/wheels/ index for pyisolate resolution instead of PyPI. Add @pytest.mark.network marker. Replace hardcoded version assertion with dynamic lookup.
1 parent b244af0 commit 51eb0e6

3 files changed

Lines changed: 26 additions & 2 deletions

File tree

pyisolate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
if TYPE_CHECKING:
4545
from .interfaces import IsolationAdapter
4646

47-
__version__ = "0.10.0"
47+
__version__ = "0.10.1"
4848

4949
__all__ = [
5050
"ExtensionBase",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyisolate"
7-
version = "0.10.0"
7+
version = "0.10.1"
88
description = "A Python library for dividing execution across multiple virtual environments"
99
readme = "README.md"
1010
requires-python = ">=3.10"

tests/test_uv_sealed_integration.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import os
88
import shutil
99
import site
10+
import subprocess
1011
import sys
1112
import uuid
1213
from pathlib import Path
@@ -24,6 +25,7 @@
2425
pytestmark = [
2526
pytest.mark.skipif(not UV_AVAILABLE, reason="uv not on PATH"),
2627
pytest.mark.skipif(not BWRAP_AVAILABLE, reason="bwrap not on PATH"),
28+
pytest.mark.network,
2729
]
2830

2931

@@ -85,12 +87,34 @@ async def test_uv_sealed_runtime_uses_toolkit_fixture_without_host_leakage() ->
8587
with pytest.MonkeyPatch.context() as monkeypatch:
8688
monkeypatch.setenv("PATH", uv_path)
8789
monkeypatch.setenv("PYISOLATE_ARTIFACT_DIR", str(run_dir / "artifacts"))
90+
wheel_index = "https://pollockjj.github.io/wheels/"
91+
monkeypatch.setenv("UV_EXTRA_INDEX_URL", wheel_index)
92+
print(f"UV_EXTRA_INDEX_URL={wheel_index}")
8893
try:
8994
ext.ensure_process_started()
9095
except RuntimeError as exc:
9196
if "bubblewrap" in str(exc).lower():
9297
pytest.skip(f"bwrap unavailable on this platform: {exc}")
9398
raise
99+
# Verify pyisolate was installed in the child venv from the published index
100+
if os.name == "nt":
101+
child_python = Path(ext.venv_path) / "Scripts" / "python.exe"
102+
else:
103+
child_python = Path(ext.venv_path) / "bin" / "python3"
104+
pip_show = subprocess.run(
105+
[str(child_python), "-m", "pip", "show", "pyisolate"],
106+
capture_output=True,
107+
text=True,
108+
check=False,
109+
)
110+
print(f"child venv pyisolate install:\n{pip_show.stdout}")
111+
assert "pyisolate" in pip_show.stdout, "pyisolate not installed in child venv"
112+
from importlib.metadata import version as _meta_version
113+
114+
expected_version = _meta_version("pyisolate")
115+
assert expected_version in pip_show.stdout, (
116+
f"pyisolate version mismatch: expected {expected_version} in child venv"
117+
)
94118
proxy = ext.get_proxy()
95119

96120
nodes = await proxy.list_nodes()

0 commit comments

Comments
 (0)