Skip to content

Commit ff1fbc2

Browse files
committed
Moved the metadata into PEP 621-compliant pyproject.toml.
1 parent 4bffc39 commit ff1fbc2

File tree

3 files changed

+90
-89
lines changed

3 files changed

+90
-89
lines changed

pyproject.toml

Lines changed: 90 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,96 @@
11
[build-system]
2-
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
2+
requires = ["setuptools>=61.2.0", "wheel", "setuptools_scm[toml]>=3.4.3"]
33
build-backend = "setuptools.build_meta"
44

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+
590
[tool.setuptools_scm]
691
write_to = "pylsp/_version.py"
792
write_to_template = "__version__ = \"{version}\"\n" # VERSION_INFO is populated in __main__
93+
94+
[tool.pytest.ini_options]
95+
testpaths = ["test"]
96+
addopts = "--cov-report html --cov-report term --junitxml=pytest.xml --cov pylsp --cov test"

setup.cfg

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,4 @@
1-
[metadata]
2-
name = python-lsp-server
3-
author = Python Language Server Contributors
4-
description = Python Language Server for the Language Server Protocol
5-
url = https://github.com/python-lsp/python-lsp-server
6-
long_description = file: README.md
7-
long_description_content_type = text/markdown
8-
license = MIT
9-
license_file = LICENSE
10-
11-
[options]
12-
packages = find:
13-
python_requires = >=3.7
14-
install_requires =
15-
jedi>=0.17.2,<0.19.0
16-
python-lsp-jsonrpc>=1.0.0
17-
pluggy>=1.0.0
18-
ujson>=3.0.0
19-
setuptools>=39.0.0
20-
setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3
21-
22-
[options.packages.find]
23-
exclude = contrib; docs; test; test.*; test.plugins; test.plugins.*
24-
25-
[options.extras_require]
26-
all =
27-
autopep8>=1.6.0,<1.7.0
28-
flake8>=4.0.0,<4.1.0
29-
mccabe>=0.6.0,<0.7.0
30-
pycodestyle>=2.8.0,<2.9.0
31-
pydocstyle>=2.0.0
32-
pyflakes>=2.4.0,<2.5.0
33-
pylint>=2.5.0
34-
rope>=0.10.5
35-
yapf
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-
[options.entry_points]
57-
console_scripts = pylsp = pylsp.__main__:main
58-
pylsp =
59-
autopep8 = pylsp.plugins.autopep8_format
60-
folding = pylsp.plugins.folding
61-
flake8 = pylsp.plugins.flake8_lint
62-
jedi_completion = pylsp.plugins.jedi_completion
63-
jedi_definition = pylsp.plugins.definition
64-
jedi_hover = pylsp.plugins.hover
65-
jedi_highlight = pylsp.plugins.highlight
66-
jedi_references = pylsp.plugins.references
67-
jedi_rename = pylsp.plugins.jedi_rename
68-
jedi_signature_help = pylsp.plugins.signature
69-
jedi_symbols = pylsp.plugins.symbols
70-
mccabe = pylsp.plugins.mccabe_lint
71-
preload = pylsp.plugins.preload_imports
72-
pycodestyle = pylsp.plugins.pycodestyle_lint
73-
pydocstyle = pylsp.plugins.pydocstyle_lint
74-
pyflakes = pylsp.plugins.pyflakes_lint
75-
pylint = pylsp.plugins.pylint_lint
76-
rope_completion = pylsp.plugins.rope_completion
77-
rope_rename = pylsp.plugins.rope_rename
78-
yapf = pylsp.plugins.yapf_format
79-
801
[pycodestyle]
812
ignore = E226, E722, W504
823
max-line-length = 120
834
exclude = test/plugins/.ropeproject,test/.ropeproject
84-
85-
86-
[tool:pytest]
87-
testpaths = test
88-
addopts =
89-
--cov-report html --cov-report term --junitxml=pytest.xml
90-
--cov pylsp --cov test
91-

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
if __name__ == "__main__":
99
setup(
1010
name="python-lsp-server", # to allow GitHub dependency tracking work
11-
packages=find_packages(exclude=["contrib", "docs", "test", "test.*"]), # https://github.com/pypa/setuptools/issues/2688
1211
)

0 commit comments

Comments
 (0)