From b402d57d698ab577cadfaf8ef9b91b48d8650238 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Sun, 24 Dec 2023 10:35:54 +0100 Subject: [PATCH 1/2] Single source version --- src/bootstrap4/__about__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bootstrap4/__about__.py b/src/bootstrap4/__about__.py index 68ff86d0..2c02b644 100644 --- a/src/bootstrap4/__about__.py +++ b/src/bootstrap4/__about__.py @@ -1 +1,3 @@ -__version__ = "23.3.dev1" +import importlib.metadata + +__version__ = importlib.metadata.version(__package__ or __name__) From fbeec2b0169bd5e48d95071d984f2461b3fb8002 Mon Sep 17 00:00:00 2001 From: Dylan Verheul Date: Sun, 24 Dec 2023 10:40:53 +0100 Subject: [PATCH 2/2] Fix package version --- src/bootstrap4/__about__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap4/__about__.py b/src/bootstrap4/__about__.py index 2c02b644..ac0ddfe2 100644 --- a/src/bootstrap4/__about__.py +++ b/src/bootstrap4/__about__.py @@ -1,3 +1,3 @@ import importlib.metadata -__version__ = importlib.metadata.version(__package__ or __name__) +__version__ = importlib.metadata.version('django-bootstrap4')