From e691f2a8a833ef1c8ad34d21071fa3a88a8f5927 Mon Sep 17 00:00:00 2001 From: Scott Prahl Date: Mon, 18 Sep 2023 19:11:43 -0700 Subject: [PATCH] new version --- .github/workflows/pypi.yaml | 31 +++++++++++++++++++++++++++++++ CHANGELOG.rst | 4 ++++ pypolar/__init__.py | 2 +- 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi.yaml diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml new file mode 100644 index 0000000..588d5ea --- /dev/null +++ b/.github/workflows/pypi.yaml @@ -0,0 +1,31 @@ +name: Publish to PyPI on Tag + +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Build and publish to PyPI + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + run: | + python setup.py sdist bdist_wheel + python -m pip install --upgrade twine + twine upload dist/* diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7f25e6f..5ff2e34 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,10 @@ Changelog ================================================= +0.9.2 (9/18/2023) +----------------- +* automatic updating of pypi using github workflow + 0.9.1 (9/18/2023) ----------------- * include test files in tarball diff --git a/pypolar/__init__.py b/pypolar/__init__.py index 7cbc34d..3587002 100644 --- a/pypolar/__init__.py +++ b/pypolar/__init__.py @@ -1,4 +1,4 @@ -__version__ = '0.9.1' +__version__ = '0.9.2' __author__ = 'Scott Prahl' __email__ = 'scott.prahl@oit.edu' __copyright__ = 'Copyright 2020-23, Scott Prahl'