Skip to content

Commit 00ce99a

Browse files
authored
Merge pull request #42 from hrshdhgd/implement-dynamic-versioning
Add `poetry-dynamic-versioning[plugin]`
2 parents 7200e8d + 20d124d commit 00ce99a

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ jobs:
1919
python-version: 3.9
2020

2121
- name: Install Poetry
22-
uses: snok/[email protected]
23-
24-
- name: Install dependencies
25-
run: poetry install --no-interaction
22+
run: |
23+
pip install poetry
24+
poetry self add "poetry-dynamic-versioning[plugin]"
2625
2726
- name: Build source and wheel archives
2827
run: |
29-
poetry version $(git describe --tags --abbrev=0)
3028
poetry build
3129
3230
- name: Publish distribution 📦 to PyPI

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22

33
name = "ontobot-change-agent"
4-
version = "0.3.0"
4+
version = "0.0.0"
55
description = "Update ontologies using change language."
66

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

23+
[tool.poetry-dynamic-versioning]
24+
enable = true
25+
vcs = "git"
26+
style = "pep440"
27+
2328
[tool.poetry.scripts]
2429
ochange = "ontobot_change_agent.cli:main"
2530

@@ -43,5 +48,5 @@ include_trailing_comma = true
4348
reverse_relative = true
4449

4550
[build-system]
46-
requires = ["poetry-core"]
47-
build-backend = "poetry.core.masonry.api"
51+
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
52+
build-backend = "poetry_dynamic_versioning.backend"

0 commit comments

Comments
 (0)