diff --git a/osdk/__init__.py b/osdk/__init__.py index 05706fa..ef9a0c4 100644 --- a/osdk/__init__.py +++ b/osdk/__init__.py @@ -9,6 +9,8 @@ import osdk.targets as targets import osdk.manifests as manifests +__version__="0.2.1" + CMDS = {} @@ -126,6 +128,10 @@ def helpCmd(opts: dict, args: list[str]) -> None: print("") +def versionCmd(opts: dict, args: list[str]) -> None: + print("OSDK v" + __version__) + + CMDS = { "run": { "func": runCmd, @@ -151,6 +157,10 @@ CMDS = { "func": helpCmd, "desc": "Show this help message", }, + "version": { + "func": versionCmd, + "desc": "Show current version", + }, } diff --git a/setup.py b/setup.py index 7c7fc59..2005707 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ from setuptools import setup +from osdk import __version__ setup( name="osdk", - version="0.2.0", + version=__version__, python_requires='>=3.10', description="Operating System Development Kit", author="The DEVSE Community",