Skip to content

Commit

Permalink
Update mip packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Josverl committed Dec 10, 2024
1 parent e750dad commit 85518ef
Show file tree
Hide file tree
Showing 20 changed files with 1,946 additions and 5,172 deletions.
24 changes: 19 additions & 5 deletions mip/v5/createstubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
except ImportError:
from ucollections import OrderedDict # type: ignore

__version__ = "v1.23.0"
__version__ = "v1.24.0"
ENOENT = 2
_MAX_CLASS_LEVEL = 2 # Max class nesting
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
Expand Down Expand Up @@ -488,7 +488,7 @@ def ensure_folder(path: str):

def _build(s):
# extract build from sys.version or os.uname().version if available
# sys.version: 'MicroPython v1.23.0-preview.6.g3d0b6276f'
# sys.version: 'MicroPython v1.24.0-preview.6.g3d0b6276f'
# sys.implementation.version: 'v1.13-103-gb137d064e'
if not s:
return ""
Expand Down Expand Up @@ -595,10 +595,10 @@ def _info(): # type:() -> dict[str, str]
if (
info["version"]
and info["version"].endswith(".0")
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.23.0 do not have a micro .0
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.24.0 do not have a micro .0
and info["version"] <= "1.19.9"
):
# versions from 1.10.0 to 1.23.0 do not have a micro .0
# versions from 1.10.0 to 1.24.0 do not have a micro .0
info["version"] = info["version"][:-2]

# spell-checker: disable
Expand Down Expand Up @@ -657,7 +657,7 @@ def get_root() -> str: # sourcery skip: use-assigned-variable
# unix port
c = "."
r = c
for r in [c, "/sd", "/flash", "/", "."]:
for r in ["/sd", "/flash", "/", c, "."]:
try:
_ = os.stat(r)
break
Expand Down Expand Up @@ -801,6 +801,7 @@ def main():
"breakout_trackball",
"breakout_vl53l5cx",
"btree",
"cc3200",
"cmath",
"collections",
"crypto",
Expand All @@ -811,10 +812,12 @@ def main():
"display",
"display_driver_utils",
"ds18x20",
"embed",
"encoder",
"errno",
"esp",
"esp32",
"esp8266",
"espidf",
"espnow",
"ffi",
Expand Down Expand Up @@ -854,6 +857,7 @@ def main():
"microWebSrv",
"microWebTemplate",
"micropython",
"mimxrt",
"mip",
"mip/__init__",
"mip/__main__",
Expand All @@ -862,11 +866,13 @@ def main():
"mpu9250",
"neopixel",
"network",
"nrf",
"ntptime",
"onewire",
"openamp",
"os",
"pcf85063a",
"pic16bit",
"picoexplorer",
"picographics",
"picokeypad",
Expand All @@ -878,12 +884,16 @@ def main():
"pimoroni_i2c",
"plasma",
"platform",
"powerpc",
"pyb",
"pycom",
"pye",
"qemu",
"qrcode",
"queue",
"random",
"renesas",
"renesas-ra",
"requests",
"requests/__init__",
"rp2",
Expand All @@ -896,6 +906,7 @@ def main():
"ssh",
"ssl",
"stm",
"stm32",
"struct",
"sys",
"termios",
Expand Down Expand Up @@ -936,6 +947,7 @@ def main():
"umqtt/__init__",
"umqtt/robust",
"umqtt/simple",
"unix",
"uos",
"uplatform",
"uqueue",
Expand All @@ -961,8 +973,10 @@ def main():
"uzlib",
"version",
"vfs",
"webassembly",
"websocket",
"websocket_helper",
"windows",
"wipy",
"writer",
"xpt2046",
Expand Down
12 changes: 6 additions & 6 deletions mip/v5/createstubs_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- cross compilation, using mpy-cross, to avoid the compilation step on the micropython device
This variant was generated from createstubs.py by micropython-stubber v1.23.0
This variant was generated from createstubs.py by micropython-stubber v1.24.0
"""

# Copyright (c) 2019-2024 Jos Verlinde
Expand All @@ -43,7 +43,7 @@
except ImportError:
from ucollections import OrderedDict # type: ignore

__version__ = "v1.23.0"
__version__ = "v1.24.0"
ENOENT = 2
_MAX_CLASS_LEVEL = 2 # Max class nesting
LIBS = ["lib", "/lib", "/sd/lib", "/flash/lib", "."]
Expand Down Expand Up @@ -501,7 +501,7 @@ def ensure_folder(path: str):

def _build(s):
# extract build from sys.version or os.uname().version if available
# sys.version: 'MicroPython v1.23.0-preview.6.g3d0b6276f'
# sys.version: 'MicroPython v1.24.0-preview.6.g3d0b6276f'
# sys.implementation.version: 'v1.13-103-gb137d064e'
if not s:
return ""
Expand Down Expand Up @@ -606,10 +606,10 @@ def _info(): # type:() -> dict[str, str]
if (
info["version"]
and info["version"].endswith(".0")
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.23.0 do not have a micro .0
and info["version"] >= "1.10.0" # versions from 1.10.0 to 1.24.0 do not have a micro .0
and info["version"] <= "1.19.9"
):
# versions from 1.10.0 to 1.23.0 do not have a micro .0
# versions from 1.10.0 to 1.24.0 do not have a micro .0
info["version"] = info["version"][:-2]

# spell-checker: disable
Expand Down Expand Up @@ -668,7 +668,7 @@ def get_root() -> str: # sourcery skip: use-assigned-variable
# unix port
c = "."
r = c
for r in [c, "/sd", "/flash", "/", "."]:
for r in ["/sd", "/flash", "/", c, "."]:
try:
_ = os.stat(r)
break
Expand Down
Loading

0 comments on commit 85518ef

Please sign in to comment.