Commit graph

4873 commits

Author SHA1 Message Date
fbb15cbfa5 put special stuff in the standard variant
.. we aren't really gonna care about coverage
2025-08-16 21:52:48 -05:00
b043cf04b6 these files should not have been added 2025-08-16 21:52:05 -05:00
ba2e62c5a0 point this script at our own docker image 2025-08-16 21:51:33 -05:00
bcbc8719a3 Add forgejo actions
This covers just the "main" target but proves that everything
could work in the case of an orderly departure from github.
2025-08-16 21:51:21 -05:00
ed2a307236 update region example 2025-08-11 18:58:49 -05:00
4ee91be060 update moire example 2025-08-11 18:57:02 -05:00
ab8bc6fdfc Correct NIL_WINDOW & kMoveToFront definition
Short version, I think this is another pointer vs handle problem.
Unfortunately, it's something the type system doesn't catch on
to.
2025-08-11 18:54:02 -05:00
be1c7dc0dc Update two examples
they work on my machine, really!
2025-08-11 14:30:42 -05:00
0f0ee8ac2b add moire example 2025-08-11 11:53:16 -05:00
90e5da4b29 Enable machine module with ShowConsole/HideConsole functions
note: the console will also be shown whenever an attempt to read
from stdin occurs
2025-08-10 19:51:27 -05:00
13431d831b always show console window 2025-08-10 19:34:00 -05:00
643cb31bf3 TETextBox example 2025-08-10 19:33:16 -05:00
82c617a259 add two new tests for regressions reported by @smallsco 2025-08-10 19:25:23 -05:00
Scott Small
1e37f28438
add FlyingLine demo 2025-08-10 13:27:28 -07:00
370c824e0e fix hattrib 2025-07-31 22:05:37 -05:00
ac08602581 copy examples to distribution disk 2025-07-31 22:05:32 -05:00
756e495c18 move code.py to examples 2025-07-31 21:55:23 -05:00
b7b5d9db06 tweak the example to print region bounding box 2025-07-31 16:25:58 -05:00
e188517863 Continue improving defs
& do some testing of mkapi-generated bindings
2025-07-31 15:52:17 -05:00
2755292684 do a region demo to check it works
adapted from Inside Macintosh Volume I page 182
2025-07-31 15:13:22 -05:00
b904874f2a fix uctpyes type of scalar aggregates 2025-07-31 15:13:22 -05:00
546d03db12 Fix from_struct_helper for "untyped structs" 2025-07-31 15:13:22 -05:00
519d90d928 Switch to our own docker image
.. it has the packages needed to `make mkapi` preinstalled.
2025-07-31 15:13:22 -05:00
6d16c8d3fe core: Add MP_BUFFER_GET_BASE
This flag requests that the filled bufinfo give the associated
GC base address, for classes like memoryview & uctypes that need
it in order to ensure liveness of the data they refer to.

I had initially hoped that this would be a forward compatible
change, but the practice of checking `flags == MP_BUFFER_READ`
means it's not, so I might as well make it unconditional. But,
here, it's an intermediate step that passed the tests.
2025-07-20 13:30:02 -05:00
a06e973ddc add textedit 2025-07-20 11:44:21 -05:00
baf7f06650 Delegate to docker-run.sh for docker-build 2025-07-20 10:56:39 -05:00
66c8cdd388 m68kmac: Add deskmgr, dialogmgr, fontmgr, menumgr
.. & sort the module list

Note that routines in the "needs-glue" list are not wrapped.
2025-07-20 09:58:25 -05:00
a6531ef7f1 mkapi: Add field name to typeerrors 2025-07-18 15:27:29 -05:00
6632d33688 update README 2025-07-18 15:26:23 -05:00
1d3bf9f19b m68kmac: Wrap many core parts of the OS.
This is enough to create a window & draw to it! 🎉

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-17 20:55:38 -05:00
a80f00bac2 export tx_strn
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-17 20:45:47 -05:00
61a679fdd4 README: these turned into Issues.
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-17 20:45:46 -05:00
c50a2dde87 modtime: Speculative fix
The RTC time needs to be converted
to the micropython epoch time.
2025-07-07 19:11:00 +01:00
c98fe8262e mkapi: fix DrawText 2025-07-07 19:10:45 +01:00
0f08dfa1b6 console: Save pen state too
.. and lump portSetter with fontSetup,
it's a mistake to use the latter
without the former.
2025-07-07 19:10:20 +01:00
7dacf1bd8c update submodule 2025-07-07 19:09:44 +01:00
ff8682c2c7 Improve arrow key handling
This is verified to still work on infinite mac
as well as in a modified umac.
2025-07-07 09:27:58 +01:00
64346ff800 Quiet down mkapi output 2025-07-07 09:25:11 +01:00
7e94850e71 Doc improvements, build improvements 2025-07-06 17:15:20 +01:00
7a75037b39 m68kmac: Add a port to m68k Macintosh.
This is lightly tested with umac emulating a 4MB Macintosh Plus.
2025-07-06 16:42:28 +01:00
4629294ca7 nrf: Can't list format plugin on linker commandline.
.. so filter it out, similar to stm32.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 08:55:03 +01:00
8c42a164ca stm32: Don't list format plugin on linker commandline.
It causes an error, so filter it out, similar to other compile-only
flags.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 08:24:57 +01:00
16d34d4700 coverage: Avoid type checking an invalid string.
we still want this not to crash a runtime but the
new static checker wouldn't like it.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 08:24:06 +01:00
b8b61636a9 stm32: Add casts when printing small integers.
All these arguments are of type `mp_{u,}int_t`, but the actual
value is always a small integer. Cast it so that it can format
with the %d/%u formatter.

Before, the compiler plugin produced an error in the PYBD_SF6
build, which is a nanboxing build with 64-bit ints.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 08:24:03 +01:00
dc3cb7eb91 coverage: Cast values to int for printing.
During the coverage test, all the values encountered are within the
range of %d.

These locations were found using an experimental gcc plugin
for mp_printf error checking.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-05 16:34:37 +01:00
15065adf56 coverage: Provide argmuents of expected types.
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-05 16:34:37 +01:00
c675651902 coverage: Cast type names to qstr explicitly.
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-05 16:34:37 +01:00
Daniël van de Giessen
431b79146e esp32/panichandler: Support building against IDFv5.4.2.
The IDF panic handler resets the watchdog timeout to prevent the printing
of the error message from being cut off by a WDT reset.  We use the exact
same function call in our wrapper function for the same purpose.

In IDFv5.4.2 the function used for this was changed from
`esp_panic_handler_reconfigure_wdts` to `esp_panic_handler_feed_wdts`,
specifically in this commit:
cd887ef59a

Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
2025-07-06 00:14:10 +10:00
f33f1aa9d3 unix/coverage: Initialize more code_state fields.
When `MICROPY_PY_SYS_SETTRACE` was enabled, a crash was seen in the
qemu_mips build.  It seems likely that this was due to these added fields
not being initialized.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 00:06:14 +10:00
fcfed6a0ea unix/variants/coverage: Enable sys.settrace.
The unix coverage variant should have all features enabled, so they can be
tested for coverage.  Therefore, enabled `MICROPY_PY_SYS_SETTRACE`.

Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-06 00:04:18 +10:00