From 8475e3e5bac82d8c6514d4fff3c1e4a80b49c2b7 Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 31 Aug 2024 22:35:52 +0000 Subject: [PATCH 1/3] Fix pex --- .github/workflows/pex-build-upload.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pex-build-upload.yml b/.github/workflows/pex-build-upload.yml index 29fc1326a..533d09968 100644 --- a/.github/workflows/pex-build-upload.yml +++ b/.github/workflows/pex-build-upload.yml @@ -11,7 +11,6 @@ on: jobs: pex_build_publish: - if: false # disable as this is not working with multiple python versions runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From b75547eef5be27a3eca3197ce532a6eff470ba1e Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 31 Aug 2024 22:40:33 +0000 Subject: [PATCH 2/3] setup multiple versions --- .github/workflows/pex-build-upload.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pex-build-upload.yml b/.github/workflows/pex-build-upload.yml index 533d09968..e5c665d24 100644 --- a/.github/workflows/pex-build-upload.yml +++ b/.github/workflows/pex-build-upload.yml @@ -22,6 +22,10 @@ jobs: uses: actions/setup-python@v5 with: cache: 'pip' + python-version: | + 3.10 + 3.11 + 3.12 - name: Install libraries dependencies run: | poetry export --without-hashes --format=requirements.txt > requirements.txt From a65defd1b8a4f38c3bf1d2512b266538a474d96b Mon Sep 17 00:00:00 2001 From: Alessandro De Maria Date: Sat, 31 Aug 2024 22:49:49 +0000 Subject: [PATCH 3/3] run binary to make sure it works --- .github/workflows/pex-build-upload.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pex-build-upload.yml b/.github/workflows/pex-build-upload.yml index e5c665d24..af992258e 100644 --- a/.github/workflows/pex-build-upload.yml +++ b/.github/workflows/pex-build-upload.yml @@ -17,7 +17,7 @@ jobs: - name: Install poetry run: |- pipx install poetry - pipx inject poetry poetry-plugin-export + pipx inject poetry poetry-plugin-export --force - name: Set up Python uses: actions/setup-python@v5 with: @@ -47,6 +47,7 @@ jobs: --python=python3.12 \ -m kapitan \ -o dist/kapitan.linux-x86_64.pex + dist/kapitan.linux-x86_64.pex --help - name: Add linux-x86_64 pex to assets uses: softprops/action-gh-release@v2