-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (41 loc) · 1.18 KB
/
wheels.yml
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
name: Build wheels and sdist and upload to PyPI
on:
workflow_dispatch:
release:
types:
- published
jobs:
build_sdist:
name: Build platform-independent wheel and sdist and upload to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/project/Piff/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install -U pip
sudo -H apt-get -qq update
sudo -H apt-get install -y libfftw3-dev libeigen3-dev
pip install -U numpy setuptools wheel
pip install -U -r requirements.txt
- name: Build wheel
run: |
pip wheel -w wheels .
ls -l wheels
- name: Build sdist
run: |
python setup.py sdist
cp wheels/Piff* dist
ls -l dist
tar tvfz dist/*.tar.gz
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true