Skip to content

Commit 4e20687

Browse files
authored
Merge pull request #262 from mattip/main
use single workflow step for publishing to PyPI
2 parents f4cbdbc + 0acc1f2 commit 4e20687

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,12 @@ jobs:
8787
attestations: true
8888

8989
pypi-publish:
90-
strategy:
91-
matrix:
92-
project: ["scipy-openblas32", "scipy-openblas64"]
93-
name: Publish ${{ matrix.project }} to PyPI
90+
name: Publish scipy-openblas to PyPI
9491
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'pypi'
9592
needs: [call-posix, call-windows, call-windows-arm, check-version]
9693
runs-on: ubuntu-latest
9794
environment:
9895
name: pypi
99-
url: https://pypi.org/p/${{ matrix.project }}
10096
permissions:
10197
id-token: write # mandatory for trusted publishing
10298
steps:

README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,27 @@
2020
2121
# OpenBLAS library build process
2222

23-
First, tarballs are built using `build_lib` in `tools/build_steps.sh` (on
23+
First, OpenBLAS is built using `build_lib` in `tools/build_steps.sh` (on
2424
posix in a docker and drectly on macos) or `tools/build_steps_windows.sh` on windows.
2525

26-
Then the shared object and header files from the tarball are used to build the
27-
wheel via `tools/build_prepare_wheel.sh` and `pip build wheel`, and the wheels uploaded to
26+
Then the shared object and header files are used to build the
27+
wheel via `tools/build_prepare_wheel.sh` and `pip build wheel`.
28+
29+
If the build is on the `main` branch, the wheels are uploaded to
2830
https://anaconda.org/scientific=python-nightly-wheels/scipy_openblas32 and
2931
https://anaconda.org/scientific=python-nightly-wheels/scipy_openblas64 via
30-
`tools/upload_to_anaconda_staging.sh`. For a release, the wheels are uploaded
31-
to PyPI by downloading them via tools/dowlnload-wheels.py and uploading via
32-
[twine](https://twine.readthedocs.io/en/stable/).
33-
32+
`tools/upload_to_anaconda_staging.sh`.
33+
34+
There are workflow triggers for repo admins. They can trigger a testpypi build
35+
or a pypi build with the publish workflow, which will upload the wheels using
36+
trusted publishing. In order to publish to PyPI, there must be a tag at the HEAD
37+
of the branch used to publish. Use annotated tags:
38+
```
39+
git tag -a v0.3.31.126.4 -m"fixed something"
40+
```
3441
The wheel is self-contained, it includes all needed gfortran support libraries.
3542
On windows, this is a single DLL.
3643

37-
The wheel supplies interfaces for building and using OpenBLAS in a python
38-
project like SciPy or NumPy:
39-
4044
## Buildtime
4145

4246
- `get_include_dir()`, `get_lib_dir()` and `get_library()` for use in compiler

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.4"
12+
version = "0.3.31.126.5"
1313
requires-python = ">=3.7"
1414
description = "Provides OpenBLAS for python packaging"
1515
readme = "README.md"

0 commit comments

Comments
 (0)