docs: publishing workflow as script

This commit is contained in:
Christian Schwarz
2017-11-11 23:17:17 +01:00
parent 43871a9211
commit 8cc31bd76a
3 changed files with 72 additions and 2 deletions

View File

@ -57,9 +57,10 @@ author = 'Christian Schwarz'
# built documents.
#
# The short X.Y version.
version = '0.0.2'
import subprocess
version = subprocess.check_output(["git", "describe"]).decode("utf-8")
# The full version, including alpha/beta/rc tags.
release = '0.0.2'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.