diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a81aa180..cef40db6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,15 +56,17 @@ jobs: fi -# ------------------------------------------------------------------------------------- - testpypi-publish32: - name: Publish scipy-openblas32 to TestPyPI + test_pypi-publish: + strategy: + matrix: + project: ["scipy-openblas32", "scipy-openblas64"] + name: Publish ${{ matrix.project }} to TestPyPI if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi' needs: [call-posix, call-windows, call-windows-arm] runs-on: ubuntu-latest environment: name: testpypi - url: https://test.pypi.org/project/scipy-openblas32/ + url: https://test.pypi.org/project/${{ matrix.project }}/ permissions: id-token: write # mandatory for trusted publishing steps: @@ -84,21 +86,22 @@ jobs: print-hash: true attestations: true - - testpypi-publish64: - name: Publish scipy-openblas64 to TestPyPI - if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi' - needs: [call-posix, call-windows, call-windows-arm] + pypi-publish: + strategy: + matrix: + project: ["scipy-openblas32", "scipy-openblas64"] + name: Publish ${{ matrix.project }} to PyPI + if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi' + needs: [call-posix, call-windows, call-windows-arm, check-version] runs-on: ubuntu-latest environment: - name: testpypi - url: https://test.pypi.org/project/scipy-openblas64/ + name: pypi + url: https://pypi.org/p/${{ matrix.project }} permissions: id-token: write # mandatory for trusted publishing steps: - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 with: - # I think the run-id for call-posix, call-windows, call-windows-arm should all be the same run-id: ${{ needs.call-posix.outputs.run_id }} pattern: wheels-* merge-multiple: true @@ -107,32 +110,5 @@ jobs: - name: Publish uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 with: - repository-url: https://test.pypi.org/legacy/ - skip-existing: true print-hash: true attestations: true - -## ------------------------------------------------------------------------------------- -# pypi-publish: -# name: Publish release to PyPI -# if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi' -# needs: [call-posix, call-windows, call-windows-arm, check-version] -# runs-on: ubuntu-latest -# environment: -# name: pypi -# url: https://pypi.org/p/scipy_openblas-32 -# permissions: -# id-token: write # mandatory for trusted publishing -# steps: -# - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 -# with: -# run-id: ${{ needs.call-posix.outputs.run_id }} -# pattern: wheels-* -# merge-multiple: true -# path: dist -# -# - name: Publish -# uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 -# with: -# print-hash: true -# attestations: true diff --git a/pyproject.toml b/pyproject.toml index dc03212b..0e24297e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta" [project] name = "scipy-openblas64" # v0.3.31-126-g55b16e59 -version = "0.3.31.126.3" +version = "0.3.31.126.4" requires-python = ">=3.7" description = "Provides OpenBLAS for python packaging" readme = "README.md"