From 775f4c8540e0908ce6fdd28f647c7a6418140428 Mon Sep 17 00:00:00 2001 From: WT-MM Date: Sun, 10 Nov 2024 13:11:51 -0800 Subject: [PATCH 1/3] add sdist --- .github/workflows/publish.yml | 12 ++++++++++++ Cargo.toml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a24a7ad..87db886 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -58,6 +58,18 @@ jobs: CARGO_NET_GIT_FETCH_WITH_CLI=true run: cibuildwheel --output-dir dist + - name: Build sdist + run: python setup.py sdist + shell: bash + + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: artifacts-${{ matrix.os }} + path: | + dist/*.whl + dist/*.tar.gz + - name: Upload wheel artifacts uses: actions/upload-artifact@v3 with: diff --git a/Cargo.toml b/Cargo.toml index cf143bb..e7c6b5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ resolver = "2" [workspace.package] -version = "0.2.2" +version = "0.2.31" authors = ["Wesley Maa ", "Pawel Budzianowski ", "Benjamin Bolte "] edition = "2021" description = "Actuator package" From 0dd962a3ab9f72924c7dfd056bbf11f313b580cb Mon Sep 17 00:00:00 2001 From: WT-MM Date: Sun, 10 Nov 2024 13:20:53 -0800 Subject: [PATCH 2/3] install reqs --- .github/workflows/publish.yml | 5 +---- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 87db886..341a064 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,15 +53,12 @@ jobs: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y source $HOME/.cargo/env pip install setuptools-rust + python setup.py sdist CIBW_ENVIRONMENT: | PATH="/usr/local/bin:$HOME/.cargo/bin:$PATH" CARGO_NET_GIT_FETCH_WITH_CLI=true run: cibuildwheel --output-dir dist - - name: Build sdist - run: python setup.py sdist - shell: bash - - name: Upload artifacts uses: actions/upload-artifact@v3 with: diff --git a/Cargo.toml b/Cargo.toml index e7c6b5c..4b834d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ resolver = "2" [workspace.package] -version = "0.2.31" +version = "0.2.32" authors = ["Wesley Maa ", "Pawel Budzianowski ", "Benjamin Bolte "] edition = "2021" description = "Actuator package" From c77627eda33178bba4099ef8a50d9b359726607d Mon Sep 17 00:00:00 2001 From: WT-MM Date: Sun, 10 Nov 2024 13:33:17 -0800 Subject: [PATCH 3/3] oopsie --- .github/workflows/publish.yml | 7 ++++--- Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 341a064..1f49c2b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -75,20 +75,21 @@ jobs: publish-wheels: needs: publish-python - name: Publish Python wheels + name: Publish Python wheels and sdist timeout-minutes: 10 runs-on: ubuntu-latest steps: - - name: Download all wheels + - name: Download all artifacts uses: actions/download-artifact@v3 with: path: dist - - name: Move wheels to dist directory + - name: Move artifacts to dist directory run: | mkdir -p final_dist find dist -name "*.whl" -exec mv {} final_dist/ \; + find dist -name "*.tar.gz" -exec mv {} final_dist/ \; - name: Publish package uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/Cargo.toml b/Cargo.toml index 4b834d4..f010aca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ resolver = "2" [workspace.package] -version = "0.2.32" +version = "0.2.33" authors = ["Wesley Maa ", "Pawel Budzianowski ", "Benjamin Bolte "] edition = "2021" description = "Actuator package"