Skip to content

Commit

Permalink
Bump version to 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MaddyGuthridge committed Feb 7, 2022
1 parent 457f6f7 commit 817ecf5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"""

from . import consts
from .consts import getVersionString

from .logger import log, verbosity

Expand Down
4 changes: 3 additions & 1 deletion common/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

# Version info
VERSION = (0, 0, 1)
VERSION = (0, 1, 0)

VERSION_MAJOR = VERSION[0]
VERSION_MINOR = VERSION[1]
Expand All @@ -17,6 +17,8 @@
def getVersionString() -> str:
"""
Returns the version string of the script
Eg: "1.2.3"
"""
return ".".join(map(str, VERSION))

Expand Down
4 changes: 4 additions & 0 deletions device_eventforward.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import time
from typing import TYPE_CHECKING
from common import log, verbosity
from common.consts import getVersionString, ASCII_HEADER_ART
from common.util.events import bytesToString, eventToString
from common.util.misc import formatLongTime
from common.types import eventData
Expand Down Expand Up @@ -132,3 +133,6 @@ def OnInit():
"device.forward.bootstrap",
"Loaded script successfully"
)

print(ASCII_HEADER_ART)
print(f"Universal Event Forwarder: v{getVersionString()}")
3 changes: 2 additions & 1 deletion device_universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import include

# Get context, and context reset wrapper
from common import getContext, catchContextResetException
from common import getContext, catchContextResetException, getVersionString
# Function to allow user to reset context
from common.contextmanager import unsafeResetContext as reset
# Import constants and logger
Expand Down Expand Up @@ -45,6 +45,7 @@ def onIdle(self) -> None:
def bootstrap(self):
log("bootstrap.initialize", "Load success", verbosity.INFO)
print(consts.ASCII_HEADER_ART)
print(f"Universal Controller Script: v{getVersionString()}")
print(ExtensionManager.getInfo())
print("Type `help` for help using the script\n")

Expand Down

0 comments on commit 817ecf5

Please sign in to comment.