File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
tools/board_stubs/circuitpython_setboard Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,8 @@ stubs:
274
274
@$(PYTHON ) tools/board_stubs/build_board_specific_stubs/board_stub_builder.py
275
275
@cp -r tools/board_stubs/circuitpython_setboard circuitpython-stubs/circuitpython_setboard
276
276
@$(PYTHON ) -m build circuitpython-stubs
277
+ @touch circuitpython-stubs/board/__init__.py
278
+ @touch circuitpython-stubs/board_definitions/__init__.py
277
279
278
280
.PHONY : check-stubs
279
281
check-stubs : stubs
Original file line number Diff line number Diff line change 1
1
# SPDX-FileCopyrightText: 2024 Tim Cocks
2
2
#
3
3
# SPDX-License-Identifier: MIT
4
- import argparse
5
4
import sys
5
+
6
+ version_info = sys .version_info
7
+ if version_info .major < 3 or (version_info .major == 3 and version_info .minor < 9 ):
8
+ sys .stdout .write ("Python 3.9 is the minimum supported version for board specific stubs.\n " )
9
+ sys .exit (0 )
10
+
11
+ import argparse
6
12
import shutil
7
13
from collections import defaultdict
8
14
from importlib import resources
You can’t perform that action at this time.
0 commit comments