From f70af2a4b550d7d51361c2c4b97102e77cc10d3b Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Thu, 2 Nov 2023 16:58:15 +0100 Subject: [PATCH] Make version dynamic --- pretalx_pages/__init__.py | 1 + pretalx_pages/apps.py | 3 ++- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pretalx_pages/__init__.py b/pretalx_pages/__init__.py index e69de29..0b2f79d 100644 --- a/pretalx_pages/__init__.py +++ b/pretalx_pages/__init__.py @@ -0,0 +1 @@ +__version__ = "1.1.3" diff --git a/pretalx_pages/apps.py b/pretalx_pages/apps.py index 4426fae..d21c602 100644 --- a/pretalx_pages/apps.py +++ b/pretalx_pages/apps.py @@ -1,5 +1,6 @@ from django.apps import AppConfig from django.utils.translation import gettext_lazy +from pretalx_pages import __version__ class PluginApp(AppConfig): @@ -13,7 +14,7 @@ class PretalxPluginMeta: "Add static pages to your event site, for example Terms of Service, venue listings, a code of conduct, etc." ) visible = True - version = "1.3.3" + version = __version__ category = "FEATURE" def ready(self): diff --git a/pyproject.toml b/pyproject.toml index 4c4ddc3..7eca4b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pretalx-pages" -version = "1.1.3" +dynamic = ["version"] description = "Static pages for pretalx, e.g. information, venue listings, a Code of Conduct, etc." readme = "README.rst" license = {text = "Apache Software License"}