Skip to content

Commit

Permalink
Merge pull request #42 from hrshdhgd/implement-dynamic-versioning
Browse files Browse the repository at this point in the history
Add `poetry-dynamic-versioning[plugin]`
  • Loading branch information
hrshdhgd authored Nov 21, 2022
2 parents 7200e8d + 20d124d commit 00ce99a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:
python-version: 3.9

- name: Install Poetry
uses: snok/[email protected]

- name: Install dependencies
run: poetry install --no-interaction
run: |
pip install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Build source and wheel archives
run: |
poetry version $(git describe --tags --abbrev=0)
poetry build
- name: Publish distribution 📦 to PyPI
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "ontobot-change-agent"
version = "0.3.0"
version = "0.0.0"
description = "Update ontologies using change language."

authors = ["Harshad Hegde <[email protected]>"]
Expand All @@ -20,6 +20,11 @@ sphinx-rtd-theme = "^1.0.0"
sphinx-autodoc-typehints = "^1.19.4"
sphinx-click = "^4.3.0"

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

[tool.poetry.scripts]
ochange = "ontobot_change_agent.cli:main"

Expand All @@ -43,5 +48,5 @@ include_trailing_comma = true
reverse_relative = true

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

0 comments on commit 00ce99a

Please sign in to comment.