From fce07caf14bc0bee5b2e4ba191baea20ff38e08f Mon Sep 17 00:00:00 2001 From: "microsoft-playwright-automation[bot]" <203992400+microsoft-playwright-automation[bot]@users.noreply.github.com> Date: Tue, 3 Nov 2026 22:04:38 +0000 Subject: [PATCH] fix(deps): remove unused pyee runtime dependency Fixes: https://github.com/microsoft/playwright-python/issues/3312 --- local-requirements.txt | 1 + pyproject.toml | 1 - requirements.txt | 4 ---- tests/test_installation.py | 9 +++++++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/local-requirements.txt b/local-requirements.txt index a79ab2c81..87062908c 100644 --- a/local-requirements.txt +++ b/local-requirements.txt @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 76d06e4f7..e638b30ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [ diff --git a/requirements.txt b/requirements.txt index 8b949ed37..7125a0d2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/tests/test_installation.py b/tests/test_installation.py index 8ec8eb31d..418f20c28 100644 --- a/tests/test_installation.py +++ b/tests/test_installation.py @@ -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] @@ -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)