diff --git a/.github/workflows/pypi-publish.yaml b/.github/workflows/pypi-publish.yaml new file mode 100644 index 0000000..f721540 --- /dev/null +++ b/.github/workflows/pypi-publish.yaml @@ -0,0 +1,42 @@ +# This workflow will upload a Python Package using Twine when a release is created +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Upload Python Package + +on: + push: + tags: + - 'v*' + workflow_dispatch: # Allow manual triggering + + +permissions: + contents: read + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 3291bd0..7cbbefa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # CHANGE LOG ## development + + +## v0.8 (2025-01-22) * Support GRASS version 8 * settings.FunctionInfo: support project functions of builtin type. * Stability fixes. diff --git a/Makefile b/Makefile index 38bb771..ec49260 100644 --- a/Makefile +++ b/Makefile @@ -26,10 +26,10 @@ version: git tag $$new release: - python setup.py sdist + #python setup.py sdist git push git push --tags - twine upload dist/* + #twine upload dist/* # doesnt work anymore, now done by .github/workflows docs: diff --git a/README.md b/README.md index d8bb2db..adcdaa0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ modelmanager =============================== -Version number: 0.7 +Version number: 0.8 Author: Michel Wortmann, Potsdam Institute of Climate Impact Research, Germany diff --git a/modelmanager/__init__.py b/modelmanager/__init__.py index 3e9d879..038b7da 100644 --- a/modelmanager/__init__.py +++ b/modelmanager/__init__.py @@ -1,3 +1,3 @@ from modelmanager.project import Project -__version__ = '0.7' +__version__ = '0.8'