-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_pypi_upload_mlinux_wheel.yml
More file actions
41 lines (33 loc) · 1.08 KB
/
Copy pathpython_pypi_upload_mlinux_wheel.yml
File metadata and controls
41 lines (33 loc) · 1.08 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
name: PYPI wheels manylinux
on:
release:
types: [created, edited]
jobs:
deploy_to_pypi:
name: build and deploy manylinux on pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# Not sure how to fix this ... petsc from system packages ?
- name: Build manylinux Python wheels
uses: RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64
with:
python-versions: 'cp27-cp27m cp36-cp36m cp37-cp37m cp38-cp38'
build-requirements: 'cython numpy scipy'
system-packages: 'libgfortran'
package-path: ''
pip-wheel-args: '--no-deps'
- name: Build the wheel
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload wheelhouse/*-manylinux*.whl --skip-existing