fix version string in documentation

This commit is contained in:
Dave Halter
2014-03-11 14:07:41 +01:00
parent b7a4b543fd
commit 8aa71d7cd6

View File

@@ -48,18 +48,16 @@ project = u'Jedi'
copyright = u'2012 - {today.year}, Jedi contributors'.format(today=datetime.date.today())
import jedi
_path = os.path.dirname(os.path.abspath(__file__))
_version_strs = [str(x) for x in jedi.__version__]
from jedi.utils import version_info
# 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 = '.'.join(_version_strs[:2])
version = '.'.join(str(x) for x in version_info()[:2])
# The full version, including alpha/beta/rc tags.
release = '.'.join(_version_strs)
release = jedi.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.