From c1fb9dd333604aa97a5d4d139727ac1daf9d24a3 Mon Sep 17 00:00:00 2001 From: jbusecke Date: Fri, 21 Feb 2020 08:41:59 -0800 Subject: [PATCH 1/3] copied github actions from xgcm --- .github/workflows/pythonpublish.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pythonpublish.yaml diff --git a/.github/workflows/pythonpublish.yaml b/.github/workflows/pythonpublish.yaml new file mode 100644 index 00000000..00845525 --- /dev/null +++ b/.github/workflows/pythonpublish.yaml @@ -0,0 +1,26 @@ +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Python + uses: actions/setup-python@v1 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools setuptools-scm wheel twine + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* From 6e4a2bcd8eb3a7b1fb990eed3bf227505acb30f8 Mon Sep 17 00:00:00 2001 From: jbusecke Date: Fri, 21 Feb 2020 08:44:41 -0800 Subject: [PATCH 2/3] added a whats new --- doc/whats-new.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/whats-new.rst diff --git a/doc/whats-new.rst b/doc/whats-new.rst new file mode 100644 index 00000000..f9b0c039 --- /dev/null +++ b/doc/whats-new.rst @@ -0,0 +1,11 @@ +.. currentmodule:: cmip6_preprocessing + +What's New +=========== + +.. _whats-new.0.1.0: + +v0.1.0 (2/21/2020) +---------------------- + +Initial release. From 9ba2f884a80bd3bc242a8ab84a7207450d76d1d5 Mon Sep 17 00:00:00 2001 From: jbusecke Date: Fri, 21 Feb 2020 08:50:10 -0800 Subject: [PATCH 3/3] added pypi badge --- README.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 README.rst diff --git a/README.rst b/README.rst new file mode 100644 index 00000000..760446d6 --- /dev/null +++ b/README.rst @@ -0,0 +1,15 @@ +=============================== +cmip6_preprocessing +=============================== + +.. image:: https://badge.fury.io/py/cmip6_preprocessing.svg + :target: https://badge.fury.io/py/cmip6_preprocessing +.. image:: https://img.shields.io/travis/jbusecke/cmip6_preprocessing.svg + :target: https://travis-ci.org/jbusecke/cmip6_preprocessing +.. image:: https://circleci.com/gh/jbusecke/cmip6_preprocessing.svg?style=svg + :target: https://circleci.com/gh/jbusecke/cmip6_preprocessing +.. image:: https://codecov.io/gh/jbusecke/cmip6_preprocessing/branch/master/graph/badge.svg + :target: https://codecov.io/gh/jbusecke/cmip6_preprocessing + + +Some useful functions to make analysis across cmip6 modesl easier