Skip to content

Commit

Permalink
Merge pull request #9 from Reforestum/fix/workflow
Browse files Browse the repository at this point in the history
Deleted dynamic tag plugin
  • Loading branch information
jsga authored Aug 17, 2022
2 parents b4b1c88 + a7708bf commit 0ca90eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Publish package to PIP
on:
release:
types: [published]
tags:
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
test:
Expand Down Expand Up @@ -47,10 +49,8 @@ jobs:
- name: Build python package
run: docker run local poetry build

- name: Install dynamic versioning poetry plugin
run: ${XDG_DATA_HOME:-~/.local/share}/pypoetry/venv/bin/pip install poetry-dynamic-versioning==0.17.1

- name: Publish a Python distribution to PyPI
run: |
poetry version $(git describe --tags --abbrev=0)
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN}}
poetry publish --build
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
[tool.poetry]
name = "dynamic-world"
version = "0.0.0" # PLaceholder, use dynamic versioning based on git tag
version = "v0.3.0" # PLaceholder, use dynamic versioning based on git tag
description = "Land-use land-cover analysis using Dynamic World App from Earth Engine"
authors = ["Reforestum team <[email protected]>"]
readme = "README.md"
license = "CC-BY-4.0"
repository = "https://github.com/Reforestum/dynamic-world"
homepage= "reforestum.com"

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"

[tool.poetry.dependencies]
geojson = "^2.5.0"
python = "^3.9"
Expand All @@ -31,5 +26,5 @@ pytest-cov = "^3.0.0"
pytest-mock = "^3.8.2"

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 0ca90eb

Please sign in to comment.