Skip to content

Commit 4fec05d

Browse files
committed
only SDist
1 parent b400943 commit 4fec05d

File tree

1 file changed

+103
-95
lines changed

1 file changed

+103
-95
lines changed
Lines changed: 103 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,93 @@
11
name: Python wheels
2-
on: [push]
2+
on:
3+
# Trigger the workflow on push or pull request,
4+
# but only for the main branch
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
311
jobs:
4-
build_wheels:
5-
name: Build wheels on ${{ matrix.os }}
6-
runs-on: ${{ matrix.os }}
7-
strategy:
8-
matrix:
9-
os: [ubuntu-latest, windows-latest, macos-latest]
10-
11-
steps:
12-
- name: Checkout repo
13-
uses: actions/checkout@v2
14-
with:
15-
submodules: 'recursive'
16-
17-
- name: Set up Python
18-
uses: actions/setup-python@v2
19-
with:
20-
python-version: '3.7'
21-
22-
- name: Install Ninja
23-
uses: seanmiddleditch/gha-setup-ninja@master
24-
25-
- name: Install MSVC x86
26-
uses: ilammy/msvc-dev-cmd@v1
27-
with:
28-
arch: x86
29-
30-
- name: Install dependencies
31-
run: |
32-
python -m pip install --upgrade pip
33-
python -m pip install pytest
34-
python -m pip install -r requirements.txt
35-
36-
- name: Build wheels (Windows x86)
37-
if: runner.os == 'Windows'
38-
run: |
39-
python -m pip install cibuildwheel
40-
python -m cibuildwheel --output-dir wheelhouse
41-
env:
42-
CIBW_BUILD: 'cp37-win32 cp38-win32 cp39-win32'
43-
CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
44-
CIBW_BEFORE_TEST: python -m pip install pytest numpy
45-
CIBW_TEST_COMMAND: pytest {project}
46-
CIBW_BUILD_VERBOSITY: 1
47-
48-
- name: Install MSVC amd64
49-
uses: ilammy/msvc-dev-cmd@v1
50-
with:
51-
arch: amd64
52-
53-
- name: Build wheels (Windows / amd64)
54-
if: runner.os == 'Windows'
55-
run: |
56-
python -m pip install cibuildwheel
57-
python -m cibuildwheel --output-dir wheelhouse
58-
env:
59-
CIBW_BUILD: 'cp37-win_amd64 cp38-win_amd64 cp39-win_amd64'
60-
CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
61-
CIBW_BEFORE_TEST: python -m pip install pytest numpy
62-
CIBW_TEST_COMMAND: pytest {project}
63-
CIBW_BUILD_VERBOSITY: 1
64-
65-
- name: Build wheels (Linux / macOS)
66-
if: runner.os != 'Windows'
67-
run: |
68-
python -m pip install cibuildwheel
69-
python -m cibuildwheel --output-dir wheelhouse
70-
env:
71-
CIBW_BUILD: 'cp37-* cp38-* cp39-*'
72-
CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
73-
CIBW_BEFORE_TEST: |
74-
pip install pytest
75-
pip install -r requirements.txt
76-
CIBW_TEST_COMMAND: pytest {project}
77-
CIBW_BUILD_VERBOSITY: 1
78-
79-
- name: Upload wheels
80-
uses: actions/upload-artifact@v2
81-
with:
82-
path: ./wheelhouse/*.whl
12+
# build_wheels:
13+
# name: Build wheels on ${{ matrix.os }}
14+
# runs-on: ${{ matrix.os }}
15+
# strategy:
16+
# matrix:
17+
# os: [ubuntu-latest, windows-latest, macos-latest]
18+
#
19+
# steps:
20+
# - name: Checkout repo
21+
# uses: actions/checkout@v2
22+
# with:
23+
# submodules: 'recursive'
24+
#
25+
# - name: Set up Python
26+
# uses: actions/setup-python@v2
27+
# with:
28+
# python-version: '3.7'
29+
#
30+
# - name: Install Ninja
31+
# uses: seanmiddleditch/gha-setup-ninja@master
32+
#
33+
# - name: Install MSVC x86
34+
# uses: ilammy/msvc-dev-cmd@v1
35+
# with:
36+
# arch: x86
37+
#
38+
# - name: Install dependencies
39+
# run: |
40+
# python -m pip install --upgrade pip
41+
# python -m pip install pytest
42+
# python -m pip install -r requirements.txt
43+
#
44+
# - name: Build wheels (Windows x86)
45+
# if: runner.os == 'Windows'
46+
# run: |
47+
# python -m pip install cibuildwheel
48+
# python -m cibuildwheel --output-dir wheelhouse
49+
# env:
50+
# CIBW_BUILD: 'cp37-win32 cp38-win32 cp39-win32'
51+
# CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
52+
# CIBW_BEFORE_TEST: python -m pip install pytest numpy
53+
# CIBW_TEST_COMMAND: pytest {project}
54+
# CIBW_BUILD_VERBOSITY: 1
55+
#
56+
# - name: Install MSVC amd64
57+
# uses: ilammy/msvc-dev-cmd@v1
58+
# with:
59+
# arch: amd64
60+
#
61+
# - name: Build wheels (Windows / amd64)
62+
# if: runner.os == 'Windows'
63+
# run: |
64+
# python -m pip install cibuildwheel
65+
# python -m cibuildwheel --output-dir wheelhouse
66+
# env:
67+
# CIBW_BUILD: 'cp37-win_amd64 cp38-win_amd64 cp39-win_amd64'
68+
# CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
69+
# CIBW_BEFORE_TEST: python -m pip install pytest numpy
70+
# CIBW_TEST_COMMAND: pytest {project}
71+
# CIBW_BUILD_VERBOSITY: 1
72+
#
73+
# - name: Build wheels (Linux / macOS)
74+
# if: runner.os != 'Windows'
75+
# run: |
76+
# python -m pip install cibuildwheel
77+
# python -m cibuildwheel --output-dir wheelhouse
78+
# env:
79+
# CIBW_BUILD: 'cp37-* cp38-* cp39-*'
80+
# CIBW_BEFORE_BUILD: python -m pip install -r requirements.txt
81+
# CIBW_BEFORE_TEST: |
82+
# pip install pytest
83+
# pip install -r requirements.txt
84+
# CIBW_TEST_COMMAND: pytest {project}
85+
# CIBW_BUILD_VERBOSITY: 1
86+
#
87+
# - name: Upload wheels
88+
# uses: actions/upload-artifact@v2
89+
# with:
90+
# path: ./wheelhouse/*.whl
8391

8492

8593

@@ -125,18 +133,18 @@ jobs:
125133
126134
127135
128-
129-
upload_pypi:
130-
needs: [ build_wheels, build_sdist ] # last but not least
131-
runs-on: ubuntu-latest
132-
if: startsWith(github.event.ref, 'refs/tags')
133-
steps:
134-
- uses: actions/download-artifact@v2
135-
with:
136-
name: artifact
137-
path: dist
138-
139-
- uses: pypa/gh-action-pypi-publish@master
140-
with:
141-
user: __token__
142-
password: ${{ secrets.blosc_pypi_secret }}
136+
#
137+
# upload_pypi:
138+
# needs: [ build_wheels, build_sdist ] # last but not least
139+
# runs-on: ubuntu-latest
140+
# if: startsWith(github.event.ref, 'refs/tags')
141+
# steps:
142+
# - uses: actions/download-artifact@v2
143+
# with:
144+
# name: artifact
145+
# path: dist
146+
#
147+
# - uses: pypa/gh-action-pypi-publish@master
148+
# with:
149+
# user: __token__
150+
# password: ${{ secrets.blosc_pypi_secret }}

0 commit comments

Comments
 (0)