From a54c92d9ce43567e4c4d181f0cb879fbda5457d5 Mon Sep 17 00:00:00 2001 From: Alexander Bogushov Date: Wed, 7 Apr 2021 14:15:14 +0500 Subject: [PATCH] Activate dynamic versioning. --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c9855e6..da903c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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\\d+\\.\\d+\\.\\d+)(-?((?P[a-zA-Z]+)\\.?(?P\\d+)?))?(\\+(?P.+))?$" + +[tool.poetry-dynamic-versioning.substitution] +enable = true + [tool.pytest.ini_options] addopts = "--flake8 --doctest-modules --black --strict-markers" testpaths = ["aioworkers_orm", "tests"]