micropython: update to 1.28.0
authorAlexandru Ardelean <redacted>
Sun, 10 May 2026 10:23:10 +0000 (13:23 +0300)
committerAlexandru Ardelean <redacted>
Mon, 11 May 2026 11:58:59 +0000 (14:58 +0300)
Changes since 1.27.0:
- New machine.CAN class with bindings for the stm32 port; support across
  all ports to follow
- machine.PWM support added to stm32 and alif ports, completing coverage
  of all Tier 1/2 MCU-based ports
- Template strings (t-strings, PEP 750) added at the "full feature" level
- weakref module added with weakref.ref and weakref.finalize classes
- f-strings now support nested f-strings within expressions
- Optimisations to native emitter; new RISC-V Zcmp arch flag for RV32
- extmod.mk: add extmod/machine_can.c (shifts the mbedtls hunk by 1 line;
  update 040-extmod-use-external-mbedtls.patch accordingly)

micropython-lib is updated in lockstep in a separate commit.

Ref: https://github.com/micropython/micropython/releases/tag/v1.28.0
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/micropython-lib/Makefile
lang/python/micropython/Makefile
lang/python/micropython/patches/040-extmod-use-external-mbedtls.patch
lang/python/micropython/test.sh

index 7e60c67c0f59a53db2d82768a565fca35fd22e0e..e971313930e13ae477d9fbadb6e43c49072f8240 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=micropython-lib
-PKG_VERSION:=1.27.0
+PKG_VERSION:=1.28.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=micropython-lib-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib/archive/refs/tags/v$(PKG_VERSION)
-PKG_HASH:=d108975cc3940c868aa934adac9553f36bf6bcbb2a77190a6f78724ffc6bbeb5
+PKG_HASH:=244f1ac1623674444a2092983e22c0a1f6ac89ae116f93bc0f6bc05c77dd38bc
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT Python-2.0.1
index 40c2419082726ad240b2ee3fe9d668681b8b5211..2a8ab5cef2963c8391c58fa5ad1f4946664a65d6 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=micropython
-PKG_VERSION:=1.27.0
+PKG_VERSION:=1.28.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/micropython/micropython/releases/download/v$(PKG_VERSION)
-PKG_HASH:=9874b20646c3bbe81d524f779a16875e5d088b7065e175ffd2aa2a02f50573c9
+PKG_HASH:=4e43c59657b8da33b4bc503509a827cc3ea6cb66c446475c57776cf4467ba215
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
index 3e1a145ba87dcc04eedc3962f120035d7730a144..f092638941a7a4c322516bb3335a519033b0c510 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 06/10] extmod: Use system mbedtls
 
 --- a/extmod/extmod.mk
 +++ b/extmod/extmod.mk
-@@ -242,91 +242,12 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_
+@@ -243,91 +243,12 @@ SRC_THIRDPARTY_C += $(addprefix $(AXTLS_
        crypto/sha1.c \
        )
  else ifeq ($(MICROPY_SSL_MBEDTLS),1)
index 82cf2ecd0c5651af755934e712510a034193b157..95909cab8a8f29ab1fe61396a8aacc2049a5adcb 100644 (file)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-nl="
-"
+[ "$1" = "micropython-mbedtls" ] || [ "$1" = "micropython-nossl" ] || exit 0
 
-micropython -c "import sys${nl}print(sys.version)" | grep -F " MicroPython v${PKG_VERSION} "
+micropython -c "import sys; print(sys.version)" | grep -F "MicroPython v$2"
+micropython -c "print('hello from micropython')" | grep -F "hello from micropython"
git clone https://git.99rst.org/PROJECT