Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge micropython v1.23.0 #9611

Merged
merged 444 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
444 commits
Select commit Hold shift + click to select a range
0b145fd
esp32/machine_i2s: Integrate new I2S IDF driver.
miketeachman Feb 21, 2024
c92683d
esp32: Add support for IDF version v5.0.5.
DvdGiessen Feb 29, 2024
d6176c1
esp32: Add support for IDF version v5.2.
DvdGiessen Feb 29, 2024
27279e6
esp32: Add IDF-version-specific sdkconfig.
DvdGiessen Feb 29, 2024
9fc4506
esp32/mpconfigport: Don't hang when machine.bootloader isn't supported.
xyzzy42 Mar 2, 2024
af67be7
esp32/modmachine: Support bootloader on ESP32-S2/S3/C2/C3.
xyzzy42 Mar 2, 2024
cdfc6c1
esp32/network_lan: Add a separate argument to set PHY power pin.
robert-hh Mar 3, 2024
20f85fb
esp32/machine_uart: Always configure timeout_char setting in init().
DvdGiessen Dec 12, 2023
bedb649
esp32/boards/ESP32_GENERIC_S3: Add 4MiB partitioning board variant.
Feb 26, 2024
d712feb
stm32/sdram: Fix MPU config to use MPU_CONFIG_NOACCESS.
dpgeorge Mar 8, 2024
8b4a21c
extmod/network_ninaw10: Activate the NIC on demand.
iabdalkader Mar 4, 2024
2b6f81f
extmod/network_ninaw10: Set the proper security mode if none provided.
iabdalkader Mar 4, 2024
c231c89
extmod/network_ninaw10: Fix error messages.
iabdalkader Mar 14, 2024
23ccbcf
extmod/modmachine: Add MICROPY_PY_MACHINE_SIGNAL configuration option.
dpgeorge Mar 13, 2024
dd134e4
extmod/modmachine: Add MICROPY_PY_MACHINE_MEMX configuration option.
dpgeorge Mar 14, 2024
bfc3dde
extmod/modmachine: Add MICROPY_PY_MACHINE_RESET configuration option.
dpgeorge Mar 14, 2024
58a596f
extmod/nimble: Check for active before setting address mode.
DvdGiessen Mar 12, 2024
fff66c3
mimxrt/mpconfigport: Enable cryptolib and hashlib md5.
kwagyeman Mar 14, 2024
47e8475
py/objstr: Add a macro to define a bytes object at compile time.
projectgus Nov 22, 2023
43904ac
mimxrt: Define the MICROPY_HW_ENABLE_USBDEV macro.
projectgus Mar 13, 2024
9d0d262
extmod/machine_usb_device: Add support for Python USB devices.
projectgus Nov 22, 2023
0baa3b5
rp2: Enable support for Python USB devices.
projectgus Mar 12, 2024
7f5d8c4
samd: Enable support for Python USB devices.
projectgus Nov 22, 2023
5bed292
lib/open-amp: Add OpenAMP submodule.
iabdalkader Nov 13, 2023
f6213ff
lib/libmetal: Add libmetal submodule.
iabdalkader Feb 20, 2024
61ee59a
extmod/libmetal: Add MicroPython platform for libmetal.
iabdalkader Feb 20, 2024
85028aa
py/stream: Add mp_stream_seek() helper function.
iabdalkader Nov 20, 2023
b726022
py/stream: Factor stream implementations.
dpgeorge Feb 29, 2024
162054b
stm32/mpu: Add MPU config for shared, uncached memory region.
iabdalkader Dec 11, 2023
14dae42
extmod/modopenamp: Add new OpenAMP module.
iabdalkader Feb 20, 2024
81aba82
extmod/modopenamp_remoteproc: Add new OpenAMP RemoteProc class.
iabdalkader Feb 20, 2024
13297d8
stm32: Implement port backend for libmetal.
iabdalkader Nov 13, 2023
09eb4ca
stm32: Implement port backend for OpenAMP's remoteproc.
iabdalkader Nov 13, 2023
c859978
stm32/boards/ARDUINO_GIGA: Enable OpenAMP.
iabdalkader Nov 20, 2023
fc97343
stm32/boards/ARDUINO_NICLA_VISION: Enable OpenAMP.
iabdalkader Mar 11, 2024
864e459
stm32/boards/ARDUINO_PORTENTA_H7: Enable OpenAMP.
iabdalkader Mar 11, 2024
e5ca06a
docs/library/openamp: Document the new openamp module.
iabdalkader Feb 29, 2024
486ca3a
tools/ci.sh: Add Arduino GIGA to stm32 CI build.
iabdalkader Mar 14, 2024
df2ff0c
LICENSE: Add libmetal and open-amp to 3rd-party license list.
dpgeorge Mar 15, 2024
fb3820e
nrf/boards: Enable MICROPY_HW_ENABLE_USBDEV on boards with USB CDC.
dpgeorge Mar 15, 2024
01c31ea
extmod/os_dupterm: Handle exception properly when it occurs in parallel.
felixdoerre Feb 24, 2024
305707b
lib/berkeley-db-1.xx: Update submodule URL and version.
dpgeorge Mar 15, 2024
cd8eea2
all: Update extmod, ports, examples to build with new berkeley-db lib.
dpgeorge Mar 8, 2024
7dff38f
py/objdeque: Expand implementation to be doubly-ended and support iter.
LordFlashmeow Feb 12, 2023
bf18ddd
tools/mpy-tool.py: Fix merging of more than 128 mpy files.
dpgeorge Mar 18, 2024
c9016b4
tests/basics: Split MicroPython-specific deque tests to separate file.
dpgeorge Mar 18, 2024
d92dff8
docs/library/collections: Update deque docs to describe new features.
dpgeorge Mar 18, 2024
f52b0d0
py/asm: Add ASM_NOT_REG and ASM_NEG_REG macros for unary ops.
dpgeorge Mar 18, 2024
b50efbd
py/asmxtensa: Optimise asm_xtensa_mov_reg_i32_optimised() for tiny ints.
dpgeorge Mar 18, 2024
3c445f6
py/emitnative: Implement viper unary ops positive, negative and invert.
dpgeorge Mar 18, 2024
9651046
stm32/mboot: Add support for a raw filesystem.
dpgeorge Mar 6, 2024
899592a
stm32/boards/LEGO_HUB_NO6: Move robust logic to mboot.
dpgeorge Mar 13, 2024
52c678c
stm32/boards/LEGO_HUB_NO6: Use a raw filesystem for mboot to update fw.
dpgeorge Mar 13, 2024
1c6012b
extmod/modnetwork: Implement IPv6 API to set and get NIC configuration.
felixdoerre Oct 10, 2023
77f08b7
docs/library/rp2.DMA: Add documentation for rp2 DMA support.
nickovs Dec 28, 2023
e520fa2
py/binary: Support half-float 'e' format in struct pack/unpack.
smurfix Oct 25, 2023
0c800ce
stm32/stm32.mk: Enable _Float16 support on MCUs with hardware floats.
dpgeorge Mar 19, 2024
b80607e
unix/variants: Don't use native _Float16 type.
dpgeorge Mar 19, 2024
9d27183
tests/float/float_struct_e.py: Add specific test for struct 'e' type.
dpgeorge Mar 20, 2024
71044a4
py/parse: Zero out dangling parse tree pointer to fix potential GC leak.
projectgus Mar 20, 2024
acbdbcd
esp32: Workaround IDF issue placing ISR ringbuf functions in IRAM.
jimmo Mar 21, 2024
2b8e88c
py/compile: Add option to allow compiling top-level await.
dpgeorge Jun 24, 2023
ff15dfc
webassembly: Include lib in sys.path.
dpgeorge Apr 14, 2023
8282bd9
webassembly: Move MP_JS_EPOCH init to library postset.
dpgeorge May 30, 2023
76898cb
webassembly: Implement MICROPY_PY_RANDOM_SEED_INIT_FUNC.
dpgeorge Dec 13, 2023
8e3b701
webassembly: Enable time localtime, gmtime, time, time_ns.
dpgeorge Dec 13, 2023
ae6bcc9
webassembly: Use POSIX write for output and add stderr.
dpgeorge May 31, 2023
98a8ff7
webassembly: Add support for enabling MICROPY_GC_SPLIT_HEAP_AUTO.
dpgeorge Jun 22, 2023
691cd3a
webassembly: Clean up Makefile and add variant support.
dpgeorge May 30, 2023
39bd0b8
webassembly: Add JavaScript proxying, and js and jsffi modules.
dpgeorge May 31, 2023
9b09060
webassembly: Implement runPythonAsync() for top-level async code.
dpgeorge Jun 24, 2023
625b17a
webassembly: Implement runCLI() for a Node-based CLI.
dpgeorge Feb 1, 2024
6ff3e35
webassembly: Implement replInit() and replProcessChar().
dpgeorge Mar 5, 2024
b9eb74e
webassembly/variants/pyscript: Add pyscript variant.
dpgeorge May 31, 2023
26d6969
webassembly: Update README.md to describe latest changes.
dpgeorge Mar 5, 2024
c2cf58b
webassembly/library: Fix formatting and style for Biome.
dpgeorge Mar 11, 2024
e41b571
tests/run-tests.py: Support running webassembly tests via node.
dpgeorge Feb 1, 2024
c1513a0
tests/ports/webassembly: Add webassembly JS tests.
dpgeorge Feb 1, 2024
badc010
tools/ci.sh: Update webassembly CI tests.
dpgeorge Feb 2, 2024
35b2edf
github/workflows: Add Biome workflow for JavaScript formatting/linting.
dpgeorge Feb 21, 2024
35f3f0a
py/nlr: Add "memory" to asm clobbers list in nlr_jump.
dpgeorge Mar 19, 2024
a0efe2d
esp32/main: Check if main GC heap allocation failed.
DvdGiessen Mar 11, 2024
fcaf109
top: Skip codespell for IDF managed components.
DvdGiessen Mar 15, 2024
086d4d1
extmod/network_wiznet5k: Properly enable interrupt signal on w5100s.
greezybacon Mar 20, 2024
51d05c4
tools/manifestfile.py: Fix freeze() when script is an empty iterable.
dpgeorge Mar 25, 2024
d1a3e7d
nrf/Makefile: Allow external board definitions.
cwalther Nov 26, 2023
be89d43
nrf/modules/machine: Enable code formatting.
cwalther Jan 5, 2024
b10182b
nrf: Fix non-running LFCLK.
cwalther Jan 1, 2024
5e926b2
nrf/modules/machine: Catch exceptions from pin interrupts.
cwalther Jan 5, 2024
4dd288f
nrf/modules/machine/pwm: Tag a PWM device as used in the constructor.
robert-hh Jan 22, 2024
34c4625
nrf/main: Fix build of microbit when SD is enabled.
andrewleech Mar 20, 2024
994021e
nrf/Makefile: Clean up dangling LIBS declaration.
andrewleech Mar 22, 2024
438e522
lib/arduino-lib: Add Arduino's external library.
iabdalkader Mar 13, 2024
27aa3c1
stm32/boards/ARDUINO_GIGA: Add Arduino's external library.
iabdalkader Feb 13, 2024
723cd03
stm32/boards/ARDUINO_NICLA_VISION: Add Arduino's external library.
iabdalkader Mar 13, 2024
da09646
stm32/boards/ARDUINO_PORTENTA_H7: Add Arduino's external library.
iabdalkader Mar 13, 2024
fa6ccc7
renesas-ra/boards/ARDUINO_PORTENTA_C33: Add Arduino's external library.
iabdalkader Mar 15, 2024
a0d31e5
esp8266/Makefile: Add support for C++ user C modules.
jimmo Mar 26, 2024
57de9da
docs/library/machine.RTC: Add docs for RTC.memory() method.
AmirHmZz Oct 1, 2023
d694ac6
py/makeqstrdata.py: Ensure that scope names get low qstr values.
jimmo Mar 26, 2024
79edadd
rp2/CMakeLists: Apply O2 optimisation to map, mpz and vm source code.
dpgeorge Mar 26, 2024
935f539
shared/tinyusb: Don't disconnect on soft reset unless USB was active.
projectgus Mar 27, 2024
0f16ae9
shared/tinyusb: Update some code comments for runtime USB.
projectgus Mar 27, 2024
35e8d18
shared/tinyusb: Increase default string descr max length to 40 chars.
dpgeorge Mar 27, 2024
db1b5df
stm32/README: Update list of supported STM32 series.
mattytrentini Mar 26, 2024
5a7d78c
mimxrt,stm32: Set the security mode for the default WiFi AP.
iabdalkader Mar 3, 2024
7753045
extmod: Add interface and security constants at WLAN class level.
iabdalkader Mar 3, 2024
81dff08
esp8266/network_wlan: Add interface and security WLAN constants.
iabdalkader Mar 14, 2024
e8dd519
esp32/network_wlan: Add interface and security WLAN constants.
iabdalkader Mar 14, 2024
328b6df
samd/README: Fix incorrect port directory name.
robert-hh Mar 3, 2024
b41360d
samd/boards: Enable MICROPY_HW_DFLL_USB_SYNC on appropriate boards.
robert-hh Mar 19, 2024
e8e9a39
samd/mcu: Update clock config after changes to USB.
robert-hh Mar 19, 2024
3980b36
samd/samd_spiflash: Allow configuring the flash SPI baudrate.
robert-hh Mar 20, 2024
d9b9e88
samd/samd_qspiflash: Avoid reading status byte 2 when not available.
robert-hh Mar 27, 2024
4662a71
drivers/memory: Add IS25LPWP064D chip to list of external flash devices.
robert-hh Mar 27, 2024
d2276f0
py/dynruntime: Add mp_binary_get_size/get_val_array/set_val_array.
dpgeorge Mar 25, 2024
8b0efde
examples/natmod/framebuf: Enable FrameBuffer.poly method.
dpgeorge Mar 25, 2024
bdbc869
py/persistentcode: Bump .mpy sub-version to 6.3.
dpgeorge Mar 25, 2024
628a37e
docs/reference/mpyfiles: Document change in .mpy sub-version.
dpgeorge Mar 25, 2024
c3e37d1
extmod/modtls_axtls: Add verify_mode and CERT_NONE constant.
dpgeorge Mar 28, 2024
20a86ef
tests/net_inet: Add simpler tls sites test, and skip existing on axtls.
dpgeorge Mar 28, 2024
b829450
samd/mcu: Guard static function with appropriate #if.
dpgeorge Mar 29, 2024
aa0f3eb
extmod/modopenamp: Set a default log handler for ports.
iabdalkader Mar 21, 2024
8936d3a
extmod/modopenamp: Use metal logging functions exclusively.
iabdalkader Mar 28, 2024
23d7a91
stm32/mpremoteprocport: Use metal logging functions.
iabdalkader Mar 24, 2024
87d821a
mimxrt: Add support for OpenAMP.
iabdalkader Mar 23, 2024
3997532
webassembly/proxy_c: Ensure return value of async fun is passed to JS.
dpgeorge Mar 29, 2024
7c62fbe
webassembly/proxy_js: Promote Python thenable to a Promise.
dpgeorge Mar 29, 2024
5114f2c
webassembly/proxy_js: Allow a Python proxy of a function to be undone.
dpgeorge Mar 29, 2024
53d0050
lib/arduino-lib: Update submodule to the latest.
iabdalkader Apr 11, 2024
d11ca09
shared/tinyusb: Fix dynamic USB control callbacks for wLength==0.
projectgus Apr 5, 2024
f76cf29
github/workflows: Update coverage workflow to codecov-action@v4.
neuschaefer Apr 20, 2024
19844b4
rp2/modmachine: Prevent lock-up when lightsleep() called within thread.
mungewell Mar 28, 2024
3129b69
rp2/README: Fix typo, improve sentence about building with other boards.
mbeijen Apr 2, 2024
40f7e9c
py/objfun: Fix C++ compatibility with casting in inline functions.
stinos Apr 18, 2024
ce491ab
py/obj: Fix initialiser order in MP_DEFINE_CONST_OBJ_TYPE_NARGS_ macros.
vonasmic Apr 3, 2024
4bed614
py/objarray: Fix use-after-free if extending a bytearray from itself.
projectgus Feb 12, 2024
6877987
tests/cpydiff: Add a note about risk of resizing memoryview targets.
projectgus Mar 27, 2024
49ce7a6
github/workflows: Run code size workflow on shared or port code changes.
dpgeorge Apr 22, 2024
45848f7
webassembly/api: Fix waiting for Emscripten module to be loaded.
dpgeorge Apr 24, 2024
9c7f065
webassembly/api: Allocate code data on C heap when running Python code.
dpgeorge Apr 17, 2024
4c3f5f5
webassembly/objjsproxy: Fix handling of thrown value into JS generator.
dpgeorge Apr 18, 2024
92b3b69
webassembly/proxy_c: Fix proxy then reject handling.
dpgeorge Apr 18, 2024
d998ca7
webassembly/proxy_c: Fix then-continue to convert reason to throw value.
dpgeorge Apr 18, 2024
967ad38
extmod/modasyncio: Make mp_asyncio_context variable public.
dpgeorge Apr 19, 2024
84d6f8e
webassembly/modjsffi: Add jsffi.async_timeout_ms.
dpgeorge Apr 19, 2024
8a3546b
webassembly: Add JavaScript-based asyncio support.
dpgeorge Apr 19, 2024
49af8ca
webassembly/api: Inject asyncio.run if needed by the script.
dpgeorge Apr 18, 2024
7b050b3
py/nlrthumb: Make non-Thumb2 long-jump workaround opt-in.
neuschaefer Apr 2, 2023
e60e807
nrf/mpconfigport: Enable MICROPY_NLR_THUMB_USE_LONG_JUMP on nRF51xx.
dpgeorge Apr 26, 2024
b1ac266
docs/develop/optimizations: Fix typo identified in issue 14391.
mattytrentini Apr 28, 2024
b896fa9
stm32/boards/LEGO_HUB_NO6: Write key after writing elements.
dpgeorge Apr 28, 2024
64f28dc
stm32/boards/LEGO_HUB_NO7: Add robust update logic to mboot.
dpgeorge Apr 28, 2024
d3fe0a0
stm32/flash: Fix writing final words to flash on H5 and H7 MCUs.
dpgeorge Apr 28, 2024
a7d34b6
stm32/mboot: Buffer the correct amount of bytes for a flash write.
dpgeorge Apr 28, 2024
a521df2
stm32/i2c: Fix clock enable for I2C4 on STM32F7 MCUs.
dpgeorge Mar 28, 2024
9681a66
webassembly/api: Fix importing micropython.mjs module from node REPL.
dpgeorge May 2, 2024
9da63a3
webassembly/proxy_c: Reject promises with a PythonError instance.
dpgeorge May 6, 2024
50b43fe
webassembly/proxy_c: Only proxy across resolve/reject funs when needed.
dpgeorge May 6, 2024
e860e32
webassembly/objjsproxy: Fix proxying in arguments to JS new function.
dpgeorge May 6, 2024
c056840
webassembly/objpyproxy: Implement JS iterator protocol for Py iterables.
dpgeorge May 6, 2024
be1ecb5
webassembly/api: Resolve thenables returned from runPythonAsync.
dpgeorge May 7, 2024
595f861
docs/esp32/quickref: Add note about different ESP32 varieties.
ricksorensen Dec 26, 2023
63c30a2
esp32/modesp32: Add mcu_temperature() function for C3/S2/S3 devices.
ricksorensen Dec 26, 2023
8762fe8
extmod/network_wiznet5k: Properly enable socket buffers for W5100(S).
greezybacon Apr 1, 2024
9a43989
shared/tinyusb: Stall the CDC IN endpoint while disconnecting.
projectgus May 7, 2024
c3301da
docs/library/machine.USBDevice: Update note about packages in mp-lib.
projectgus May 2, 2024
b2df89c
examples/usb: Add a very simple USBDevice example with host.
dpgeorge Apr 30, 2024
eb517a0
examples/usb: Add a USBDevice example implementing the DFU protocol.
dpgeorge Apr 30, 2024
bd610ff
examples/network: Rename SSL examples to start with https.
dpgeorge Apr 27, 2024
cc3550e
examples/network: Add example of HTTPS client using non-blocking socket.
dpgeorge Apr 27, 2024
c37eb93
webassembly/proxy_c: Support more than 4 args when JS calls Py func.
dpgeorge May 9, 2024
3f34be6
webassembly/asyncio: Fix case where a Promise is resolved with no arg.
dpgeorge May 9, 2024
a67e326
webassembly/proxy_c: Ensure objs thrown into generators are exceptions.
dpgeorge May 9, 2024
fa23e4b
webassembly/proxy_js: Convert JS undefined and JS null to Py None.
dpgeorge May 9, 2024
154d602
webassembly/mpconfigport: Enable importing of .mpy files.
dpgeorge May 14, 2024
025d10a
tests/micropython/import_mpy_invalid.py: Skip if target cant import mpy.
dpgeorge May 14, 2024
85c85e8
tools/mpremote: Add support to mip install from GitLab.
OlivierLenoir Mar 13, 2024
e816b49
docs/reference: Document how to mip install packages from GitLab.
OlivierLenoir Mar 13, 2024
abd1f28
docs/library/asyncio: Document that ThreadSafeFlag now works on unix.
dpgeorge May 15, 2024
47ae739
examples/usb: Add README that points out the alternative usb modules.
projectgus May 14, 2024
a0d4fdc
stm32/pyb_can: Fix STM32G4 FDCAN source clock frequency.
projectgus May 15, 2024
c10a74b
esp32/panichandler: Print support information on panic.
DvdGiessen Mar 13, 2024
0148bbb
webassembly/proxy_js: Revert back to converting Py None to JS null.
dpgeorge May 14, 2024
aa2e388
webassembly/proxy_js: Create a special "undefined" type for Python.
dpgeorge May 14, 2024
cfd5a8e
webassembly/proxy_c: Return undefined if dict lookup failed on JS side.
dpgeorge May 14, 2024
d7f0313
webassembly/objjsproxy: Make jsproxy_it keep ref to jsproxy.
dpgeorge May 21, 2024
ed2885f
webassembly/proxy_c: Don't return value of a void function.
dpgeorge May 21, 2024
cdaf2de
webassembly: Track the current depth of calls to external C functions.
dpgeorge May 21, 2024
c0ca4bb
webassembly: Set GC threshold and do top-level GC collect when possible.
dpgeorge May 21, 2024
5c7a414
webassembly: Add C-level finaliser to JsProxy object.
dpgeorge May 21, 2024
57a9ffa
webassembly: Register PyProxy objects for JS-side finalisation.
dpgeorge May 21, 2024
a919ce2
webassembly/modjsffi: Add mem_info function to get detailed stats.
dpgeorge May 21, 2024
482292c
py/dynruntime: Add mp_obj_exception_init function to create C exception.
dpgeorge May 17, 2024
d532f96
examples/natmod/features4: Create custom FactorialError as exc example.
dpgeorge May 17, 2024
b1e9602
extmod/modlwip: Use Nagle algorithm and add support for TCP_NODELAY.
greezybacon Mar 18, 2024
a196468
esp32: Add support for TCP_NODELAY.
May 24, 2024
c624a5c
py/dynruntime: Export mp_load_method_maybe and mp_arg_parse_all* funcs.
BrianPugh Apr 19, 2024
df41913
examples/natmod/btree: Make btree.open use mp_arg_parse_all for kwargs.
dpgeorge May 24, 2024
5d07d0c
tests/run-natmodtests.py: Fix search for supported native tests.
dpgeorge May 27, 2024
fbf8114
tools/ci.sh: Simplify selection of natmod tests to run.
dpgeorge May 27, 2024
c0a25a6
extmod/modos: Only sync FAT filesystems using disk_ioctl.
dpgeorge May 27, 2024
1ea06b9
tests/extmod: Fix regex strings to be of r"" type.
dpgeorge May 27, 2024
2e85252
tests/extmod: Add .exp test files for asyncio.get_event_loop tests.
dpgeorge May 27, 2024
1a2fdca
tests/basics: Split out generator.throw tests that pass multiple args.
dpgeorge May 27, 2024
e1111d8
tests/net_hosted/ssl_verify_callback.py: Make exp match actual output.
dpgeorge May 27, 2024
a34b5d1
tests/net_inet/tls_text_errors.py: Tweak test for newer CPython version.
dpgeorge May 27, 2024
03cf4d4
rp2/boards/W5500_EVB_PICO: Update incorrect url in board.json.
mattytrentini May 26, 2024
8a8c65f
lib/micropython-lib: Update submodule to latest.
dpgeorge May 27, 2024
5f6e689
LICENSE,docs: Update copyright year range to include 2024.
dpgeorge May 27, 2024
ad6750b
tests/float: Use "not" instead of ~ to invert bool value.
dpgeorge May 28, 2024
dd4767a
tests/basics: Add .exp file for slice_op test.
dpgeorge May 28, 2024
30a9ccf
tests/basics: Move str/bytes tests that give SyntaxWarning to sep file.
dpgeorge May 28, 2024
a61c446
all: Bump version to 1.23.0.
dpgeorge May 31, 2024
ac7e15f
(only) reserve merge conflicts
dhalbert Aug 28, 2024
1e1a800
change remaining STATIC to static
dhalbert Sep 3, 2024
c06c43e
extmod/vfs_fat.c: _FS_REENTRANT -> FF_FS_REENTRANT
dhalbert Sep 3, 2024
7812695
non-conflict merge changes
dhalbert Sep 4, 2024
bc6f065
working on compilation errors
dhalbert Sep 7, 2024
9c43fd9
update ulab; remove ports/samd remnant
dhalbert Sep 9, 2024
94b4867
avoid linker error: use MICROPY_NLR_THUMB_USE_LONG_JUMP; update trans…
dhalbert Sep 9, 2024
ffaabeb
shared/runtime/pyexec.c: fix merge error
dhalbert Sep 9, 2024
54ff754
py/emitglue.c: add is_async
dhalbert Sep 9, 2024
27effe6
tools/mpy-tools.py: add .is_async; fix casting align issue
dhalbert Sep 9, 2024
c0020df
lib/cmsis: revert to previous version, to avoid new compilation errors.
dhalbert Sep 9, 2024
6cdd453
remove ports/webassembly
dhalbert Sep 9, 2024
84cf30f
ports/silabs and lib/protomatter: STATIC -> static
dhalbert Sep 9, 2024
02e11a9
fix compilation issues; remove more uctypes mentions
dhalbert Sep 10, 2024
0c26a11
fix tests; asyncio: avoid coroutine never awaited
dhalbert Sep 10, 2024
1f68fff
merge from main
dhalbert Sep 10, 2024
513d703
remove micropython CI actions
dhalbert Sep 10, 2024
1c2eb47
pre-commit format check: ignore *.py in ports/unix
dhalbert Sep 10, 2024
d220557
fix doc build problems
dhalbert Sep 10, 2024
4832683
restore tests/unix; deleted by mistake
dhalbert Sep 10, 2024
50f0101
revert to using os.mount, etc. instead of vfs.mount
dhalbert Sep 10, 2024
f40c2cb
py/mpstate.h: remove permanent_pointers (unused)
dhalbert Sep 12, 2024
b65d9e7
restore async scope flag to previous bit position
dhalbert Sep 12, 2024
c0a3e28
tests/run-natmodtests.py: remove use of zlib examples
dhalbert Sep 13, 2024
757e91f
also fix natmod tests in run-tests.yml
dhalbert Sep 13, 2024
05825a0
fix raw_code is_generator and is_async
dhalbert Sep 13, 2024
2679916
turn off native module testing for now
dhalbert Sep 13, 2024
d777cd7
Merge remote-tracking branch 'adafruit/main' into merge-micropython-v…
dhalbert Sep 13, 2024
ebdf339
turn off ulab.numpy.random, which is large
dhalbert Sep 13, 2024
5caa701
shrink some builds
dhalbert Sep 13, 2024
4a5624a
rename macro to MP_DEFINE_BYTES_OBJ_WITH_NULL to avoid conflict (and …
dhalbert Sep 13, 2024
3abd4e4
revert lib/mbedtls_errors/mp_mbedtls_errors.c to previous version
dhalbert Sep 13, 2024
49fca3f
more board shrinking, and fix STATIC from merge
dhalbert Sep 14, 2024
380d76b
py/objfun.h: prevent cast-align warnings
dhalbert Sep 14, 2024
b225a3a
HELP_BUILD_ERROR: link to Learn Guide
dhalbert Sep 15, 2024
4cbd8ae
Update ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.mk
dhalbert Sep 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# all: Prune trailing whitespace.
dda9b9c6da5d3c31fa8769e581a753e95a270803

# all: Remove the "STATIC" macro and just use "static" instead.
decf8e6a8bb940d5829ca3296790631fcece7b21

# renesas-ra: Fix spelling mistakes found by codespell.
b3f2f18f927fa2fad10daf63d8c391331f5edf58

# all: Update Python formatting to ruff-format.
bbd8760bd9a2302e5abee29db279102bb11d7732

Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ jobs:
run: ./run-tests.py -j4 --print-failures
if: failure()
working-directory: tests
- name: Build native modules
if: matrix.test == 'all'
run: |
make -C examples/natmod/features1
make -C examples/natmod/features2
make -C examples/natmod/heapq
make -C examples/natmod/random
make -C examples/natmod/re
- name: Test native modules
if: matrix.test == 'all'
run: ./run-natmodtests.py extmod/{heapq*,re*,zlib*}.py
working-directory: tests
# Not working after MicroPython v1.23 merge.
# - name: Build native modules
# if: matrix.test == 'all'
# run: |
# make -C examples/natmod/features1
# make -C examples/natmod/features2
# make -C examples/natmod/heapq
# make -C examples/natmod/random
# make -C examples/natmod/re
# - name: Test native modules
# if: matrix.test == 'all'
# run: ./run-natmodtests.py extmod/{heapq*,random*,re*}.py
# working-directory: tests
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
url = https://github.com/atgreen/libffi
[submodule "lib/berkeley-db-1.xx"]
path = lib/berkeley-db-1.xx
url = https://github.com/pfalcon/berkeley-db-1.xx
url = https://github.com/micropython/berkeley-db-1.xx
[submodule "tools/uf2"]
path = tools/uf2
url = https://github.com/Microsoft/uf2.git
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ THE SOFTWARE.

--------------------------------------------------------------------------------

#CIRCUITPY-CHANGE:
# CIRCUITPY-CHANGE:

Unless specified otherwise (see below), the above license and copyright applies
to all files derived from MicroPython in this repository.
Expand Down
13 changes: 8 additions & 5 deletions LICENSE_MicroPython
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2022 Damien P. George
Copyright (c) 2013-2024 Damien P. George

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -35,9 +35,7 @@ used during the build process and is not part of the compiled source code.

/ (MIT)
/drivers
/cc3000 (BSD-3-clause)
/cc3100 (BSD-3-clause)
/wiznet5k (BSD-3-clause)
/lib
/asf4 (Apache-2.0)
/axtls (BSD-3-clause)
Expand All @@ -50,24 +48,31 @@ used during the build process and is not part of the compiled source code.
/cmsis (BSD-3-clause)
/crypto-algorithms (NONE)
/libhydrogen (ISC)
/libmetal (BSD-3-clause)
/littlefs (BSD-3-clause)
/lwip (BSD-3-clause)
/mynewt-nimble (Apache-2.0)
/nrfx (BSD-3-clause)
/nxp_driver (BSD-3-Clause)
/oofatfs (BSD-1-clause)
/open-amp (BSD-3-clause)
/pico-sdk (BSD-3-clause)
/re15 (BSD-3-clause)
/stm32lib (BSD-3-clause)
/tinytest (BSD-3-clause)
/tinyusb (MIT)
/uzlib (Zlib)
/wiznet5k (MIT)
/logo (uses OFL-1.1)
/ports
/cc3200
/hal (BSD-3-clause)
/simplelink (BSD-3-clause)
/FreeRTOS (GPL-2.0 with FreeRTOS exception)
/esp32
/ppp_set_auth.* (Apache-2.0)
/rp2
/mutex_extra.c (BSD-3-clause)
/stm32
/usbd*.c (MCD-ST Liberty SW License Agreement V2)
/stm32_it.* (MIT + BSD-3-clause)
Expand All @@ -77,8 +82,6 @@ used during the build process and is not part of the compiled source code.
/*/stm32*.h (BSD-3-clause)
/usbdev (MCD-ST Liberty SW License Agreement V2)
/usbhost (MCD-ST Liberty SW License Agreement V2)
/teensy
/core (PJRC.COM)
/zephyr
/src (Apache-2.0)
/tools
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Adafruit's CircuitPython Documentation
Adafruit CircuitPython Documentation
=========================

The latest documentation can be found at:
Expand Down
16 changes: 9 additions & 7 deletions docs/library/collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,37 @@ Classes

- *flag* is optional and can be set to 1 to check for overflow when
adding items. If the deque is full and overflow checking is enabled,
an IndexError will be raised when adding items.
an ``IndexError`` will be raised when adding items.

Deque objects have the following methods:

.. method:: deque.append(x)

Add *x* to the right side of the deque.
Raises IndexError if overflow checking is enabled and there is no more room left.
Raises ``IndexError`` if overflow checking is enabled and there is
no more room in the queue.

.. method:: deque.appendleft(x)

Add *x* to the left side of the deque.
Raises IndexError if overflow checking is enabled and there is no more room left.
Raises ``IndexError`` if overflow checking is enabled and there is
no more room in the queue.

.. method:: deque.pop()

Remove and return an item from the right side of the deque.
Raises IndexError if no items are present.
Raises ``IndexError`` if no items are present.

.. method:: deque.popleft()

Remove and return an item from the left side of the deque.
Raises IndexError if no items are present.
Raises ``IndexError`` if no items are present.

.. method:: deque.extend(iterable)

Extend the right side of the deque by appending items from the *iterable* argument.
Extend the right side of the deque by appending items from the ``iterable`` argument.
Raises IndexError if overflow checking is enabled and there is no more room left
for all of the items in *iterable*.
for all of the items in ``iterable``.

In addition to the above, deques support iteration, ``bool``, ``len(d)``, ``reversed(d)``,
membership testing with the ``in`` operator, and subscript references like ``d[0]``.
Expand Down
Loading