Skip to content

Commit 2e45a14

Browse files
committed
Revert version string back to 3.0.0rc11 and use LooseVersion to extract stable component.
1 parent 7793c8f commit 2e45a14

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

plotly/version.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '3.0.0-rc.11'
1+
__version__ = '3.0.0rc11'
22
__frontend_version__ = '^0.1.1'
33

44

@@ -7,7 +7,9 @@ def stable_semver():
77
Get the stable portion of the semantic version string (the first three
88
numbers), without any of the trailing labels
99
10-
'3.0.0-rc.11' -> '3.0.0'
10+
'3.0.0rc11' -> '3.0.0'
1111
"""
12-
13-
return __version__.split('-')[0]
12+
from distutils.version import LooseVersion
13+
version_components = LooseVersion(__version__).version
14+
stable_ver_str = '.'.join(str(s) for s in version_components[0:3])
15+
return stable_ver_str

0 commit comments

Comments
 (0)