14
0
forked from pool/micropython

32 Commits

Author SHA256 Message Date
594aac1953 Accepting request 1313856 from devel:languages:python
- Version 1.26.1
  * esp32: update esp_tinyusb component to v1.7.6
  * tools: add an environment variable MICROPY_MAINTAINER_BUILD
  * esp32: add IDF Component Lockfiles to git repo
  * shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
  * shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
  * tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev

- Fix building on single core systems
  * Skip tests/thread/stress_schedule.py when single core system detected

OBS-URL: https://build.opensuse.org/request/show/1313856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=24
2025-10-28 13:46:15 +00:00
36fded7970 - Version 1.26.1
* esp32: update esp_tinyusb component to v1.7.6
  * tools: add an environment variable MICROPY_MAINTAINER_BUILD
  * esp32: add IDF Component Lockfiles to git repo
  * shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
  * shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
  * tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=59
2025-10-27 13:59:09 +00:00
a00206d42c - Fix building on single core systems
* Skip tests/thread/stress_schedule.py when single core system detected

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=58
2025-10-27 12:51:10 +00:00
3ca66751b3 Accepting request 1313040 from devel:languages:python
- Build with mbedtls-3.6.5 instead of bundled 3.6.2 to fix CVE-2025-59438

OBS-URL: https://build.opensuse.org/request/show/1313040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=23
2025-10-23 14:35:50 +00:00
c328f134d3 - Build with mbedtls-3.6.5 instead of bundled 3.6.2 to fix CVE-2025-59438
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=56
2025-10-22 12:22:55 +00:00
0fe9d7b526 Accepting request 1299777 from devel:languages:python
- Version 1.26.0
  * Added machine.I2CTarget for creating I2C target devices on multiple ports.
  * New MCU support: STM32N6xx (800 MHz, ML accel) & ESP32-C2 (WiFi + BLE).
  * Major float accuracy boost (~28% → ~98%), constant folding in compiler.
  * Optimized native/Viper emitters; reduced heap use for slices.
  * Time functions standardized (1970–2099); new boards across ESP32, SAMD, STM32, Zephyr.
  * ESP32: ESP-IDF 5.4.2, flash auto-detect, PCNT class, LAN8670 PHY.
  * RP2: compressed errors, better lightsleep, hard IRQ timers.
  * Zephyr v4.0.0: PWM, SoftI2C/SPI, BLE runtime services, boot.py/main.py support.
  * mpremote adds fs tree, improved df, portable config paths.
  * Updated lwIP, LittleFS, libhydrogen, stm32lib; expanded hardware/CI tests.
- Removed micropython-gcc15-string-initialization.patch as included upstream

OBS-URL: https://build.opensuse.org/request/show/1299777
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=22
2025-08-15 19:52:37 +00:00
2b994e87b2 - Removed micropython-gcc15-string-initialization.patch as included upstream
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=54
2025-08-15 09:15:21 +00:00
4c23be5abb - Version 1.26.0
* Added machine.I2CTarget for creating I2C target devices on multiple ports.
  * New MCU support: STM32N6xx (800 MHz, ML accel) & ESP32-C2 (WiFi + BLE).
  * Major float accuracy boost (~28% → ~98%), constant folding in compiler.
  * Optimized native/Viper emitters; reduced heap use for slices.
  * Time functions standardized (1970–2099); new boards across ESP32, SAMD, STM32, Zephyr.
  * ESP32: ESP-IDF 5.4.2, flash auto-detect, PCNT class, LAN8670 PHY.
  * RP2: compressed errors, better lightsleep, hard IRQ timers.
  * Zephyr v4.0.0: PWM, SoftI2C/SPI, BLE runtime services, boot.py/main.py support.
  * mpremote adds fs tree, improved df, portable config paths.
  * Updated lwIP, LittleFS, libhydrogen, stm32lib; expanded hardware/CI tests.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=53
