Use PEP440 versioning

This commit is contained in:
Robert Taylor 2023-08-09 14:37:52 +00:00 committed by Rob Taylor
parent 75419fd817
commit a89a4feacc
1 changed files with 8 additions and 1 deletions

View File

@ -45,7 +45,14 @@ include = [
[tool.poetry-dynamic-versioning] [tool.poetry-dynamic-versioning]
enable = true enable = true
vcs = "git" vcs = "git"
style = "semver" style = "pep440"
format-jinja = """
{%- if distance == 0 -%}
{{ serialize_pep440(base, stage, revision) }}
{%- else -%}
{{ serialize_pep440(bump_version(base), stage="a", revision=distance) }}
{%- endif -%}
"""
[tool.poetry.dependencies] [tool.poetry.dependencies]
python = "^3.8" python = "^3.8"