From d54087b7d02cb3a40adaac20af0f41bea2f26015 Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Fri, 9 Aug 2024 11:04:00 +0200 Subject: [PATCH] Use dynamic version --- pretalx_broadcast_tools/__init__.py | 1 + pretalx_broadcast_tools/apps.py | 3 ++- pyproject.toml | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 pretalx_broadcast_tools/__init__.py diff --git a/pretalx_broadcast_tools/__init__.py b/pretalx_broadcast_tools/__init__.py new file mode 100644 index 0000000..8a124bf --- /dev/null +++ b/pretalx_broadcast_tools/__init__.py @@ -0,0 +1 @@ +__version__ = "2.2.0" diff --git a/pretalx_broadcast_tools/apps.py b/pretalx_broadcast_tools/apps.py index 49afbca..77ab4ac 100644 --- a/pretalx_broadcast_tools/apps.py +++ b/pretalx_broadcast_tools/apps.py @@ -1,5 +1,6 @@ from django.apps import AppConfig from django.utils.translation import gettext_lazy +from pretalx_broadcast_tools import __version__ class PluginApp(AppConfig): @@ -15,7 +16,7 @@ class PluginApp(AppConfig): "embedded into your broadcasting software" ) visible = True - version = "2.2.0" + version = __version__ category = "FEATURE" def ready(self): diff --git a/pyproject.toml b/pyproject.toml index bec5d33..bc30223 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pretalx-broadcast-tools" -version = "2.2.0" +dynamic = ["version"] description = """ Some tools which can be used for supporting a broadcasting software. This currently includes a generator for PDF printouts, a 'lower thirds' @@ -35,5 +35,8 @@ repository = "https://github.com/Kunsi/pretalx-plugin-broadcast-tools.git" [tool.setuptools] include-package-data = true +[tool.setuptools.dynamic] +version = {attr = "pretalx_broadcast_tools.__version__"} + [tool.setuptools.packages.find] include = ["pretalx*"]