Skip to content

Commit 925466f

Browse files
committed
Added separate wheel builder for python 3.8 or older (using numpy 1.x)
1 parent e1289e0 commit 925466f

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/wheel_builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
python -m cibuildwheel --output-dir dist
2525
env:
26-
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*
26+
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-* cp313-*
2727
CIBW_BEFORE_BUILD: python -m pip install cython
2828

2929
- name: Publish package distributions to PyPI
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build wheels python 3.6 to 3.8
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
build_wheels:
6+
name: build wheels on ${{ matrix.os }}
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-20.04]
11+
environment: pypi
12+
permissions:
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-python@v2
17+
18+
- name: cibuildwheel installation
19+
run: python -m pip install cibuildwheel==1.11.0 twine
20+
21+
- name: build specified wheels on ubuntu
22+
if: matrix.os == 'ubuntu-20.04'
23+
run: |
24+
python -m cibuildwheel --output-dir dist
25+
env:
26+
CIBW_BUILD: cp36-* cp37-* cp38-*
27+
CIBW_BEFORE_BUILD: python -m pip install cython
28+
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1
31+
with:
32+
skip-existing: true

0 commit comments

Comments
 (0)