From a1a284e4d5fd2b0af41f915b2dfbcef7f247744d Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 31 Jul 2023 18:23:45 +0100 Subject: [PATCH] build shiv .pyz app for mac py311 and publish to github release I may try to use this for a fontmake export plugin for Glyphs.app.. --- .github/workflows/ci.yml | 7 ++++++- build_pyz.sh | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61b11bf2..ec98837c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel twine shiv - name: Extract release notes from annotated tag message id: release_notes env: @@ -108,6 +108,10 @@ jobs: fi python setup.py sdist bdist_wheel twine upload dist/* + - name: Create .pyz + # currently this only builds a self-contained zip app for macOS python 3.11 only + # to be used for fontmake export plugin for Glyphs.app + run: ./build_pyz.sh - name: Create GitHub release id: create_release uses: ncipollo/release-action@v1 @@ -115,3 +119,4 @@ jobs: bodyFile: "${{ runner.temp }}/release_notes.md" draft: false prerelease: ${{ env.IS_PRERELEASE }} + artifacts: "shiv/*.zip" diff --git a/build_pyz.sh b/build_pyz.sh index 2f582611..25b954ca 100755 --- a/build_pyz.sh +++ b/build_pyz.sh @@ -5,7 +5,7 @@ set -x HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -PLATFORMS=(macosx_11_0_universal2 win_amd64) +PLATFORMS=(macosx_11_0_universal2) # win_amd64) PYTHON_VERSIONS=(3.11) FONTMAKE_VERSION="$(python setup.py --version)"