1
0
forked from VimPlug/jedi

version can now be changed in one file (for sphinx and pypi)

This commit is contained in:
David Halter
2012-12-27 17:25:25 +01:00
parent 4c2c86ae72
commit 422eb6cbbf
3 changed files with 13 additions and 4 deletions

View File

@@ -44,14 +44,20 @@ master_doc = 'index'
project = u'Jedi'
copyright = u'2012, Jedi contributors'
_path = os.path.dirname(os.path.abspath(__file__))
with open(_path + '/../../VERSION') as f:
VERSION = f.read().strip()
# 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.5'
import re
version = re.match('\d+\.\d+', VERSION).group(0)
# The full version, including alpha/beta/rc tags.
release = '0.5b5'
release = VERSION
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -231,7 +237,7 @@ man_pages = [
# dir menu entry, description, category)
texinfo_documents = [
('index', 'Jedi', u'Jedi Documentation',
u'Jedi contributors', 'Jedi', 'One line description of project.',
u'Jedi contributors', 'Jedi', 'Awesome Python autocompletion library.',
'Miscellaneous'),
]