We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7793c8f commit 2e45a14Copy full SHA for 2e45a14
plotly/version.py
@@ -1,4 +1,4 @@
1
-__version__ = '3.0.0-rc.11'
+__version__ = '3.0.0rc11'
2
__frontend_version__ = '^0.1.1'
3
4
@@ -7,7 +7,9 @@ def stable_semver():
7
Get the stable portion of the semantic version string (the first three
8
numbers), without any of the trailing labels
9
10
- '3.0.0-rc.11' -> '3.0.0'
+ '3.0.0rc11' -> '3.0.0'
11
"""
12
-
13
- return __version__.split('-')[0]
+ from distutils.version import LooseVersion
+ 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