File tree 3 files changed +25
-19
lines changed
3 files changed +25
-19
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ PYTHONS=(" cp36-cp36m" " cp37-cp37m" " cp38-cp38" )
4
+
5
+ for PYTHON in ${PYTHONS[@]} ; do
6
+ /opt/python/${PYTHON} /bin/pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine auditwheel
7
+ /opt/python/${PYTHON} /bin/pip install numpy==1.18
8
+ /opt/python/${PYTHON} /bin/python -m pep517.build --source --binary . --out-dir /github/workspace/wheelhouse/
9
+ done
10
+
11
+ for whl in /github/workspace/wheelhouse/gsw* .whl; do
12
+ auditwheel repair $whl
13
+ done
Original file line number Diff line number Diff line change
1
+ name : ' build wheels with manylinux2010_x86_64'
2
+ description : ' build wheels with manylinux2010_x86_64'
3
+ runs :
4
+ using : ' docker'
5
+ image : docker://quay.io/pypa/manylinux2010_x86_64
6
+ args :
7
+ - .github/workflows/actions/entrypoint.sh
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
packages :
10
- name : Build wheel on ${{ matrix.os }} and ${{ matrix.python-version }}
11
- runs-on : ${{ matrix.os }}
12
- strategy :
13
- matrix :
14
- os : [ubuntu-latest]
15
- python-version : [3.6, 3.7, 3.8]
16
-
10
+ runs-on : ubuntu-latest
17
11
steps :
18
12
- uses : actions/checkout@v2
19
13
20
14
- name : Get tags
21
15
run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
22
16
shell : bash
23
17
24
- - name : Set up Python ${{ matrix.python-version }}
25
- uses : actions/setup-python@v2
26
- with :
27
- python-version : ${{ matrix.python-version }}
28
-
29
- - name : Install build tools
18
+ - uses : ./.github/workflows/actions/manylinux2010_x86_64
19
+ - name : copy manylinux wheels
30
20
run : |
31
- python -m pip install --upgrade pip wheel setuptools setuptools_scm pep517 twine
32
- python -m pip install numpy==1.18
33
- shell : bash
34
-
35
- - name : Build binary wheel
36
- run : python -m pep517.build --binary . --out-dir dist
21
+ mkdir dist
22
+ cp wheelhouse/gsw*-manylinux2010_x86_64.whl dist/
37
23
38
24
- name : CheckFiles
39
25
run : |
You can’t perform that action at this time.
0 commit comments