Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Workflow to build and test wheels
name: Wheel builder

on:
push:
branches:
- master
# Manual run
workflow_dispatch:

jobs:
# Build the wheels and the source ta
build_wheels:
runs-on: ubuntu-latest

steps:
- name: Checkout KeckDRPF
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # update once build dependencies are available

- name: Build wheels
run: pip wheel -w wheelhouse .

- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: Wheel
path: wheelhouse/keckdrpframework*.whl

# Build the source distribution under Linux
build_sdist:
name: Source distribution
runs-on: ubuntu-latest

steps:
- name: Checkout KeckDRPF
uses: actions/checkout@v1

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # update once build dependencies are available

- name: Build source distribution
run: |
python -m venv ~/build_env
source ~/build_env/bin/activate
pwd; ls
python setup.py sdist

- name: Store artifacts
uses: actions/upload-artifact@v2
with:
name: Source tarball
path: dist/*.tar.gz

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# generated during the build

dist/
keckdrpframework.egg-info/
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"scipy",
"matplotlib",
"astropy"
]
build-backend = "setuptools.build_meta"