From bde634cd6064784e77620f26f52202494fb659ec Mon Sep 17 00:00:00 2001 From: Samuel Lijin Date: Thu, 5 Dec 2024 11:31:23 -0800 Subject: [PATCH] fix: get python release working again (#1218) > [!IMPORTANT] > Pin `maturin` version to `1.7.6` in GitHub Actions to fix Python release issues. > > - **GitHub Actions Workflow**: > - Pin `maturin` version to `1.7.6` in `.github/workflows/build-python-release.reusable.yaml` to fix release issues with `gh-action-pypi-publish`. > - Added comments explaining the issue with `maturin` versions `1.7.7+` and links to related issues and changelogs. > > This description was created by [Ellipsis](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral) for 11050069254ab4ca51bcad5c68617a2d87a06b66. It will automatically update as commits are pushed. --- .github/workflows/build-python-release.reusable.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-python-release.reusable.yaml b/.github/workflows/build-python-release.reusable.yaml index 89caa920c..cc4338e8c 100644 --- a/.github/workflows/build-python-release.reusable.yaml +++ b/.github/workflows/build-python-release.reusable.yaml @@ -65,6 +65,13 @@ jobs: env: ${{ matrix._.env || fromJSON('{}') }} with: target: ${{ matrix._.target }} + # TODO: unpin the maturin version + # 1.7.7+ builds wheels that gh-action-pypi-publish can't upload + # see: + # - release failure: https://github.com/BoundaryML/baml/actions/runs/12154379580/job/33894619438 + # - maturin changelog: https://github.com/PyO3/maturin/blob/ba4d482809a73669242bd7fe7dd5f9106f42702f/Changelog.md?plain=1#L13 + # - gh-action-pypi-publish issue: https://github.com/pypa/gh-action-pypi-publish/issues/310 + maturin-version: "1.7.6" command: build # building in engine/ ensures that we pick up .cargo/config.toml working-directory: engine