From a9f190fb08329758f211e7491182f235b17d4a64 Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 19:52:51 +0200 Subject: [PATCH 1/8] Testing missing dependency --- .github/workflows/python-publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4a31c696ec..d8b843fa94 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -3,9 +3,10 @@ name: Upload archinstall to PyPi -on: - release: - types: [ published ] +# on: +# release: +# types: [ published ] +on: [ push, pull_request ] jobs: deploy: @@ -26,6 +27,7 @@ jobs: pacman --noconfirm -Sy archlinux-keyring pacman --noconfirm -Syyu pacman --noconfirm -Sy python-uv python-setuptools python-pip + pacman --noconfirm -Sy python-pyparted python-pydantic - name: Build archinstall run: | uv build --no-build-isolation --wheel From ac1de26b19c64e547e0bb28cb86a52896cce07ac Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 19:55:14 +0200 Subject: [PATCH 2/8] Testing missing dependency --- .github/workflows/python-publish.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d8b843fa94..8c063f78c5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -28,9 +28,5 @@ jobs: pacman --noconfirm -Syyu pacman --noconfirm -Sy python-uv python-setuptools python-pip pacman --noconfirm -Sy python-pyparted python-pydantic - - name: Build archinstall - run: | uv build --no-build-isolation --wheel - - name: Publish archinstall to PyPi - run: | uv publish --trusted-publishing always From 41e606f8c0f67f0c3293262304e1c46e9ed1ef7b Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 19:59:35 +0200 Subject: [PATCH 3/8] Testing missing dependency --- .github/workflows/python-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 8c063f78c5..d8b843fa94 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -28,5 +28,9 @@ jobs: pacman --noconfirm -Syyu pacman --noconfirm -Sy python-uv python-setuptools python-pip pacman --noconfirm -Sy python-pyparted python-pydantic + - name: Build archinstall + run: | uv build --no-build-isolation --wheel + - name: Publish archinstall to PyPi + run: | uv publish --trusted-publishing always From 6521d7cd677935dbec615ff18766fba9f6e8734a Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 20:01:16 +0200 Subject: [PATCH 4/8] Testing missing dependency --- .github/workflows/python-publish.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d8b843fa94..34ec3f31eb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,17 +17,12 @@ jobs: options: --privileged steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - name: Set up Python - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: '3.x' - name: Prepare arch run: | pacman-key --init pacman --noconfirm -Sy archlinux-keyring pacman --noconfirm -Syyu - pacman --noconfirm -Sy python-uv python-setuptools python-pip - pacman --noconfirm -Sy python-pyparted python-pydantic + pacman --noconfirm -Sy python python-uv python-setuptools python-pip python-pyparted python-pydantic - name: Build archinstall run: | uv build --no-build-isolation --wheel From 5c7f857a87555321b2f9abe5a51a654bb75ff854 Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 20:10:20 +0200 Subject: [PATCH 5/8] Testing release again --- .github/workflows/python-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 34ec3f31eb..56ef749d6d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -6,6 +6,7 @@ name: Upload archinstall to PyPi # on: # release: # types: [ published ] + on: [ push, pull_request ] jobs: From d41ef156b95f562815e28452d3c50bece8d565cd Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 20:15:54 +0200 Subject: [PATCH 6/8] Testing release again --- .github/workflows/python-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 56ef749d6d..62c701a7f8 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -13,6 +13,9 @@ jobs: deploy: runs-on: ubuntu-latest + permissions: + # IMPORTANT: this permission is mandatory for Trusted Publishing + id-token: write container: image: archlinux/archlinux:latest options: --privileged From 1c5e3b0440ad2685ed345eec58f776116bdf4e78 Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 20:17:59 +0200 Subject: [PATCH 7/8] Testing release again --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7c71f667b5..b601b98514 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ classifiers = [ "Operating System :: POSIX :: Linux", ] dependencies = [ - "pyparted @ https://github.com//dcantrell/pyparted/archive/v3.13.0.tar.gz#sha512=26819e28d73420937874f52fda03eb50ab1b136574ea9867a69d46ae4976d38c4f26a2697fa70597eed90dd78a5ea209bafcc3227a17a7a5d63cff6d107c2b11", + "pyparted>=3.13.0", "pydantic==2.11.4", "cryptography>=44.0.2", ] From ca1a1d0148470c7ca28dfe17d738a1347aee91ec Mon Sep 17 00:00:00 2001 From: Torxed Date: Wed, 21 May 2025 20:20:34 +0200 Subject: [PATCH 8/8] Updated pypi release by also removing the pyparted hardcoded github version link --- .github/workflows/python-publish.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 62c701a7f8..d074678884 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -3,11 +3,9 @@ name: Upload archinstall to PyPi -# on: -# release: -# types: [ published ] - -on: [ push, pull_request ] +on: + release: + types: [ published ] jobs: deploy: