Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions local-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ objgraph==3.7.0
Pillow==12.3.0
pixelmatch==0.3.0
pre-commit==3.5.0
pyee==13.0.1
pyOpenSSL==26.0.0
pytest==9.0.3
pytest-asyncio==1.4.1
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ requires-python = ">=3.10"
# - pip install uv==0.5.4
# - uv pip compile pyproject.toml -o requirements.txt
dependencies = [
"pyee>=13,<15",
"greenlet>=3.1.1,<4.0.0"
]
classifiers = [
Expand Down
4 changes: 0 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@
# uv pip compile pyproject.toml -o requirements.txt
greenlet==3.5.6
# via playwright (pyproject.toml)
pyee==13.0.1
# via playwright (pyproject.toml)
typing-extensions==4.16.0
# via pyee
9 changes: 9 additions & 0 deletions tests/test_installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _run_client(python: str, tmp_path: Path, browser_name: str, environ: dict) -
# of a test.
@pytest.mark.timeout(900)
def test_install(tmp_path: Path, browser_name: str) -> None:
# Regression test for https://github.com/microsoft/playwright-python/issues/3312.
python = _create_venv(tmp_path / "env")
if sys.platform == "win32":
wheelpath = list((ROOT / "dist").glob("playwright*win_amd64*.whl"))[0]
Expand All @@ -57,6 +58,14 @@ def test_install(tmp_path: Path, browser_name: str) -> None:
elif sys.platform == "darwin":
wheelpath = list((ROOT / "dist").glob("playwright*macosx_*.whl"))[0]
subprocess.check_output([python, "-m", "pip", "install", str(wheelpath)])
subprocess.check_output(
[
python,
"-c",
"import importlib.util; assert importlib.util.find_spec('pyee') is None",
],
cwd=tmp_path,
)
environ = os.environ.copy()
environ["PLAYWRIGHT_BROWSERS_PATH"] = str(tmp_path)
_run_client(python, tmp_path, browser_name, environ)
Expand Down
Loading