File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010# serve to show the default.
1111
1212import os
13+ import subprocess
1314import sys
1415
1516# Use the currently checked out folium of this folder
5455# |version| and |release|, also used in various other places throughout the
5556# built documents.
5657
57- # The full version, including alpha/beta/rc tags.
58-
59- import folium
60-
61- version = release = folium .__version__
62- if "+" in version :
63- version , remainder = release .split ("+" )
64- if not remainder .startswith ("0" ):
65- version = version + ".dev+" + remainder .split ("." )[0 ]
58+ version = subprocess .check_output (["git" , "describe" , "--tags" ]).decode ().strip ()
59+ if "-" in version :
60+ version .replace ("-" , ".dev" , 1 )
61+ release = version
6662
6763# The language for content autogenerated by Sphinx. Refer to documentation
6864# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments