-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: build | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build_wheels: | ||
name: build wheel on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
python-version: [ 3.8 ] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Restore cached dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ matrix.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }} | ||
restore-keys: ${{ matrix.os }}-pip-${{ matrix.python-version }}- | ||
- name: Install dependencies | ||
run: pip install --upgrade pip setuptools wheel | ||
- name: Build wheel | ||
run: python setup.py bdist_wheel | ||
- name: Save wheel | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./dist/*.whl | ||
build_sdist: | ||
name: package source | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Package source | ||
run: python setup.py sdist | ||
- name: Save source package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./dist/*.tar.gz | ||
upload_pypi: | ||
name: publish wheel to PyPI | ||
needs: [ build_wheels, build_sdist ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Retrieve wheel | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: artifact | ||
path: dist | ||
- name: Upload wheel | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
[metadata] | ||
name = pyschism | ||
version = 0.0.0 | ||
author = "Jaime Calzada, Joseph Zhang" | ||
author_email = [email protected] | ||
author = "SCHISM development group" | ||
author_email = [email protected] | ||
description = Python package for working with SCHISM input and output files. | ||
long_description = file: README.md | ||
license = GPL | ||
license = "Apache 2.0" | ||
url = https://github.com/schism-dev/pyschism.git | ||
|
||
[nosetests] | ||
|