Skip to content

Commit f4cbdbc

Browse files
authored
Merge pull request #260 from mattip/publish-pypi
refactor, add pypi publishing
2 parents 3dc6494 + ce5c4ef commit f4cbdbc

2 files changed

Lines changed: 16 additions & 40 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ jobs:
5656
fi
5757
5858
59-
# -------------------------------------------------------------------------------------
60-
testpypi-publish32:
61-
name: Publish scipy-openblas32 to TestPyPI
59+
test_pypi-publish:
60+
strategy:
61+
matrix:
62+
project: ["scipy-openblas32", "scipy-openblas64"]
63+
name: Publish ${{ matrix.project }} to TestPyPI
6264
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi'
6365
needs: [call-posix, call-windows, call-windows-arm]
6466
runs-on: ubuntu-latest
6567
environment:
6668
name: testpypi
67-
url: https://test.pypi.org/project/scipy-openblas32/
69+
url: https://test.pypi.org/project/${{ matrix.project }}/
6870
permissions:
6971
id-token: write # mandatory for trusted publishing
7072
steps:
@@ -84,21 +86,22 @@ jobs:
8486
print-hash: true
8587
attestations: true
8688

87-
88-
testpypi-publish64:
89-
name: Publish scipy-openblas64 to TestPyPI
90-
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'testpypi'
91-
needs: [call-posix, call-windows, call-windows-arm]
89+
pypi-publish:
90+
strategy:
91+
matrix:
92+
project: ["scipy-openblas32", "scipy-openblas64"]
93+
name: Publish ${{ matrix.project }} to PyPI
94+
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
95+
needs: [call-posix, call-windows, call-windows-arm, check-version]
9296
runs-on: ubuntu-latest
9397
environment:
94-
name: testpypi
95-
url: https://test.pypi.org/project/scipy-openblas64/
98+
name: pypi
99+
url: https://pypi.org/p/${{ matrix.project }}
96100
permissions:
97101
id-token: write # mandatory for trusted publishing
98102
steps:
99103
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
100104
with:
101-
# I think the run-id for call-posix, call-windows, call-windows-arm should all be the same
102105
run-id: ${{ needs.call-posix.outputs.run_id }}
103106
pattern: wheels-*
104107
merge-multiple: true
@@ -107,32 +110,5 @@ jobs:
107110
- name: Publish
108111
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
109112
with:
110-
repository-url: https://test.pypi.org/legacy/
111-
skip-existing: true
112113
print-hash: true
113114
attestations: true
114-
115-
## -------------------------------------------------------------------------------------
116-
# pypi-publish:
117-
# name: Publish release to PyPI
118-
# if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
119-
# needs: [call-posix, call-windows, call-windows-arm, check-version]
120-
# runs-on: ubuntu-latest
121-
# environment:
122-
# name: pypi
123-
# url: https://pypi.org/p/scipy_openblas-32
124-
# permissions:
125-
# id-token: write # mandatory for trusted publishing
126-
# steps:
127-
# - uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
128-
# with:
129-
# run-id: ${{ needs.call-posix.outputs.run_id }}
130-
# pattern: wheels-*
131-
# merge-multiple: true
132-
# path: dist
133-
#
134-
# - name: Publish
135-
# uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
136-
# with:
137-
# print-hash: true
138-
# attestations: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
99
[project]
1010
name = "scipy-openblas64"
1111
# v0.3.31-126-g55b16e59
12-
version = "0.3.31.126.3"
12+
version = "0.3.31.126.4"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

0 commit comments

Comments
 (0)