remove VERSION file in favor of a jedi.__version__

This commit is contained in:
David Halter
2013-05-11 11:10:01 +04:30
parent ad56b6cc89
commit f30b3416e8
3 changed files with 6 additions and 8 deletions

View File

@@ -46,9 +46,9 @@ master_doc = 'index'
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__))
with open(os.path.join(_path, '../VERSION'), 'r') as f:
VERSION = f.read().strip()
_version_strs = [str(x) for x in jedi.__version__]
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -56,10 +56,9 @@ with open(os.path.join(_path, '../VERSION'), 'r') as f:
#
# The short X.Y version.
import re
version = re.match('\d+\.\d+', VERSION).group(0)
version = '.'.join(_version_strs[:2])
# The full version, including alpha/beta/rc tags.
release = VERSION
release = '.'.join(_version_strs)
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.