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

@@ -1 +0,0 @@
0.6.0

View File

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

View File

@@ -8,8 +8,8 @@ __AUTHOR_EMAIL__ = 'davidhalter88@gmail.com'
readme = open('README.rst').read() readme = open('README.rst').read()
with open('VERSION') as f: import jedi
VERSION = f.read().strip() VERSION = '.'.join(str(x) for x in jedi.__version__)
setup(name='jedi', setup(name='jedi',
version=VERSION, version=VERSION,