Skip to content

Commit 94ea4d9

Browse files
committed
add MPY for CP 9
1 parent b0f4a00 commit 94ea4d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ def date_to_version(tag):
8181
SET_VERSION_PATTERN = "\n__version__ = '{}'\n"
8282
THIS_REPOSITORY = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"
8383

84-
PLATFORMS = ["mpy7", "mpy8"]
84+
PLATFORMS = ["mpy7", "mpy8", "mpy9"]
8585
PLATFORM_NAMES = {
8686
"py": "py",
8787
"mpy7": "7.x-mpy",
8888
"mpy8": "8.x-mpy",
89+
"mpy9": "9.x-mpy",
8990
}
9091

9192
# https://adafruit-circuit-python.s3.amazonaws.com/index.html?prefix=bin/mpy-cross/
@@ -95,18 +96,22 @@ def date_to_version(tag):
9596
"darwin": {
9697
"mpy7": ["macos-11", "mpy-cross-macos-11-8.0.2-universal"],
9798
"mpy8": ["macos-11", "mpy-cross-macos-11-8.0.2-universal"],
99+
"mpy9": ["macos-11", "mpy-cross-macos-11-9.0.0-alpha.2-universal"],
98100
},
99101
"linux": {
100102
"mpy7": ["linux-amd64", "mpy-cross.static-amd64-linux-7.3.3"],
101103
"mpy8": ["linux-amd64", "mpy-cross.static-amd64-linux-8.0.2"],
104+
"mpy9": ["linux-amd64", "mpy-cross-linux-amd64-9.0.0-alpha.2.static"],
102105
},
103106
"win32": {
104107
"mpy7": ["windows", "mpy-cross.static-x64-windows-7.3.3.exe"],
105108
"mpy8": ["windows", "mpy-cross-windows-8.1.0-beta.0.static.exe"],
109+
"mpy9": ["windows", "mpy-cross-windows-9.0.0-alpha.2.static.exe"],
106110
},
107111
"raspbian": {
108112
"mpy7": ["linux-raspbian", "mpy-cross.static-raspbian-7.3.0"],
109113
"mpy8": ["linux-raspbian", "mpy-cross.static-raspbian-8.0.2"],
114+
"mpy9": ["linux-raspbian", "mpy-cross-linux-raspbian-9.0.0-alpha.2.static-raspbian"],
110115
},
111116
}
112117
MPYCROSS = MPYCROSSES[sys.platform]

0 commit comments

Comments
 (0)