Skip to content

Commit 5727173

Browse files
committed
Update _metadata.py
Only import the ._version module and compute the version when this module is imported.
1 parent 56912bb commit 5727173

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

webexteamssdk/_metadata.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
SOFTWARE.
2323
"""
2424

25-
from ._version import get_versions
26-
27-
2825
__title__ = 'webexteamssdk'
2926
__description__ = 'Community-developed Python SDK for the Webex Teams APIs'
3027
__url__ = 'https://github.com/CiscoDevNet/webexteamssdk'
@@ -34,5 +31,10 @@
3431
__copyright__ = "Copyright (c) 2016-2019 Cisco Systems, Inc."
3532
__license__ = "MIT"
3633

37-
__version__ = get_versions()['version']
38-
del get_versions
34+
35+
# Only import the ._version module and compute the version when this module is
36+
# imported.
37+
if __name__ == "webexteamssdk._metadata":
38+
from ._version import get_versions
39+
__version__ = get_versions()['version']
40+
del get_versions

0 commit comments

Comments
 (0)