Skip to content

Commit a93cf42

Browse files
committed
set version using setuptools_scm
1 parent b6b8116 commit a93cf42

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd2_myplugin/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
An overview of what myplugin does.
66
"""
77

8+
from pkg_resources import get_distribution, DistributionNotFound
9+
810
from .myplugin import empty_decorator, MyPlugin
11+
12+
try:
13+
__version__ = get_distribution(__name__).version
14+
except DistributionNotFound:
15+
__version__ = 'unknown'

0 commit comments

Comments
 (0)