mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Find packages differently in setup.py
This commit is contained in:
@@ -127,8 +127,6 @@ class Context(BaseContext):
|
|||||||
search_global=False, is_goto=False,
|
search_global=False, is_goto=False,
|
||||||
analysis_errors=True):
|
analysis_errors=True):
|
||||||
"""
|
"""
|
||||||
This is the search function.
|
|
||||||
|
|
||||||
:param position: Position of the last statement -> tuple of line, column
|
:param position: Position of the last statement -> tuple of line, column
|
||||||
"""
|
"""
|
||||||
if name_context is None:
|
if name_context is None:
|
||||||
|
|||||||
5
setup.py
5
setup.py
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
import ast
|
import ast
|
||||||
|
|
||||||
@@ -14,7 +14,6 @@ with open('jedi/__init__.py') as f:
|
|||||||
version = tree.body[1].value.s
|
version = tree.body[1].value.s
|
||||||
|
|
||||||
readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
|
readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
|
||||||
packages = ['jedi', 'jedi.evaluate', 'jedi.evaluate.compiled', 'jedi.api']
|
|
||||||
with open('requirements.txt') as f:
|
with open('requirements.txt') as f:
|
||||||
install_requires = f.read().splitlines()
|
install_requires = f.read().splitlines()
|
||||||
|
|
||||||
@@ -30,7 +29,7 @@ setup(name='jedi',
|
|||||||
license='MIT',
|
license='MIT',
|
||||||
keywords='python completion refactoring vim',
|
keywords='python completion refactoring vim',
|
||||||
long_description=readme,
|
long_description=readme,
|
||||||
packages=packages,
|
packages=find_packages(exclude=['test']),
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
package_data={'jedi': ['evaluate/compiled/fake/*.pym']},
|
package_data={'jedi': ['evaluate/compiled/fake/*.pym']},
|
||||||
platforms=['any'],
|
platforms=['any'],
|
||||||
|
|||||||
Reference in New Issue
Block a user