👷 Dynamic versioning
This commit is contained in:
parent
e894c8f100
commit
6089f950b6
2 changed files with 14 additions and 1 deletions
|
|
@ -43,6 +43,19 @@ ohmyapi = "ohmyapi.cli:app"
|
|||
[project.urls]
|
||||
repository = "https://code.c-base.org/baccenfutter/ohmyapi"
|
||||
|
||||
[build-system]
|
||||
requires = [
|
||||
"poetry-core>=1.8.0",
|
||||
"poetry-dynamic-versioning>=1.8.0"
|
||||
]
|
||||
build-backend = "poetry_dynamic_versioning.backend"
|
||||
|
||||
[tool.poetry-dynamic-versioning]
|
||||
enable = true
|
||||
source = "file"
|
||||
path = "src/ohmyapi/__init__.py"
|
||||
pattern = "__VERSION__\\s*=\\s*['\"](?P<version>[^'\"]+)['\"]"
|
||||
|
||||
[tool.black]
|
||||
line-length = 88
|
||||
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
from . import db
|
||||
__VERSION__ = "0.2.5"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue