mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Merge the master branch into the dev branch.
This commit is contained in:
@@ -30,5 +30,6 @@ ppalucky (@ppalucky)
|
|||||||
immerrr (@immerrr) immerrr@gmail.com
|
immerrr (@immerrr) immerrr@gmail.com
|
||||||
Albertas Agejevas (@alga)
|
Albertas Agejevas (@alga)
|
||||||
Savor d'Isavano (@KenetJervet) <newelevenken@163.com>
|
Savor d'Isavano (@KenetJervet) <newelevenken@163.com>
|
||||||
|
Phillip Berndt (@phillipberndt) <phillip.berndt@gmail.com>
|
||||||
|
|
||||||
Note: (@user) means a github user name.
|
Note: (@user) means a github user name.
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ me.
|
|||||||
Jedi can be used with the following editors:
|
Jedi can be used with the following editors:
|
||||||
|
|
||||||
- Vim (jedi-vim_, YouCompleteMe_)
|
- Vim (jedi-vim_, YouCompleteMe_)
|
||||||
- Emacs (Jedi.el_, elpy_, anaconda-mode_)
|
- Emacs (Jedi.el_, elpy_, anaconda-mode_, ycmd_)
|
||||||
- Sublime Text (SublimeJEDI_ [ST2 + ST3], anaconda_ [only ST3])
|
- Sublime Text (SublimeJEDI_ [ST2 + ST3], anaconda_ [only ST3])
|
||||||
- SynWrite_
|
- SynWrite_
|
||||||
- TextMate_ (Not sure if it's actually working)
|
- TextMate_ (Not sure if it's actually working)
|
||||||
@@ -145,6 +145,7 @@ For more detailed information visit the `testing documentation
|
|||||||
.. _Jedi.el: https://github.com/tkf/emacs-jedi
|
.. _Jedi.el: https://github.com/tkf/emacs-jedi
|
||||||
.. _elpy: https://github.com/jorgenschaefer/elpy
|
.. _elpy: https://github.com/jorgenschaefer/elpy
|
||||||
.. _anaconda-mode: https://github.com/proofit404/anaconda-mode
|
.. _anaconda-mode: https://github.com/proofit404/anaconda-mode
|
||||||
|
.. _ycmd: https://github.com/abingham/emacs-ycmd
|
||||||
.. _sublimejedi: https://github.com/srusskih/SublimeJEDI
|
.. _sublimejedi: https://github.com/srusskih/SublimeJEDI
|
||||||
.. _anaconda: https://github.com/DamnWidget/anaconda
|
.. _anaconda: https://github.com/DamnWidget/anaconda
|
||||||
.. _SynWrite: http://uvviewsoft.com/synjedi/
|
.. _SynWrite: http://uvviewsoft.com/synjedi/
|
||||||
|
|||||||
@@ -30,18 +30,20 @@ System-wide installation via a package manager
|
|||||||
Arch Linux
|
Arch Linux
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
You can install |jedi| directly from official AUR packages:
|
You can install |jedi| directly from official Arch Linux packages:
|
||||||
|
|
||||||
- `python-jedi <https://aur.archlinux.org/packages/python-jedi/>`__ (Python 3)
|
- `python-jedi <https://www.archlinux.org/packages/community/any/python-jedi/>`__
|
||||||
- `python2-jedi <https://aur.archlinux.org/packages/python2-jedi/>`__ (Python 2)
|
(Python 3)
|
||||||
|
- `python2-jedi <https://www.archlinux.org/packages/community/any/python2-jedi/>`__
|
||||||
|
(Python 2)
|
||||||
|
|
||||||
The specified Python version just refers to the *runtime environment* for
|
The specified Python version just refers to the *runtime environment* for
|
||||||
|jedi|. Use the Python 2 version if you're running vim (or whatever editor you
|
|jedi|. Use the Python 2 version if you're running vim (or whatever editor you
|
||||||
use) under Python 2. Otherwise, use the Python 3 version. But whatever version
|
use) under Python 2. Otherwise, use the Python 3 version. But whatever version
|
||||||
you choose, both are able to complete both Python 2 and 3 *code*.
|
you choose, both are able to complete both Python 2 and 3 *code*.
|
||||||
|
|
||||||
(There is also a packaged version of the vim plugin available: `vim-jedi at AUR
|
(There is also a packaged version of the vim plugin available: `vim-jedi at
|
||||||
<https://aur.archlinux.org/packages/vim-jedi/>`__.)
|
Arch Linux<https://www.archlinux.org/packages/community/any/vim-jedi/>`__.)
|
||||||
|
|
||||||
Debian
|
Debian
|
||||||
~~~~~~
|
~~~~~~
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ As you see Jedi is pretty simple and allows you to concentrate on writing a
|
|||||||
good text editor, while still having very good IDE features for Python.
|
good text editor, while still having very good IDE features for Python.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
__version__ = '0.9.0-alpha0'
|
__version__ = '0.9.0'
|
||||||
|
|
||||||
from jedi.api import Script, Interpreter, NotFoundError, set_debug_function
|
from jedi.api import Script, Interpreter, NotFoundError, set_debug_function
|
||||||
from jedi.api import preload_module, defined_names, names
|
from jedi.api import preload_module, defined_names, names
|
||||||
|
|||||||
@@ -553,7 +553,7 @@ class Interpreter(Script):
|
|||||||
upper
|
upper
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, source, namespaces=[], **kwds):
|
def __init__(self, source, namespaces, **kwds):
|
||||||
"""
|
"""
|
||||||
Parse `source` and mixin interpreted Python objects from `namespaces`.
|
Parse `source` and mixin interpreted Python objects from `namespaces`.
|
||||||
|
|
||||||
@@ -567,6 +567,10 @@ class Interpreter(Script):
|
|||||||
If `line` and `column` are None, they are assumed be at the end of
|
If `line` and `column` are None, they are assumed be at the end of
|
||||||
`source`.
|
`source`.
|
||||||
"""
|
"""
|
||||||
|
if type(namespaces) is not list or len(namespaces) == 0 or \
|
||||||
|
any([type(x) is not dict for x in namespaces]):
|
||||||
|
raise TypeError("namespaces must be a non-empty list of dict")
|
||||||
|
|
||||||
super(Interpreter, self).__init__(source, **kwds)
|
super(Interpreter, self).__init__(source, **kwds)
|
||||||
self.namespaces = namespaces
|
self.namespaces = namespaces
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ def version_info():
|
|||||||
Returns a namedtuple of Jedi's version, similar to Python's
|
Returns a namedtuple of Jedi's version, similar to Python's
|
||||||
``sys.version_info``.
|
``sys.version_info``.
|
||||||
"""
|
"""
|
||||||
Version = namedtuple('Version', 'major, minor, micro, releaselevel, serial')
|
Version = namedtuple('Version', 'major, minor, micro')
|
||||||
from jedi import __version__
|
from jedi import __version__
|
||||||
tupl = re.findall('[a-z]+|\d+', __version__)
|
tupl = re.findall('[a-z]+|\d+', __version__)
|
||||||
return Version(*[x if i == 3 else int(x) for i, x in enumerate(tupl)])
|
return Version(*[x if i == 3 else int(x) for i, x in enumerate(tupl)])
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -42,6 +42,7 @@ setup(name='jedi',
|
|||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.2',
|
'Programming Language :: Python :: 3.2',
|
||||||
'Programming Language :: Python :: 3.3',
|
'Programming Language :: Python :: 3.3',
|
||||||
|
'Programming Language :: Python :: 3.4',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
'Topic :: Text Editors :: Integrated Development Environments (IDE)',
|
'Topic :: Text Editors :: Integrated Development Environments (IDE)',
|
||||||
'Topic :: Utilities',
|
'Topic :: Utilities',
|
||||||
|
|||||||
Reference in New Issue
Block a user