diff --git a/pyproject.toml b/pyproject.toml index 6e1b419..2aa8a19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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[^'\"]+)['\"]" + [tool.black] line-length = 88 target-version = ['py39', 'py310', 'py311', 'py312', 'py313'] diff --git a/src/ohmyapi/__init__.py b/src/ohmyapi/__init__.py index 5dadfec..f67fe52 100644 --- a/src/ohmyapi/__init__.py +++ b/src/ohmyapi/__init__.py @@ -1 +1 @@ -from . import db +__VERSION__ = "0.2.5"