14
0
forked from pool/micropython

Accepting request 1270586 from devel:languages:python

- Update to 1.25.0
  * Add ROMFS support (see also "mpremote romfs" cmd with "query", "build", and "deploy" sub-commands)
    ROMFS defines a read-only, memory-mappable, extensible filesystem that can contain arbitrary resources,
	including precompiled mpy files, and allows executing bytecode directly from the filesystem.
	This makes importing significantly faster and use a lot less memory.
  * Inline assembler now supports 32-bit RISC-V assembly code via the newly implemented @micropython.asm_rv32 decorator.
  * Datagram TLS (DTLS) is now supported by the tls module and enabled on the alif, mimxrt, renesas-ra, rp2, stm32 and unix ports.
  * mpremote command-line tool now supports recursive remove via the new "rm -r"
  * mpremote now supports relative URLs in the package.json for installing from the local filesystem
  * "mpremote mount" has optimised readline support
  * full support for tuples and start/end arguments in str.startswith() and str.endswith() methods
  * vfs.mount() with no arguments now returns a list of mounted filesystems
  * marshal module has been added with dumps() and loads() functions
  * MicroPython native linker mpy_ld.py now includes support for linking in static libraries automatically
  * native modules now support 32-bit RISC-V code
  * force _FILE_OFFSET_BITS=64 to fix 32-bit file ABI
  * enable VfsRom on standard and coverage variants
  * use the bare metal mbedTLS config in the coverage buiid
  * add recursive mutex support
  * main: add coverage test for mounting ROMFS filesystem at startup
- Drop fix_re_sub_test_on_python3.13.patch as not needed anymore

OBS-URL: https://build.opensuse.org/request/show/1270586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=19
This commit is contained in:
2025-04-18 14:20:54 +00:00
committed by Git OBS Bridge
5 changed files with 29 additions and 51 deletions

View File

@@ -1,46 +0,0 @@
From e73cf71a246ee456aac0f4d16167e0856846db6b Mon Sep 17 00:00:00 2001
From: Alessandro Gatti <a.gatti@frob.it>
Date: Sat, 4 Jan 2025 15:00:28 +0100
Subject: [PATCH] tests/extmod/re_sub.py: Fix test execution on Python 3.13.
This commit fixes a test failure for `extmod/re_sub.py` where the code,
whilst being correct, would not make the test pass due to a newer
Python version than expected.
On Python 3.13, running `tests/extmod/re_sub.py` would yield a
deprecation warning about `re.sub` not providing the match count as a
keyword parameter. This warning would be embedded in the expected test
result and thus the test would always fail.
Co-authored-by: stijn <stijn@ignitron.net>
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
---
tests/extmod/re_sub.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tests/extmod/re_sub.py b/tests/extmod/re_sub.py
index 2c7c6c10f1a49..ecaa66d83d8a7 100644
--- a/tests/extmod/re_sub.py
+++ b/tests/extmod/re_sub.py
@@ -10,6 +10,8 @@
print("SKIP")
raise SystemExit
+import sys
+
def multiply(m):
return str(int(m.group(0)) * 2)
@@ -47,7 +49,11 @@ def A():
print(re.sub("a", "b", "c"))
# with maximum substitution count specified
-print(re.sub("a", "b", "1a2a3a", 2))
+if sys.implementation.name != "micropython":
+ # On CPython 3.13 and later the substitution count must be a keyword argument.
+ print(re.sub("a", "b", "1a2a3a", count=2))
+else:
+ print(re.sub("a", "b", "1a2a3a", 2))
# invalid group
try:

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d624a0b23389134d963b204601db9bc4ca57bfb615d13f13592bc2b5b494c03
size 86842340

BIN
micropython-1.25.0.tar.xz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Wed Apr 16 11:59:42 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Update to 1.25.0
* Add ROMFS support (see also "mpremote romfs" cmd with "query", "build", and "deploy" sub-commands)
ROMFS defines a read-only, memory-mappable, extensible filesystem that can contain arbitrary resources,
including precompiled mpy files, and allows executing bytecode directly from the filesystem.
This makes importing significantly faster and use a lot less memory.
* Inline assembler now supports 32-bit RISC-V assembly code via the newly implemented @micropython.asm_rv32 decorator.
* Datagram TLS (DTLS) is now supported by the tls module and enabled on the alif, mimxrt, renesas-ra, rp2, stm32 and unix ports.
* mpremote command-line tool now supports recursive remove via the new "rm -r"
* mpremote now supports relative URLs in the package.json for installing from the local filesystem
* "mpremote mount" has optimised readline support
* full support for tuples and start/end arguments in str.startswith() and str.endswith() methods
* vfs.mount() with no arguments now returns a list of mounted filesystems
* marshal module has been added with dumps() and loads() functions
* MicroPython native linker mpy_ld.py now includes support for linking in static libraries automatically
* native modules now support 32-bit RISC-V code
* force _FILE_OFFSET_BITS=64 to fix 32-bit file ABI
* enable VfsRom on standard and coverage variants
* use the bare metal mbedTLS config in the coverage buiid
* add recursive mutex support
* main: add coverage test for mounting ROMFS filesystem at startup
- Drop fix_re_sub_test_on_python3.13.patch as not needed anymore
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Mar 17 12:24:36 UTC 2025 - Dominik Heidler <dheidler@suse.de> Mon Mar 17 12:24:36 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -20,13 +20,12 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: micropython Name: micropython
Version: 1.24.1 Version: 1.25.0
Release: 0 Release: 0
Summary: Implementation of Python 3 with very low memory footprint Summary: Implementation of Python 3 with very low memory footprint
License: MIT License: MIT
URL: https://micropython.org/ URL: https://micropython.org/
Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz Source: https://micropython.org/resources/source/%{name}-%{version}.tar.xz
Patch1: fix_re_sub_test_on_python3.13.patch
BuildRequires: openssl BuildRequires: openssl
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python3 BuildRequires: python3