-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_pypi_upload_macos_wheel.yml
More file actions
51 lines (41 loc) · 1.34 KB
/
Copy pathpython_pypi_upload_macos_wheel.yml
File metadata and controls
51 lines (41 loc) · 1.34 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
name: PYPI wheels macos
on:
release:
types: [created, edited]
jobs:
deploy_to_pypi:
name: ${{matrix.os}} build and deploy on pypi (${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
os: [ 'macos-latest']
python-version: ['2.7', '3.7', '3.8']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: goanpeca/setup-miniconda@v1
with:
python-version: ${{ matrix.python-version }}
- name: Conda info
shell: bash -l {0}
run: conda info
- name: Install dependencies with conda
shell: bash -l {0}
run: |
conda install pip
conda install -c conda-forge compilers numpy scipy sympy
conda install -c conda-forge petsc4py petsc mpi4py h5py
conda install -c conda-forge pint
conda install -c underworldcode stripy
conda install pytest
- name: Build the wheel
shell: bash -l {0}
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
pip install setuptools wheel twine
pip install delocate
python setup.py bdist_wheel
delocate-wheel -d -w fixed_wheels dist/*whl
twine upload fixed_wheels/*whl --skip-existing