kopia lustrzana https://github.com/peterhinch/micropython-nano-gui
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
rodzic
2e570b0fc5
commit
f6c5fd54c7
|
@ -15,6 +15,9 @@ import framebuf
|
||||||
import gc
|
import gc
|
||||||
import sys
|
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):
|
if sys.implementation.version < (1, 20, 0):
|
||||||
raise OSError("Firmware V1.20 or later required.")
|
raise OSError("Firmware V1.20 or later required.")
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue