Skip to content

Commit

Permalink
dynamic version
Browse files Browse the repository at this point in the history
  • Loading branch information
fkusei committed Aug 20, 2024
1 parent 22b4cac commit 2e7da8c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions pretalx_halfnarp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.1.0'
4 changes: 3 additions & 1 deletion pretalx_halfnarp/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from django.apps import AppConfig
from django.utils.translation import gettext_lazy

from pretalx_halfnarp import __version__


class PluginApp(AppConfig):
name = "pretalx_halfnarp"
Expand All @@ -18,7 +20,7 @@ class PretalxPluginMeta:
"Halfnarp is an anagram of Fahrplan, a not-yet sorted Fahrplan"
)
visible = True
version = "1.1.0"
version = __version__

def ready(self):
from . import signals # NOQA
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pretalx-halfnarp"
version = "1.1.0"
dynamic = ["version"]
description = """
Pretalx-Halfnarp is a Plugin that helps you to estimate the interest in
your submissions and plan room-sizes accordingly by scheduling the most
Expand Down Expand Up @@ -32,10 +32,8 @@ pretalx_halfnarp = "pretalx_halfnarp:PretalxPluginMeta"
build = "pretalx_plugin_build.build:CustomBuild"

[build-system]
requires = [
"setuptools",
"pretalx-plugin-build",
]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel"]

[project.urls]
homepage = "https://github.com/seibert-media/pretalx-halfnarp"
Expand All @@ -44,6 +42,9 @@ repository = "https://github.com/seibert-media/pretalx-halfnarp.git"
[tool.setuptools]
include-package-data = true

[tool.setuptools.dynamic]
version = {attr = "pretalx_halfnarp.__version__"}

[tool.setuptools.packages.find]
include = ["pretalx*"]
namespaces = false
3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 2e7da8c

Please sign in to comment.