Skip to content

Commit 73ab7c5

Browse files
committed
Migrated metadata from setup.cfg to PEP 621-compliant pyproject.toml.
1 parent 664111c commit 73ab7c5

File tree

2 files changed

+39
-37
lines changed

2 files changed

+39
-37
lines changed

pyproject.toml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,45 @@
1+
# Copyright 2017-2020 Palantir Technologies, Inc.
2+
# Copyright 2021- Python Language Server Contributors.
3+
14
[build-system]
2-
requires = ["setuptools>=44", "wheel", "setuptools_scm[toml]>=3.4.3"]
5+
requires = ["setuptools>=61.2.0", "wheel", "setuptools_scm[toml]>=3.4.3"]
36
build-backend = "setuptools.build_meta"
47

8+
[project]
9+
name = "python-lsp-jsonrpc"
10+
authors = [{name = "Python Language Server Contributors"}]
11+
description = "JSON RPC 2.0 server library"
12+
dependencies = ["ujson>=3.0.0"]
13+
dynamic = ["version"]
14+
15+
[project.readme]
16+
file = "README.md"
17+
content-type = "text/markdown"
18+
19+
[project.urls]
20+
Homepage = "https://github.com/python-lsp/python-lsp-jsonrpc"
21+
22+
[project.optional-dependencies]
23+
test = [
24+
"pylint",
25+
"pycodestyle",
26+
"pyflakes",
27+
"pytest",
28+
"pytest-cov",
29+
"coverage",
30+
]
31+
32+
[tool.setuptools]
33+
include-package-data = false
34+
35+
[tool.setuptools.packages.find]
36+
exclude = ["contrib", "docs", "test", "test.*"]
37+
namespaces = false
38+
539
[tool.setuptools_scm]
640
write_to = "pylsp_jsonrpc/_version.py"
741
write_to_template = "__version__ = \"{version}\"\n" # VERSION_INFO is populated in __main__
42+
43+
[tool.pytest.ini_options]
44+
testpaths = ["test"]
45+
addopts = "--cov-report html --cov-report term --junitxml=pytest.xml --cov pylsp_jsonrpc --cov test"

setup.cfg

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,7 @@
11
# Copyright 2017-2020 Palantir Technologies, Inc.
22
# Copyright 2021- Python Language Server Contributors.
33

4-
[metadata]
5-
name = python-lsp-jsonrpc
6-
author = Python Language Server Contributors
7-
description = JSON RPC 2.0 server library
8-
url = https://github.com/python-lsp/python-lsp-jsonrpc
9-
long_description = file: README.md
10-
long_description_content_type = text/markdown
11-
12-
13-
[options]
14-
packages = find:
15-
setup_requires = setuptools>=44; wheel; setuptools_scm[toml]>=3.4.3
16-
install_requires = ujson>=3.0.0
17-
18-
[options.packages.find]
19-
exclude =
20-
contrib
21-
docs
22-
test
23-
test.*
24-
25-
[options.extras_require]
26-
test =
27-
pylint
28-
pycodestyle
29-
pyflakes
30-
pytest
31-
pytest-cov
32-
coverage
33-
344
[pycodestyle]
355
ignore = E226, E722, W504
366
max-line-length = 120
377
exclude = test/plugins/.ropeproject,test/.ropeproject
38-
39-
[tool:pytest]
40-
testpaths = test
41-
addopts =
42-
--cov-report html --cov-report term --junitxml=pytest.xml
43-
--cov pylsp_jsonrpc --cov test

0 commit comments

Comments
 (0)