Skip to content

Commit 8c5acd5

Browse files
committed
Migrated metadata from setup.cfg to PEP 621-compliant pyproject.toml.
1 parent 119556c commit 8c5acd5

File tree

2 files changed

+41
-41
lines changed

2 files changed

+41
-41
lines changed

pyproject.toml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,47 @@
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-jsonrpc"
7+
authors = [{name = "Python Language Server Contributors"}]
8+
description = "JSON RPC 2.0 server library"
9+
dependencies = ["ujson>=3.0.0"]
10+
dynamic = ["version"]
11+
12+
[project.readme]
13+
file = "README.md"
14+
content-type = "text/markdown"
15+
16+
[project.urls]
17+
Homepage = "https://github.com/python-lsp/python-lsp-jsonrpc"
18+
19+
[project.optional-dependencies]
20+
test = [
21+
"pylint",
22+
"pycodestyle",
23+
"pyflakes",
24+
"pytest",
25+
"pytest-cov",
26+
"coverage",
27+
]
28+
29+
[tool.setuptools]
30+
include-package-data = false
31+
32+
[tool.setuptools.packages.find]
33+
exclude = ["contrib", "docs", "test", "test.*"]
34+
namespaces = false
35+
536
[tool.setuptools_scm]
637
write_to = "pylsp_jsonrpc/_version.py"
738
write_to_template = "__version__ = \"{version}\"\n" # VERSION_INFO is populated in __main__
39+
40+
[tool.pycodestyle]
41+
ignore = "E226, E722, W504"
42+
max-line-length = "120"
43+
exclude = "test/plugins/.ropeproject,test/.ropeproject"
44+
45+
[tool.pytest.ini_options]
46+
testpaths = ["test"]
47+
addopts = "--cov-report html --cov-report term --junitxml=pytest.xml --cov pylsp_jsonrpc --cov test"

setup.cfg

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)