Skip to content

Commit

Permalink
version can now be changed in one file (for sphinx and pypi)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhalter committed Dec 27, 2012
1 parent 4c2c86a commit 422eb6c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions VERSION
@@ -0,0 +1 @@
0.5.5
12 changes: 9 additions & 3 deletions docs/source/conf.py
Expand Up @@ -44,14 +44,20 @@
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.
Expand Down Expand Up @@ -231,7 +237,7 @@
# 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'),
]

Expand Down
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -7,9 +7,11 @@

readme = open('README.rst').read()

with open('VERSION') as f:
VERSION = f.read().strip()

setup(name='jedi',
version='0.5b5',
version=VERSION,
description='An autocompletion tool for Python that can be used for text editors.',
author=__AUTHOR__,
author_email=__AUTHOR_EMAIL__,
Expand Down

0 comments on commit 422eb6c

Please sign in to comment.