We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba68fbd commit 424c47bCopy full SHA for 424c47b
1 file changed
docs/conf.py
@@ -10,9 +10,10 @@
10
# serve to show the default.
11
12
import os
13
-import subprocess
14
import sys
15
+import setuptools_scm
16
+
17
# Use the currently checked out folium of this folder
18
sys.path.insert(0, os.path.abspath(os.pardir))
19
@@ -55,11 +56,7 @@
55
56
# |version| and |release|, also used in various other places throughout the
57
# built documents.
58
-version = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()
59
-if "-" in version:
60
- version = version.replace("-", ".dev", 1)
61
-release = version
62
-
+version = release = setuptools_scm.get_version()
63
print(f"Version: {version}")
64
65
# The language for content autogenerated by Sphinx. Refer to documentation
0 commit comments