Skip to content

Commit c2d8662

Browse files
committed
Allow empty CI platforms key, change RPi.GPIO metadata
1 parent 260b920 commit c2d8662

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

lib/ts_utils/metadata.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ def read_stubtest_settings(distribution: str) -> StubtestSettings:
109109
assert _is_list_of_strings(extras)
110110
assert _is_list_of_strings(stubtest_requirements)
111111

112-
assert len(ci_platforms) > 0, f"ci_platforms is empty for {distribution!r}, use `skip = true` to skip stubtest"
113-
114112
unrecognised_platforms = set(ci_platforms) - _STUBTEST_PLATFORM_MAPPING.keys()
115113
assert not unrecognised_platforms, f"Unrecognised ci_platforms specified for {distribution!r}: {unrecognised_platforms}"
116114

stubs/RPi.GPIO/METADATA.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ upstream_repository = "https://sourceforge.net/p/raspberry-gpio-python/code/"
66
# itself as 'linux'. When run on other hardware, it raises a RuntimeError:
77
# RPi.GPIO failed to import. RuntimeError: This module can only be run on a Raspberry Pi!
88
# https://sourceforge.net/p/raspberry-gpio-python/code/ci/08048dd1894a6b09a104557b6eaa6bb68b6baac5/tree/source/py_gpio.c#l1008
9-
skip = true
10-
supported_platforms = ["linux"]
9+
supported_platforms = []
10+
ci_platforms = []

0 commit comments

Comments
 (0)