-
Notifications
You must be signed in to change notification settings - Fork 27
79 lines (74 loc) · 1.94 KB
/
wheel.yml
File metadata and controls
79 lines (74 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: wheel
on: [push, workflow_dispatch]
jobs:
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Reorganize repository
run: |
git config user.email ""
git config user.name "dummy"
git subtree add --prefix python/subprojects/minpack . HEAD
git mv python/{mesonpep517,pyproject}.toml
git commit -m "Python dist"
- run: |
pipx run build . --sdist
working-directory: python
- uses: actions/upload-artifact@v3
with:
name: minpack-python-sdist
path: python/dist/*.tar.gz
retention-days: 5
manylinux:
needs:
- sdist
runs-on: ubuntu-latest
container: condaforge/linux-anvil-cos7-x86_64
strategy:
fail-fast: false
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
defaults:
run:
shell: ${{ matrix.shell || 'bash -l {0}' }}
steps:
- name: Create environment
run: >-
mamba create -n wheel
--yes
c-compiler
fortran-compiler
python=${{ matrix.python }}
auditwheel
git
python
pip
python-build
pkgconfig
patchelf
cffi
numpy
meson
unzip
wheel
- name: Download sdist
uses: actions/download-artifact@v2
with:
name: minpack-python-sdist
- name: Build wheel
run: |
conda activate wheel
set -ex
tar xvf minpack-*.tar.gz
python -m build minpack-*/ --wheel
auditwheel show minpack-*/dist/*.whl
auditwheel repair -w minpack-*/dist minpack-*/dist/*.whl --plat ${{ env.plat }}
rm minpack-*/dist/*-linux_x86_64.whl
env:
plat: manylinux${{ matrix.python == '3.6' && '2010' || '_2_12' }}_x86_64
- uses: actions/upload-artifact@v3
with:
name: minpack-python-${{ matrix.python }}
path: minpack-*/dist/*.whl
retention-days: 5