From 8532e14586d0725dcabe898c675901700208b0cb Mon Sep 17 00:00:00 2001 From: Nat Morris Date: Mon, 4 Nov 2024 20:32:44 +0000 Subject: [PATCH] Update version.py --- netbox_floorplan/version.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/netbox_floorplan/version.py b/netbox_floorplan/version.py index 3d26edf..4ae7b54 100644 --- a/netbox_floorplan/version.py +++ b/netbox_floorplan/version.py @@ -1 +1,18 @@ -__version__ = "0.4.1" +#!/usr/bin/env python +"""Version stamp.""" + +# These properties are injected at build time by the build process. + +__commit_hash__ = "unknown" +__track__ = "dev" +__version__ = "0.0.0" + + +def version_display(): + """Display the version, track and hash together.""" + return f"v{__version__}-{__track__}-{__commit_hash__}" + + +def version_semver(): + """Semantic version.""" + return __version__