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.
This commit is contained in:
Florian Bezannier
2026-06-10 12:05:31 +02:00
committed by Florian BEZANNIER
parent a467bc1e22
commit d92a24464b
2 changed files with 5 additions and 2 deletions
Generated
+4 -1
View File
@@ -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"
+1 -1
View File
@@ -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"