42
42
arch : x86_64
43
43
python : 312
44
44
builder : manylinux
45
+ - os : ubuntu-latest
46
+ arch : x86_64
47
+ python : 313
48
+ builder : manylinux
45
49
46
50
# MacOS x86_64. The macos-13 runner is the last
47
51
# Intel-based runner version. At some point we'll
@@ -50,45 +54,49 @@ jobs:
50
54
arch : x86_64
51
55
python : 310
52
56
builder : macosx
53
- deploy : 13.0
54
57
- os : macos-13
55
58
arch : x86_64
56
59
python : 311
57
60
builder : macosx
58
- deploy : 13.0
59
61
- os : macos-13
60
62
arch : x86_64
61
63
python : 312
62
64
builder : macosx
63
- deploy : 13.0
65
+ - os : macos-13
66
+ arch : x86_64
67
+ python : 313
68
+ builder : macosx
64
69
65
70
# MacOS arm64
66
71
- os : macos-latest
67
72
arch : arm64
68
73
python : 310
69
74
builder : macosx
70
- deploy : 14.0
71
75
- os : macos-latest
72
76
arch : arm64
73
77
python : 311
74
78
builder : macosx
75
- deploy : 14.0
76
79
- os : macos-latest
77
80
arch : arm64
78
81
python : 312
79
82
builder : macosx
80
- deploy : 14.0
83
+ - os : macos-latest
84
+ arch : arm64
85
+ python : 313
86
+ builder : macosx
81
87
env :
82
88
CIBW_BUILD : cp${{ matrix.python }}-${{ matrix.builder }}_${{ matrix.arch }}
83
89
CIBW_MANYLINUX_X86_64_IMAGE : ${{ matrix.builder }}2014
84
90
CIBW_MANYLINUX_I686_IMAGE : ${{ matrix.builder }}2014
85
91
CIBW_BUILD_VERBOSITY : 3
86
- CIBW_ENVIRONMENT_LINUX :
92
+ CIBW_ENVIRONMENT_LINUX : >
93
+ CC=gcc
87
94
CIBW_ENVIRONMENT_MACOS : >
88
- MACOSX_DEPLOYMENT_TARGET=${{ matrix.deploy }}
95
+ CC=clang
89
96
CIBW_BEFORE_BUILD_LINUX : ./packaging/wheels/install_deps_linux.sh
90
97
CIBW_BEFORE_BUILD_MACOS : ./packaging/wheels/install_deps_osx.sh
91
- CIBW_BEFORE_TEST : export OMP_NUM_THREADS=1
98
+ CIBW_BEFORE_TEST : export OMP_NUM_THREADS=2
99
+ CIBW_TEST_REQUIRES : h5py zarr
92
100
CIBW_TEST_COMMAND : python3 -c 'import flacarray.tests; flacarray.tests.run()'
93
101
steps :
94
102
- name : Checkout
@@ -97,16 +105,41 @@ jobs:
97
105
- uses : actions/setup-python@v5
98
106
name : Install Python
99
107
with :
100
- python-version : ' 3.10 '
108
+ python-version : ' 3.11 '
101
109
102
110
- name : Install cibuildwheel
103
111
run : |
104
- python -m pip install twine cibuildwheel==2.20 .0
112
+ python -m pip install twine cibuildwheel==2.22 .0
105
113
106
114
- name : Build wheel
107
115
run : |
108
116
python -m cibuildwheel --output-dir wheelhouse
109
117
110
- - name : Upload to PyPI
111
- run : |
112
- python -m twine upload wheelhouse/flacarray*cp${{ matrix.python }}-${{ matrix.builder }}*${{ matrix.arch }}*.whl
118
+ build_sdist :
119
+ name : Build source distribution
120
+ runs-on : ubuntu-latest
121
+ steps :
122
+ - uses : actions/checkout@v4
123
+
124
+ - name : Build sdist
125
+ run : pipx run build --sdist
126
+
127
+ - uses : actions/upload-artifact@v4
128
+ with :
129
+ name : flacarray-sdist
130
+ path : dist/*.tar.gz
131
+
132
+ upload_pypi :
133
+ needs : [build_wheels, build_sdist]
134
+ runs-on : ubuntu-latest
135
+ permissions :
136
+ id-token : write
137
+ steps :
138
+ - uses : actions/download-artifact@v4
139
+ with :
140
+ # Unpacks all artifacts into dist/
141
+ pattern : flacarray-*
142
+ path : dist
143
+ merge-multiple : true
144
+
145
+ - uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments