Skip to content

Commit db867a8

Browse files
committed
Fixed version string for Read the Docs builds
1 parent 79545cd commit db867a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

doc/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
# The short X.Y version.
5555
version = drms.__version__
5656

57+
# Read the Docs apparently does not build the documentation in a clean working
58+
# directory, which causes versioneer to return a version that ends with
59+
# ".dirty". As a workaround, we just remove this substring from the version.
60+
if version.endswith('.dirty'):
61+
version = version[:-6]
62+
5763
# The full version, including alpha/beta/rc tags.
5864
release = version
5965

0 commit comments

Comments
 (0)