Use PEP440 versioning
This commit is contained in:
parent
75419fd817
commit
a89a4feacc
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue