From f6c5fd54c7e50935193ecd92cf4041e9410e97aa Mon Sep 17 00:00:00 2001 From: clach04 Date: Tue, 7 Jan 2025 20:54:01 -0800 Subject: [PATCH] Add version attributes issue #79 Adds two attributes for callers to determine the version number of library/package/module. Both a tuple and a string are provided. --- gui/core/nanogui.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/core/nanogui.py b/gui/core/nanogui.py index 2d4bd7a..713fb39 100644 --- a/gui/core/nanogui.py +++ b/gui/core/nanogui.py @@ -15,6 +15,9 @@ import framebuf import gc import sys +version_info = (1, 0, 0) # pep-440-like version number using semantic version number +__version__ = '.'.join(map(str, version_info)) + if sys.implementation.version < (1, 20, 0): raise OSError("Firmware V1.20 or later required.")