Skip to content

Commit 666a64f

Browse files
author
Josef-MrBeam
committed
add versioneer
1 parent 2892318 commit 666a64f

File tree

7 files changed

+2976
-1
lines changed

7 files changed

+2976
-1
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
octoprint_netconnectd/__version.py export-subst

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ recursive-include octoprint_netconnectd/translations *
44
include LICENSE
55
include requirements.txt
66
include README.md
7+
include versioneer.py
8+
include octoprint_netconnectd/__version.py

octoprint_netconnectd/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,3 +374,7 @@ def __plugin_load__():
374374
global __plugin_implementation__
375375
__plugin_implementation__ = NetconnectdSettingsPlugin()
376376
return True
377+
378+
from .__version import get_versions
379+
__version__ = get_versions()['version']
380+
del get_versions

0 commit comments

Comments
 (0)