get the version from setup.py and always use today's date

This commit is contained in:
Doug Hellmann 2012-07-22 14:03:51 -04:00
parent 66aea3f2e1
commit f4df0e8223

@ -11,7 +11,8 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys, os
import datetime
import subprocess
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@ -41,16 +42,17 @@ master_doc = 'index'
# General information about the project.
project = u'stevedore'
copyright = u'2012, DreamHost'
copyright = u'%s, DreamHost' % datetime.date.today().year
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1'
version = subprocess.check_output(['sh', '-c', 'cd ../..; python setup.py --version'])
version = version.strip()
# The full version, including alpha/beta/rc tags.
release = '0.1'
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.