Skip to content

Commit c713af7

Browse files
committed
restore pip workflow. rm 313 redundant
1 parent f74c61e commit c713af7

2 files changed

Lines changed: 40 additions & 38 deletions

File tree

.github/workflows/pip.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Pip
22

33
on:
44
workflow_dispatch:
5-
#pull_request:
6-
#push:
7-
# branches:
8-
# - master
5+
pull_request:
6+
push:
7+
branches:
8+
- master
99

1010
jobs:
1111
build:

.github/workflows/wheels.yml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -28,43 +28,45 @@ jobs:
2828
name: dist-sdist
2929
path: dist/*.tar.gz
3030

31-
#build_wheels:
32-
# name: Build ${{ matrix.cpversion }} wheels on ${{ matrix.os }}
33-
# runs-on: ${{ matrix.os }}
34-
# strategy:
35-
# fail-fast: false
36-
# matrix:
37-
# os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
38-
# cpversion: [cp38, cp39, cp310, cp311, cp312 ]
39-
# # github actions cp38 on macos-14 runners are cross compiling or
40-
# # something and confusing the stub generation. Just skip it for now.
41-
# # Maybe it'd be friendlier to disable the stub generation for this
42-
# # combination.
43-
# exclude:
44-
# - os: macos-14
45-
# cpversion: cp38
31+
build_wheels:
32+
name: Build ${{ matrix.cpversion }} wheels on ${{ matrix.os }}
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-14]
38+
# cp313 seemed to produce the same wheel name as cp312. Skip unless
39+
# necessary.
40+
cpversion: [cp38, cp39, cp310, cp311, cp312]
41+
# github actions cp38 on macos-14 runners are cross compiling or
42+
# something and confusing the stub generation. Just skip it for now.
43+
# Maybe it'd be friendlier to disable the stub generation for this
44+
# combination.
45+
exclude:
46+
- os: macos-14
47+
cpversion: cp38
4648

4749

48-
# steps:
49-
# - uses: actions/checkout@v4
50+
steps:
51+
- uses: actions/checkout@v4
5052

51-
# - uses: actions/setup-python@v5
52-
# with:
53-
# python-version: '3.12'
53+
- uses: actions/setup-python@v5
54+
with:
55+
python-version: '3.12'
5456

55-
# - name: Install cibuildwheel
56-
# run: python -m pip install cibuildwheel==2.22.0
57+
- name: Install cibuildwheel
58+
run: python -m pip install cibuildwheel==2.22.0
5759

58-
# - name: Build wheels
59-
# # why do I need to specify this cpversion here?
60-
# env:
61-
# CIBW_ARCHS: "auto64"
62-
# CIBW_BUILD: "${{ matrix.cpversion }}-*"
63-
# # why isn't auto64 working?
64-
# CIBW_SKIP: "cp*-manylinux_i686 cp*-musllinux* cp*-win32"
65-
# run: python -m cibuildwheel --output-dir wheelhouse
60+
- name: Build wheels
61+
# why do I need to specify this cpversion here?
62+
env:
63+
CIBW_ARCHS: "auto64"
64+
CIBW_BUILD: "${{ matrix.cpversion }}-*"
65+
# why isn't auto64 working?
66+
CIBW_SKIP: "cp*-manylinux_i686 cp*-musllinux* cp*-win32"
67+
run: python -m cibuildwheel --output-dir wheelhouse
6668

67-
# - uses: actions/upload-artifact@v4
68-
# with:
69-
# name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
70-
# path: ./wheelhouse/*.whl
69+
- uses: actions/upload-artifact@v4
70+
with:
71+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
72+
path: ./wheelhouse/*.whl

0 commit comments

Comments
 (0)