tag releases within the dists as well (for debugging, mostly)

This commit is contained in:
Josh Klar
2019-07-24 20:54:06 -07:00
parent 39e3a65955
commit 39220beddb
5 changed files with 33 additions and 15 deletions

View File

@@ -1,3 +1,8 @@
try:
from kmk.release_info import KMK_RELEASE
except Exception:
KMK_RELEASE = 'copied-from-git'
CIRCUITPYTHON = 'CircuitPython'
MICROPYTHON = 'MicroPython'

View File

@@ -27,7 +27,7 @@ import kmk.kmktime # isort:skip
import kmk.types # isort:skip
import kmk.util # isort:skip
from kmk.consts import LeaderMode, UnicodeMode # isort:skip
from kmk.consts import LeaderMode, UnicodeMode, KMK_RELEASE # isort:skip
from kmk.hid import USB_HID # isort:skip
from kmk.internal_state import InternalState # isort:skip
from kmk.keys import KC # isort:skip
@@ -152,7 +152,7 @@ class KeyboardConfig:
if self.debug_enabled:
if init:
print('KMKInit()')
print('KMKInit(release={})'.format(KMK_RELEASE))
print(self)
print(self._state)