mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +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'
|
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.
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user