micropython/tools
Jim Mussared 3bf70f16e9 py/mkrules.mk: Add MICROPY_PREVIEW_VERSION_2.
This provides a way to enable features and changes slated for MicroPython
2.x, by running `make MICROPY_PREVIEW_VERSION_2=1`. Also supported for
the cmake ports (except Zephyr).

This is an alternative to having a 2.x development branch (or equivalently,
keeping a 1.x release branch). Any feature or change that needs to be
"hidden" until 2.x can use this flag (either in the Makefile or the
preprocessor).

A good example is changing function arguments or other public API features,
in particular to aid in improving consistency between ports.

When `MICROPY_PREVIEW_VERSION_2` is enabled, the REPL banner is amended to
say "MicroPython (with v2.0 preview) vX.Y.Z", and sys.implementation gets a
new field `_v2` set to `True`.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-10-27 15:28:46 +11:00
..
autobuild all: Switch to new preview build versioning scheme. 2023-10-06 12:10:14 +11:00
mpremote all: Switch to new preview build versioning scheme. 2023-10-06 12:10:14 +11:00
.gitattributes
.gitignore
cc1
ci.sh py/mkrules.mk: Add MICROPY_PREVIEW_VERSION_2. 2023-10-27 15:28:46 +11:00
codeformat.py
codestats.sh
dfu.py
file2h.py
gen-changelog.sh
gen-cpydiff.py
hci_trace_to_pcap.py
insert-usb-ids.py
makemanifest.py
manifestfile.py docs,tools: Change remaining "urequests" references to "requests". 2023-10-05 14:04:45 +11:00
metrics.py tools/metrics.py: Fix esp32 and esp8266 board names after renaming. 2023-10-04 15:44:25 +11:00
mpy-tool.py py/persistentcode: Bump .mpy sub-version. 2023-10-16 11:25:31 +11:00
mpy_bin2res.py
mpy_cross_all.py
mpy_ld.py py/persistentcode: Bump .mpy sub-version. 2023-10-16 11:25:31 +11:00
pyboard.py
pydfu.py
tinytest-codegen.py
uf2conv.py
uf2families.json
uncrustify.cfg
verifygitlog.py