mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
remove VERSION file in favor of a jedi.__version__
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user