Skip to content

Commit 260b920

Browse files
committed
Add supported_platforms to RPi.GPIO
1 parent 5510519 commit 260b920

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

stubs/RPi.GPIO/METADATA.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ version = "0.7.*"
22
upstream_repository = "https://sourceforge.net/p/raspberry-gpio-python/code/"
33

44
[tool.stubtest]
5-
# When stubtest tries to import this module:
6-
# error: RPi.GPIO failed to import. RuntimeError: This module can only be run on a Raspberry Pi!
5+
# This package is only supported on Raspberry Pi hardware, which identifies
6+
# itself as 'linux'. When run on other hardware, it raises a RuntimeError:
7+
# RPi.GPIO failed to import. RuntimeError: This module can only be run on a Raspberry Pi!
78
# https://sourceforge.net/p/raspberry-gpio-python/code/ci/08048dd1894a6b09a104557b6eaa6bb68b6baac5/tree/source/py_gpio.c#l1008
89
skip = true
10+
supported_platforms = ["linux"]

0 commit comments

Comments
 (0)