Skip to content

Commit

Permalink
update for mpy-cross v6.2
Browse files Browse the repository at this point in the history
- New package name/module name/etc.
- Update micropython submodule to v1.22.
  • Loading branch information
dlech committed May 4, 2024
1 parent a3eaf08 commit aa4d86d
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Build and upload to PyPI
on:
push:
branches:
- mpy-cross-v6.1
- mpy-cross-v6.2
tags:
- mpy-cross-v6.1/*
- mpy-cross-v6.2/*
pull_request:
branches:
- mpy-cross-v6.1
- mpy-cross-v6.2

jobs:
build_wheels:
Expand Down Expand Up @@ -71,4 +71,4 @@ jobs:
- uses: pypa/gh-action-pypi-publish@v1.8.14
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN3 }}
password: ${{ secrets.PYPI_TOKEN4 }}
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "micropython"]
path = micropython
url = https://github.com/pybricks/micropython.git
branch = python-mpy-cross-v6.1
branch = python-mpy-cross-v6.2
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ recursive-include micropython py/** mpy-cross/** shared/** tools/**
include micropython/docs/conf.py
prune micropython/mpy-cross/build*
prune micropython/ports*
exclude src/mpy_cross_v6.1/mpy-cross*
prune src/mpy_cross_v6.1.egg-info
exclude src/mpy_cross_v6.2/mpy-cross*
prune src/mpy_cross_v6.2.egg-info
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ For MicroPython 1.19:

pip install mpy-cross-v6

For MicroPython 1.20+:
For MicroPython 1.20 to 1.21:

pip install mpy-cross-v6.1

For MicroPython 1.22:

pip install mpy-cross-v6.2
2 changes: 1 addition & 1 deletion micropython
Submodule micropython updated 2807 files
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "mpy-cross-v6.1"
version = "1.0.1"
name = "mpy-cross-v6.2"
version = "1.0.0"
description = "Python wrapper for the mpy-cross tool from MicroPython."
readme = "README.md"

[project.scripts]
"mpy-cross-v6.1" = "mpy_cross_v6_1:_run"
"mpy-cross-v6.2" = "mpy_cross_v6_2:_run"

[tool.setuptools.packages.find]
where = ["src"]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def run(self):

subprocess.check_call(make_command)

shutil.copy(str(mpy_cross_exe), self.build_lib + "/mpy_cross_v6_1")
shutil.copy(str(mpy_cross_exe), self.build_lib + "/mpy_cross_v6_2")


class custom_install(install):
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tests/test_mpy_cross.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import struct

from mpy_cross_v6_1 import mpy_cross_compile, mpy_cross_version
from mpy_cross_v6_2 import mpy_cross_compile, mpy_cross_version


def test_compile_no_opts():
Expand Down Expand Up @@ -38,4 +38,4 @@ def test_compile_with_syntax_error():
def test_version():
ver = mpy_cross_version()

assert "mpy-cross emitting mpy v6" in ver
assert "mpy-cross emitting mpy v6.2" in ver

0 comments on commit aa4d86d

Please sign in to comment.