mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
version can now be changed in one file (for sphinx and pypi)
This commit is contained in:
@@ -44,14 +44,20 @@ master_doc = 'index'
|
|||||||
project = u'Jedi'
|
project = u'Jedi'
|
||||||
copyright = u'2012, Jedi contributors'
|
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
|
# 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
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
# The short X.Y version.
|
# 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.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = '0.5b5'
|
release = VERSION
|
||||||
|
|
||||||
# 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.
|
||||||
@@ -231,7 +237,7 @@ man_pages = [
|
|||||||
# dir menu entry, description, category)
|
# dir menu entry, description, category)
|
||||||
texinfo_documents = [
|
texinfo_documents = [
|
||||||
('index', 'Jedi', u'Jedi Documentation',
|
('index', 'Jedi', u'Jedi Documentation',
|
||||||
u'Jedi contributors', 'Jedi', 'One line description of project.',
|
u'Jedi contributors', 'Jedi', 'Awesome Python autocompletion library.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
4
setup.py
4
setup.py
@@ -7,9 +7,11 @@ __AUTHOR_EMAIL__ = 'davidhalter88@gmail.com'
|
|||||||
|
|
||||||
readme = open('README.rst').read()
|
readme = open('README.rst').read()
|
||||||
|
|
||||||
|
with open('VERSION') as f:
|
||||||
|
VERSION = f.read().strip()
|
||||||
|
|
||||||
setup(name='jedi',
|
setup(name='jedi',
|
||||||
version='0.5b5',
|
version=VERSION,
|
||||||
description='An autocompletion tool for Python that can be used for text editors.',
|
description='An autocompletion tool for Python that can be used for text editors.',
|
||||||
author=__AUTHOR__,
|
author=__AUTHOR__,
|
||||||
author_email=__AUTHOR_EMAIL__,
|
author_email=__AUTHOR_EMAIL__,
|
||||||
|
|||||||
Reference in New Issue
Block a user