From ec52610449d36f05ff1387b6d171a91eebfa8910 Mon Sep 17 00:00:00 2001 From: Lukas Weidenholzer <17790923+LukeWeidenwalker@users.noreply.github.com> Date: Fri, 2 Dec 2022 08:34:03 +0100 Subject: [PATCH] Setup release workflow (#6) * Remove disallowed pypi classifiers * Add github action release workflow * Bump version to 2022.12.0 * bump version to 2022.12.1 --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++ openeo_processes_dask/__init__.py | 1 + pyproject.toml | 5 +--- 3 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..f426ee74 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Release + +on: + push: + tags: + - '*.*.*' + +env: + POETRY_VERSION: 1.2.2 + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: "3.9" + + - name: Bootstrap poetry + run: | + curl -sL https://install.python-poetry.org | python - -y + + - name: Update PATH + run: echo "$HOME/.local/bin" >> $GITHUB_PATH + + - name: Build project for distribution + run: poetry build + + - name: Check Version + id: check-version + run: | + [[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || echo prerelease=true >> $GITHUB_OUTPUT + + - name: Publish to PyPI + env: + POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} + run: poetry publish diff --git a/openeo_processes_dask/__init__.py b/openeo_processes_dask/__init__.py index e69de29b..ba788772 100644 --- a/openeo_processes_dask/__init__.py +++ b/openeo_processes_dask/__init__.py @@ -0,0 +1 @@ +__version__ = "2022.12.1" diff --git a/pyproject.toml b/pyproject.toml index 7419a32e..422c8ab8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openeo-processes-dask" -version = "0.1.0" +version = "2022.12.1" description = "Python implementations of many OpenEO processes, dask-friendly by default." authors = ["Lukas Weidenholzer ", "Sean Hoyal ", "Valentina Hutter "] license = "Apache 2.0" @@ -9,13 +9,10 @@ repository = "https://github.com/Open-EO/openeo-processes-dask" classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: Apache 2.0", - "Operating System :: Ubuntu", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.9", - "Typing :: Typed", ] packages = [