👷 Dynamic versioning

This commit is contained in:
Brian Wiborg 2025-10-02 04:49:59 +02:00
parent e894c8f100
commit 6089f950b6
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View file

@ -43,6 +43,19 @@ ohmyapi = "ohmyapi.cli:app"
[project.urls] [project.urls]
repository = "https://code.c-base.org/baccenfutter/ohmyapi" 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] [tool.black]
line-length = 88 line-length = 88
target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] target-version = ['py39', 'py310', 'py311', 'py312', 'py313']

View file

@ -1 +1 @@
from . import db __VERSION__ = "0.2.5"