From 67f7dfe38f0fd2a11f40d8a8323af1a5a4bc527d Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sun, 31 May 2026 09:17:33 +0200 Subject: [PATCH] fix: add platform markers to playwright dependency for ARM compatibility Add PEP 508 environment markers to playwright dependency to exclude ARM architectures (aarch64, armv7l) where playwright is not available via pip. This allows the wheel to be built with playwright as a dependency, but pip will skip installing it on ARM platforms. --- poetry.lock | 5 ++++- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/poetry.lock b/poetry.lock index 2f0310b..d90070d 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1076,6 +1076,7 @@ description = "Lightweight in-process concurrent programming" optional = false python-versions = ">=3.10" groups = ["main"] +markers = "platform_machine != \"armv7l\"" files = [ {file = "greenlet-3.5.0-cp310-cp310-macosx_11_0_universal2.whl", hash = "sha256:29ea813b2e1f45fa9649a17853b2b5465c4072fbcb072e5af6cd3a288216574a"}, {file = "greenlet-3.5.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:804a70b328e706b785c6ef16187051c394a63dd1a906d89be24b6ad77759f13f"}, @@ -2415,6 +2416,7 @@ description = "A high-level API to automate web browsers" optional = false python-versions = ">=3.9" groups = ["main"] +markers = "platform_machine not in \"aarch64 armv7l\"" files = [ {file = "playwright-1.60.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:6a8cd0fec171fb3089e95e898c8bc8a6f35dea0b78b399e12fcc19427e91b1d7"}, {file = "playwright-1.60.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:39b5420ba6145045b69ced4c5c47d4d9fe5bddfc8ff816c518913afcb25ec7a5"}, @@ -2717,6 +2719,7 @@ description = "A rough port of Node.js's EventEmitter to Python with a few trick optional = false python-versions = ">=3.8" groups = ["main"] +markers = "platform_machine not in \"aarch64 armv7l\"" files = [ {file = "pyee-13.0.1-py3-none-any.whl", hash = "sha256:af2f8fede4171ef667dfded53f96e2ed0d6e6bd7ee3bb46437f77e3b57689228"}, {file = "pyee-13.0.1.tar.gz", hash = "sha256:0b931f7c14535667ed4c7e0d531716368715e860b988770fc7eb8578d1f67fc8"}, @@ -3510,4 +3513,4 @@ type = ["pytest-mypy (>=1.0.1) ; platform_python_implementation != \"PyPy\""] [metadata] lock-version = "2.1" python-versions = ">=3.11, <4.0.0" -content-hash = "7490767cda5b9993fe4c8c1e9d2e3ba3b50e36826982d1a0c6737e79441e8684" +content-hash = "a32609dfbcbc33f2478f8b20927c5f837acbe679450a2ee46713a699b3d4a0f5" diff --git a/pyproject.toml b/pyproject.toml index bdea63b..75639cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ argparse = "^1.4.0" geojson = "^2.5.0" reverse-geocode = "^1.4.1" androguard = "^4.1.2" -playwright = ">=1.40.0" +playwright = { version = ">=1.40.0", markers = "platform_machine not in 'aarch64 armv7l'" } pycryptodomex = "3.23.0" # Pin version as they introduce breaking changes in minor versions pydantic = "^1.9.0" "ruamel.yaml" = ">=0.15.0"