Skip to content

Commit

Permalink
Setup release workflow (#6)
Browse files Browse the repository at this point in the history
* Remove disallowed pypi classifiers

* Add github action release workflow

* Bump version to 2022.12.0

* bump version to 2022.12.1
  • Loading branch information
LukeWeidenwalker authored Dec 2, 2022
1 parent 0aa3cb5 commit ec52610
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions openeo_processes_dask/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "2022.12.1"
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <lukas.weidenholzer@eodc.eu>", "Sean Hoyal <sean.hoyal@eodc.eu>", "Valentina Hutter <valentina.hutter@eodc.eu>"]
license = "Apache 2.0"
Expand All @@ -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 = [
Expand Down

0 comments on commit ec52610

Please sign in to comment.