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.
pull/82/head
clach04 2025-01-07 20:54:01 -08:00 zatwierdzone przez GitHub
rodzic 2e570b0fc5
commit f6c5fd54c7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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.")