From 8a9f1a6257af50cf310a5cf062d549907a2b8dd4 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Thu, 6 May 2021 12:46:31 +0530 Subject: [PATCH] fix: restrict installation to Ubuntu 18.04 --- setup.py | 2 +- tests/test_installation.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2cefc5271..4cb353941 100644 --- a/setup.py +++ b/setup.py @@ -92,7 +92,7 @@ def run(self) -> None: if platform == "mac": wheel = "macosx_10_13_x86_64.whl" if platform == "linux": - wheel = "manylinux1_x86_64.whl" + wheel = "manylinux_2_27_x86_64.whl" if platform == "win32": wheel = "win32.whl" if platform == "win32_x64": diff --git a/tests/test_installation.py b/tests/test_installation.py index c203d2129..73c4ed887 100644 --- a/tests/test_installation.py +++ b/tests/test_installation.py @@ -28,9 +28,10 @@ def test_install(tmp_path: Path): if sys.platform == "win32": wheelpath = list((root / "dist").glob("playwright*win_amd64*.whl"))[0] elif sys.platform == "linux": - wheelpath = list((root / "dist").glob("playwright*manylinux1*.whl"))[0] + wheelpath = list((root / "dist").glob("playwright*manylinux_2_27_*.whl"))[0] elif sys.platform == "darwin": wheelpath = list((root / "dist").glob("playwright*macosx_10_*.whl"))[0] + subprocess.check_output([context.env_exe, "-m", "pip", "install", "pip", "-U"]) subprocess.check_output( [ context.env_exe,