2025-08-15 08:25:38 +00:00
209a792453 Accepting request 1291954 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1291954
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=21
2025-07-11 19:30:41 +00:00
2bf43b10dd Add micropython-gcc15-string-initialization.patch: Refactor string literal as array initializer (gh#micropython/micropython#17269).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=51
2025-07-11 11:04:06 +00:00
fd9b66dca5 Accepting request 1282363 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1282363
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=20
2025-06-03 17:10:48 +00:00
448bf44040 Delete even more libs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=47
2025-05-27 13:16:18 +00:00
a6a24b635e Tinyusb is not needed on linux
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=46
2025-05-26 13:11:17 +00:00
7006890406 Don't include all ports
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=45
2025-05-26 12:56:32 +00:00
01b131cf61 Drop more unneeded libs
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=44
2025-05-26 12:34:40 +00:00
43f67de9dc Mention prepare.sh in spec file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=43
2025-05-26 12:22:43 +00:00
57c1014676 - Add script to delete some 3rd party libraries from the src tar
that are not needed to build the unix port in order to
  make the legal review easier

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=42
2025-05-26 11:55:32 +00:00
29940afbcc 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
2025-04-18 14:20:54 +00:00
606db37ba4 - 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/package/show/devel:languages:python/micropython?expand=0&rev=40
2025-04-16 12:11:06 +00:00
13e2981da0 Accepting request 1255628 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1255628
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=18
2025-03-25 21:10:23 +00:00
3d22849170 - Add fix_re_sub_test_on_python3.13.patch to fix re_sub test
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=38
2025-03-17 12:53:37 +00:00
bbd5d1eade Accepting request 1246653 from devel:languages:python
- Add subpackage mpy-tools which contains mpy-cross and mpy-tool

OBS-URL: https://build.opensuse.org/request/show/1246653
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=17
2025-02-18 18:12:50 +00:00
b4bce45ea3 - Add subpackage mpy-tools which contains mpy-cross and mpy-tool
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=36
2025-02-18 11:49:19 +00:00
8754eecf54 Accepting request 1244833 from devel:languages:python
Build mpremote

OBS-URL: https://build.opensuse.org/request/show/1244833
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=16
2025-02-11 20:22:45 +00:00
f10a34b8ef Fix 15.6 fixes
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=34
2025-02-10 17:38:34 +00:00
00a51ba600 - Fix build for 15.6
Depends on https://build.opensuse.org/requests/1244131

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=33
2025-02-07 19:04:09 +00:00
8cc5256482 Accepting request 1243566 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1243566
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=15
2025-02-06 21:08:30 +00:00
f9074af794 - Build mpremote tool
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=31
2025-02-06 07:58:50 +00:00
2cf77b6507 Accepting request 1227683 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1227683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=14
2024-12-02 15:59:19 +00:00
f0aa806580 - Update to 1.24.1:
* https://github.com/micropython/micropython/releases/tag/v1.24.1
- Update to 1.24.0:
  * https://github.com/micropython/micropython/releases/tag/v1.24.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=29
2024-12-02 08:46:28 +00:00
373d4a4356 Accepting request 1201783 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1201783
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/micropython?expand=0&rev=13
2024-09-19 19:16:54 +00:00
6138c1d4bd - Update to 1.23.0:
* https://github.com/micropython/micropython/releases/tag/v1.23.0

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/micropython?expand=0&rev=27
2024-09-18 12:08:46 +00:00
6 changed files with 38 additions and 6 deletions

BIN
mbedtls-3.6.5.tar.bz2 LFS Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:44e52136c2685cabe33a4a74267d4aacddc7ebe89c9142558a8bc8a80f209c9c
size 16188668

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Mon Oct 27 13:58:27 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Version 1.26.1
* esp32: update esp_tinyusb component to v1.7.6
* tools: add an environment variable MICROPY_MAINTAINER_BUILD
* esp32: add IDF Component Lockfiles to git repo
* shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
* shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
* tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev
-------------------------------------------------------------------
Mon Oct 27 12:49:06 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Fix building on single core systems
* Skip tests/thread/stress_schedule.py when single core system detected
-------------------------------------------------------------------
Wed Oct 22 12:19:48 UTC 2025 - Dominik Heidler <dheidler@suse.de>
- Build with mbedtls-3.6.5 instead of bundled 3.6.2 to fix CVE-2025-59438
-------------------------------------------------------------------
Fri Aug 15 08:13:39 UTC 2025 - Dominik Heidler <dheidler@suse.de>

View File

@@ -20,13 +20,14 @@
%{?sle15_python_module_pythons}
Name: micropython
Version: 1.26.0
Version: 1.26.1
Release: 0
Summary: Implementation of Python 3 with very low memory footprint
License: MIT
URL: https://micropython.org/
Source0: %{name}-%{version}.tar.xz
Source1: prepare.sh
Source2: https://github.com/Mbed-TLS/mbedtls/releases/download/mbedtls-3.6.5/mbedtls-3.6.5.tar.bz2#/mbedtls-3.6.5.tar.bz2
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: python3
@@ -65,12 +66,15 @@ MicroPython tools like the mpy-cross compiler for compiling.py files to .mpy fil
Also mpy-tool for inspecting .mpy files.
%prep
%autosetup -p1
%autosetup -p1 -a2
sed -i -e "s:/usr/lib/micropython:%{_prefix}/lib/micropython:g" "ports/unix/main.c"
%define make_flags V=1 MICROPY_PY_BTREE=0 MICROPY_PY_USSL=0
rm -rf lib/mbedtls
mv mbedtls-3.6.5 lib/mbedtls
%build
# micropython
export CFLAGS="%optflags -Wno-dangling-pointer"
@@ -109,6 +113,8 @@ install -m755 -D -v tools/mpy-tool.py %{buildroot}%{_bindir}/mpy-tool
# https://github.com/micropython/micropython/pull/6024
rm -f tests/float/float_parse.py
rm -f tests/float/float_parse_doubleprec.py
# fails on single core systems
[ "$(grep core.id /proc/cpuinfo | wc -l)" == 1 ] && rm -f tests/thread/stress_schedule.py
%endif
export MICROPY_CPYTHON3=python%python_version
make -C ports/unix PYTHON=%{_bindir}/python%python_version V=1 test

View File

@@ -7,7 +7,7 @@ set -e
version=$(rpmspec --query micropython.spec | head -1 | cut -d- -f2)
rm -fv micropython-*.tar.xz
osc rm -fv micropython-*.tar.xz
wget "https://micropython.org/resources/source/micropython-${version}.tar.xz" -O "micropython-${version}.tar.xz"
tar xf "micropython-${version}.tar.xz"
pushd "micropython-${version}"
@@ -34,3 +34,4 @@ popd
popd
tar caf "micropython-${version}.tar.xz" "micropython-${version}"
rm -r "micropython-${version}"
osc add micropython-*.tar.xz