-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove MicroPython compatibility code (#3184)
- Loading branch information
Showing
22 changed files
with
14 additions
and
717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,71 +141,6 @@ jobs: | |
if-no-files-found: error | ||
include-hidden-files: true | ||
|
||
micropython: | ||
name: MicroPython compatibility | ||
runs-on: ubuntu-latest | ||
needs: [ pre-commit, towncrier, package ] | ||
steps: | ||
- name: Build MicroPython | ||
id: micropython | ||
run: | | ||
# The following script also works on macOS, except that due to a bug, | ||
# threading must be enabled, i.e. THREAD must be omitted from the disabled | ||
# feature list. | ||
cd $RUNNER_TEMP | ||
git clone https://github.com/micropython/micropython -b v1.24.0 --depth 1 | ||
# Create a variant with the same configuration as the PyScript build. | ||
cd micropython/ports/unix | ||
cp -a variants/standard variants/pyscript | ||
grep require ../webassembly/variants/pyscript/manifest.py \ | ||
>> variants/pyscript/manifest.py | ||
for feature in BTREE FFI SOCKET SSL TERMIOS THREAD; do | ||
echo "MICROPY_PY_$feature = 0" >> variants/pyscript/mpconfigvariant.mk | ||
done | ||
export VARIANT=pyscript | ||
make submodules | ||
make -j $(nproc) | ||
echo "executable=$(pwd)/build-pyscript/micropython" >> $GITHUB_OUTPUT | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: "3.13" | ||
|
||
- name: Get Core Package | ||
uses: actions/[email protected] | ||
with: | ||
name: Packages-toga-core | ||
path: dist | ||
|
||
- name: Get Travertino Package | ||
uses: actions/[email protected] | ||
with: | ||
name: Packages-toga-travertino | ||
path: dist | ||
|
||
- name: Test | ||
run: | | ||
# We don't *explicitly* install the Travertino wheel; we provide the dist dir | ||
# as a source of wheels, and rely on pip to resolve the explicit version match | ||
# to the travertino wheel in that folder. | ||
pip install --find-links ./dist dist/toga_core-*.whl | ||
site_packages=$(python -c ' | ||
import sys | ||
print([path for path in sys.path if "site-packages" in path][0]) | ||
') | ||
cd core | ||
export MICROPYPATH="$site_packages:.frozen" | ||
${{ steps.micropython.outputs.executable }} micropython_check.py | ||
core-and-travertino-coverage: | ||
name: "Coverage: ${{ matrix.package }}" | ||
needs: core-and-travertino | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
MicroPython compatibility | ||
Initial MicroPython compatibility code was added. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MicroPython compatibility code was removed. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.