| 1 |
|
| 2 |
from typing import cast |
| 3 |
|
| 4 |
from setuptools import setup, find_packages |
| 5 |
from setuptools.depends import get_module_constant |
| 6 |
|
| 7 |
import os |
| 8 |
|
| 9 |
__AUTHOR__ = 'David Halter' |
| 10 |
__AUTHOR_EMAIL__ = '[email protected]' |
| 11 |
|
| 12 |
|
| 13 |
version = cast(str, get_module_constant("jedi", "__version__")) |
| 14 |
|
| 15 |
readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read() |
| 16 |
|
| 17 |
assert os.path.isfile("jedi/third_party/typeshed/LICENSE"), \ |
| 18 |
"Please download the typeshed submodule first (Hint: git submodule update --init)" |
| 19 |
assert os.path.isfile("jedi/third_party/django-stubs/LICENSE.txt"), \ |
| 20 |
"Please download the django-stubs submodule first (Hint: git submodule update --init)" |
| 21 |
|
| 22 |
setup(name='jedi', |
| 23 |
version=version, |
| 24 |
description='An autocompletion tool for Python that can be used for text editors.', |
| 25 |
author=__AUTHOR__, |
| 26 |
author_email=__AUTHOR_EMAIL__, |
| 27 |
include_package_data=True, |
| 28 |
maintainer=__AUTHOR__, |
| 29 |
maintainer_email=__AUTHOR_EMAIL__, |
| 30 |
url='https://github.com/davidhalter/jedi', |
| 31 |
project_urls={ |
| 32 |
"Documentation": 'https://jedi.readthedocs.io/en/latest/', |
| 33 |
}, |
| 34 |
license='MIT', |
| 35 |
keywords='python completion refactoring vim', |
| 36 |
long_description=readme, |
| 37 |
packages=find_packages(exclude=['test', 'test.*']), |
| 38 |
python_requires='>=3.10', |
| 39 |
|
| 40 |
install_requires=['parso>=0.8.6,<0.9.0'], |
| 41 |
extras_require={ |
| 42 |
'dev': [ |
| 43 |
'pytest<9.0.0', |
| 44 |
|
| 45 |
'docopt', |
| 46 |
|
| 47 |
'colorama', |
| 48 |
'Django', |
| 49 |
'attrs', |
| 50 |
'typing_extensions', |
| 51 |
|
| 52 |
'flake8==7.1.2', |
| 53 |
'zuban==0.7.0', |
| 54 |
|
| 55 |
'types-setuptools==80.9.0.20250529', |
| 56 |
], |
| 57 |
'docs': [ |
| 58 |
|
| 59 |
'alabaster==1.0.0', |
| 60 |
'babel==2.18.0', |
| 61 |
'certifi==2026.4.22', |
| 62 |
'charset-normalizer==3.4.7', |
| 63 |
'docutils==0.22.4', |
| 64 |
'idna==3.13', |
| 65 |
'imagesize==2.0.0', |
| 66 |
'iniconfig==2.3.0', |
| 67 |
'Jinja2==3.1.6', |
| 68 |
'MarkupSafe==3.0.3', |
| 69 |
'packaging==26.2', |
| 70 |
'pluggy==1.6.0', |
| 71 |
'Pygments==2.20.0', |
| 72 |
'pytest==9.0.3', |
| 73 |
'requests==2.33.1', |
| 74 |
'roman-numerals==4.1.0', |
| 75 |
'snowballstemmer==3.0.1', |
| 76 |
'Sphinx==9.1.0', |
| 77 |
'sphinx_rtd_theme==3.1.0', |
| 78 |
'sphinxcontrib-applehelp==2.0.0', |
| 79 |
'sphinxcontrib-devhelp==2.0.0', |
| 80 |
'sphinxcontrib-htmlhelp==2.1.0', |
| 81 |
'sphinxcontrib-jquery==4.1', |
| 82 |
'sphinxcontrib-jsmath==1.0.1', |
| 83 |
'sphinxcontrib-qthelp==2.0.0', |
| 84 |
'sphinxcontrib-serializinghtml==2.0.0', |
| 85 |
'urllib3==2.6.3', |
| 86 |
], |
| 87 |
}, |
| 88 |
package_data={'jedi': ['*.pyi', 'third_party/typeshed/LICENSE', |
| 89 |
'third_party/typeshed/README']}, |
| 90 |
platforms=['any'], |
| 91 |
classifiers=[ |
| 92 |
'Development Status :: 4 - Beta', |
| 93 |
'Environment :: Plugins', |
| 94 |
'Intended Audience :: Developers', |
| 95 |
'License :: OSI Approved :: MIT License', |
| 96 |
'Operating System :: OS Independent', |
| 97 |
'Programming Language :: Python :: 3', |
| 98 |
'Programming Language :: Python :: 3.10', |
| 99 |
'Programming Language :: Python :: 3.11', |
| 100 |
'Programming Language :: Python :: 3.12', |
| 101 |
'Programming Language :: Python :: 3.13', |
| 102 |
'Programming Language :: Python :: 3.14', |
| 103 |
'Topic :: Software Development :: Libraries :: Python Modules', |
| 104 |
'Topic :: Text Editors :: Integrated Development Environments (IDE)', |
| 105 |
'Topic :: Utilities', |
| 106 |
], |
| 107 |
) |