|
2 | 2 | requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
|
3 | 3 | build-backend = "setuptools.build_meta"
|
4 | 4 |
|
| 5 | +[project] |
| 6 | +name = "python-lsp-server" |
| 7 | +authors = [{name = "Python Language Server Contributors"}] |
| 8 | +description = "Python Language Server for the Language Server Protocol" |
| 9 | +readme = "README.md" |
| 10 | +license = {text = "MIT"} |
| 11 | +requires-python = ">=3.7" |
| 12 | +dependencies = [ |
| 13 | + "jedi>=0.17.2,<0.19.0", |
| 14 | + "python-lsp-jsonrpc>=1.0.0", |
| 15 | + "pluggy>=1.0.0", |
| 16 | + "ujson>=3.0.0", |
| 17 | + "setuptools>=39.0.0", |
| 18 | +] |
| 19 | +dynamic = ["version"] |
| 20 | + |
| 21 | +[project.urls] |
| 22 | +Homepage = "https://github.com/python-lsp/python-lsp-server" |
| 23 | + |
| 24 | +[project.optional-dependencies] |
| 25 | +all = [ |
| 26 | + "autopep8>=1.6.0,<1.7.0", |
| 27 | + "flake8>=4.0.0,<4.1.0", |
| 28 | + "mccabe>=0.6.0,<0.7.0", |
| 29 | + "pycodestyle>=2.8.0,<2.9.0", |
| 30 | + "pydocstyle>=2.0.0", |
| 31 | + "pyflakes>=2.4.0,<2.5.0", |
| 32 | + "pylint>=2.5.0", |
| 33 | + "rope>=0.10.5", |
| 34 | + "yapf", |
| 35 | +] |
| 36 | +autopep8 = ["autopep8>=1.6.0,<1.7.0"] |
| 37 | +flake8 = ["flake8>=4.0.0,<4.1.0"] |
| 38 | +mccabe = ["mccabe>=0.6.0,<0.7.0"] |
| 39 | +pycodestyle = ["pycodestyle>=2.8.0,<2.9.0"] |
| 40 | +pydocstyle = ["pydocstyle>=2.0.0"] |
| 41 | +pyflakes = ["pyflakes>=2.4.0,<2.5.0"] |
| 42 | +pylint = ["pylint>=2.5.0"] |
| 43 | +rope = ["rope>0.10.5"] |
| 44 | +yapf = ["yapf"] |
| 45 | +test = [ |
| 46 | + "pylint>=2.5.0", |
| 47 | + "pytest", |
| 48 | + "pytest-cov", |
| 49 | + "coverage", |
| 50 | + "numpy", |
| 51 | + "pandas", |
| 52 | + "matplotlib", |
| 53 | + "pyqt5", |
| 54 | + "flaky", |
| 55 | +] |
| 56 | + |
| 57 | +[project.entry-points.pylsp] |
| 58 | +autopep8 = "pylsp.plugins.autopep8_format" |
| 59 | +folding = "pylsp.plugins.folding" |
| 60 | +flake8 = "pylsp.plugins.flake8_lint" |
| 61 | +jedi_completion = "pylsp.plugins.jedi_completion" |
| 62 | +jedi_definition = "pylsp.plugins.definition" |
| 63 | +jedi_hover = "pylsp.plugins.hover" |
| 64 | +jedi_highlight = "pylsp.plugins.highlight" |
| 65 | +jedi_references = "pylsp.plugins.references" |
| 66 | +jedi_rename = "pylsp.plugins.jedi_rename" |
| 67 | +jedi_signature_help = "pylsp.plugins.signature" |
| 68 | +jedi_symbols = "pylsp.plugins.symbols" |
| 69 | +mccabe = "pylsp.plugins.mccabe_lint" |
| 70 | +preload = "pylsp.plugins.preload_imports" |
| 71 | +pycodestyle = "pylsp.plugins.pycodestyle_lint" |
| 72 | +pydocstyle = "pylsp.plugins.pydocstyle_lint" |
| 73 | +pyflakes = "pylsp.plugins.pyflakes_lint" |
| 74 | +pylint = "pylsp.plugins.pylint_lint" |
| 75 | +rope_completion = "pylsp.plugins.rope_completion" |
| 76 | +rope_rename = "pylsp.plugins.rope_rename" |
| 77 | +yapf = "pylsp.plugins.yapf_format" |
| 78 | + |
| 79 | +[project.scripts] |
| 80 | +pylsp = "pylsp.__main__:main" |
| 81 | + |
| 82 | +[tool.setuptools] |
| 83 | +license-files = ["LICENSE"] |
| 84 | +include-package-data = false |
| 85 | + |
| 86 | +[tool.setuptools.packages.find] |
| 87 | +exclude = ["contrib", "docs", "test", "test.*", "test.plugins", "test.plugins.*"] |
| 88 | +namespaces = false |
| 89 | + |
5 | 90 | [tool.setuptools_scm]
|
6 | 91 | write_to = "pylsp/_version.py"
|
7 | 92 | write_to_template = "__version__ = \"{version}\"\n" # VERSION_INFO is populated in __main__
|
| 93 | + |
| 94 | +[tool.pycodestyle] |
| 95 | +ignore = "E226, E722, W504" |
| 96 | +max-line-length = "120" |
| 97 | +exclude = "test/plugins/.ropeproject,test/.ropeproject" |
| 98 | + |
| 99 | +[tool.pytest.ini_options] |
| 100 | +testpaths = ["test"] |
| 101 | +addopts = """ |
| 102 | +--cov-report html --cov-report term --junitxml=pytest.xml |
| 103 | +--cov pylsp --cov test""" |
0 commit comments