14
14
CIBW_BUILD_VERBOSITY : " 1"
15
15
16
16
jobs :
17
- build-wheels :
17
+ build-wheels-and-dist :
18
18
name : Build ${{ matrix.python-version }} wheels on ${{ matrix.os }}
19
19
runs-on : ${{ matrix.os }}
20
20
strategy :
@@ -30,50 +30,26 @@ jobs:
30
30
with :
31
31
python-version : " 3.10"
32
32
33
- - name : Setup Mac
34
- if : runner.os == 'macOS'
33
+ - name : Install numpy
35
34
run : |
35
+ python -m pip install --upgrade pip
36
36
python -m pip install numpy h5py versioneer
37
37
38
- - name : Setup Linux
39
- if : runner.os == 'Linux'
40
- run : |
41
- python -m pip install numpy h5py versioneer
42
-
43
- - name : Build wheels
38
+ - name : Build source dist and wheels
44
39
run : |
45
40
sudo ln -s /opt/homebrew/bin/gfortran-11 /opt/homebrew/bin/gfortran || true
46
- python -m pip install meson ninja build
41
+ python -m pip install setuptools wheel twine numpy build meson ninja
47
42
pip install .
48
- python -m build --wheel --outdir wheelhouse
43
+ python -m build
49
44
- uses : actions/upload-artifact@v3
50
45
with :
51
- path : ./wheelhouse/*.whl
52
-
53
- build-source-dist :
54
- name : Build source dist
55
- runs-on : ubuntu-latest
56
- steps :
57
- - uses : actions/checkout@v3
58
- with :
59
- fetch-depth : 0
60
- - uses : actions/setup-python@v4
61
- name : Install Python
62
- with :
63
- python-version : " 3.10"
64
-
65
- - name : Build dist
66
- run : |
67
- python -m pip install --upgrade pip
68
- pip install setuptools wheel twine numpy build meson ninja
69
- pip install .
70
- python -m build
71
- - uses : actions/upload-artifact@v3
72
- with :
73
- path : ./dist/*.tar.gz
46
+ path : ./dist/*.tar.gz
47
+ - uses : actions/upload-artifact@v3
48
+ with :
49
+ path : ./dist/*.whl
74
50
75
51
publish :
76
- needs : [build-wheels, build-source -dist]
52
+ needs : [build-wheels-and -dist]
77
53
name : Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
78
54
runs-on : ${{ matrix.os }}
79
55
strategy :
0 commit comments