Skip to content

Commit 6eab731

Browse files
authored
SW-995 change versioning file for netconnectd plugin (#1)
1 parent 2892318 commit 6eab731

File tree

7 files changed

+2368
-1
lines changed

7 files changed

+2368
-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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,3 +374,8 @@ def __plugin_load__():
374374
global __plugin_implementation__
375375
__plugin_implementation__ = NetconnectdSettingsPlugin()
376376
return True
377+
378+
379+
from ._version import get_versions
380+
__version__ = get_versions()['version']
381+
del get_versions

0 commit comments

Comments
 (0)