Skip to content

Commit

Permalink
Activate dynamic versioning.
Browse files Browse the repository at this point in the history
  • Loading branch information
abogushov committed Apr 7, 2021
1 parent cee12d6 commit a54c92d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,17 @@ pytest-flake8 = "^1.0.7"
aiosqlite = "^0.17.0"

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

[tool.poetry-dynamic-versioning]
enable = true
# The pattern for git tag in pep440 format. It is the same as default but without the v prefix.
pattern = "(?x)^(?P<base>\\d+\\.\\d+\\.\\d+)(-?((?P<stage>[a-zA-Z]+)\\.?(?P<revision>\\d+)?))?(\\+(?P<tagged_metadata>.+))?$"

[tool.poetry-dynamic-versioning.substitution]
enable = true

[tool.pytest.ini_options]
addopts = "--flake8 --doctest-modules --black --strict-markers"
testpaths = ["aioworkers_orm", "tests"]
Expand Down

0 comments on commit a54c92d

Please sign in to comment.