From 7777f8e5d6b248921b7bb7479971d64f74df158b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Wed, 29 Jan 2025 19:24:19 +0100 Subject: [PATCH] UPDATE: Adds fixes to python upload script --- .github/workflows/pypi.yml | 22 ++++++++++++++++++++++ bindings/python/pyproject.toml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 31fd479..7f3a046 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -115,6 +115,28 @@ jobs: uses: PyO3/maturin-action@v1 env: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TEST_API_TOKEN }} + MATURIN_REPOSITORY_URL: "https://test.pypi.org/legacy/" + with: + command: upload + args: --skip-existing * + working-directory: bindings/python + + publish-pypi: + if: ${{ github.event.inputs.release == 'true' }} + name: >- + Publish Python 🐍 distribution 📦 to PyPI + runs-on: ubuntu-latest + needs: [linux, windows, macos, sdist] + steps: + - uses: actions/download-artifact@v3 + with: + name: wheels + path: bindings/python/ + - name: Publish distribution 📦 to PyPI + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + MATURIN_REPOSITORY_URL: "https://upload.pypi.org/legacy/" with: command: upload args: --skip-existing * diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 0d8d8a4..f523f7f 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", - "Office/Business :: Financial :: Spreadsheet", + "Topic :: Office/Business :: Financial :: Spreadsheet", ] authors = [ { name = "Nicolás Hatcher", email = "nicolas@theuniverse.today" },