Skip to content

Commit 424c47b

Browse files
committed
use setuptools_scm
1 parent ba68fbd commit 424c47b

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

docs/conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
# serve to show the default.
1111

1212
import os
13-
import subprocess
1413
import sys
1514

15+
import setuptools_scm
16+
1617
# Use the currently checked out folium of this folder
1718
sys.path.insert(0, os.path.abspath(os.pardir))
1819

@@ -55,11 +56,7 @@
5556
# |version| and |release|, also used in various other places throughout the
5657
# built documents.
5758

58-
version = subprocess.check_output(["git", "describe", "--tags"]).decode().strip()
59-
if "-" in version:
60-
version = version.replace("-", ".dev", 1)
61-
release = version
62-
59+
version = release = setuptools_scm.get_version()
6360
print(f"Version: {version}")
6461

6562
# The language for content autogenerated by Sphinx. Refer to documentation

0 commit comments

Comments
 (0)