From a74e6489a72e5685aeda6bdb8493cdeb94aa6d98 Mon Sep 17 00:00:00 2001 From: Felipe Bordeu Date: Wed, 25 Feb 2026 14:15:03 +1030 Subject: [PATCH 1/2] again trying to fix upload --- .github/workflows/wheel.yml | 2 +- pyproject.toml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 6e5c512..fb90f05 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -29,7 +29,7 @@ jobs: submodules: true fetch-depth: 0 - name: Setup Python ${{ matrix.python }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v6 with: python-version: ${{ matrix.python }} - name: Install build dependencies diff --git a/pyproject.toml b/pyproject.toml index 87d570d..7e467c3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,8 +16,7 @@ description = "Cython interface between the numpy arrays and the Matrix/Array cl readme = "README.md" requires-python = ">=3.9" -license = "LicenseRef-Custom-License" -license-files = ["LICENSE"] +license = { file = "LICENSE" } dependencies = [ "numpy>=1.23.5", From ffd40da9759201c29577bd7e4324e39d1c4ff91f Mon Sep 17 00:00:00 2001 From: Felipe Bordeu Date: Wed, 25 Feb 2026 16:19:39 +1030 Subject: [PATCH 2/2] TEST --- .github/workflows/pypi-wheels.yml | 19 ++++--------------- pyproject.toml | 3 ++- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pypi-wheels.yml b/.github/workflows/pypi-wheels.yml index 6166b30..46bbc03 100644 --- a/.github/workflows/pypi-wheels.yml +++ b/.github/workflows/pypi-wheels.yml @@ -20,7 +20,7 @@ on: permissions: contents: read - + id-token: write jobs: build_wheels: @@ -115,17 +115,6 @@ jobs: python -m pip install --upgrade twine - name: Upload to PyPI - env: - TWINE_USERNAME: __token__ - TEST_PYPI_TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} - PYPI_TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - ls -la artifacts || true - - if [ "${{ github.event.inputs.PyPiDeployTarget }}" == "pypi.org" ]; then - echo "Deploy to testpypi " - python -m twine upload artifacts/* -u "$TWINE_USERNAME" -p "$TEST_PYPI_TWINE_PASSWORD" --non-interactive --verbose - else - python -m twine upload --repository testpypi artifacts/* -u "$TWINE_USERNAME" -p "$PYPI_TWINE_PASSWORD" --non-interactive --verbose - fi - shell: bash + uses: pypa/gh-action-pypi-publish@release/v1 + with: + packages-dir: artifacts/ # This tells the action to look in your dist folder \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 7e467c3..bc2e112 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,8 @@ description = "Cython interface between the numpy arrays and the Matrix/Array cl readme = "README.md" requires-python = ">=3.9" -license = { file = "LICENSE" } +license = "LicenseRef-Wouter-Boomsma-1.0" +license-files = ["LICENSE"] dependencies = [ "numpy>=1.23.5",