-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
138 lines (116 loc) · 3.59 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
[build-system]
requires = ["setuptools_scm[toml] >= 6.2", "setuptools-generate >= 0.0.6"]
build-backend = "setuptools.build_meta"
# https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
[project]
name = "termux-language-server"
description = "Language server for build.sh, PKGBUILD, ebuild"
readme = "README.md"
# type_a | type_b
requires-python = ">= 3.10"
keywords = ["termux", "language server"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version", "dependencies", "optional-dependencies"]
[[project.authors]]
name = "Wu, Zhenyu"
email = "wuzhenyu@ustc.edu"
[project.license]
text = "GPL v3"
[project.urls]
Homepage = "https://termux-language-server.readthedocs.io"
Download = "https://github.com/termux/termux-language-server/releases"
"Bug Report" = "https://github.com/termux/termux-language-server/issues"
Source = "https://github.com/termux/termux-language-server"
[project.scripts]
termux-language-server = "termux_language_server.__main__:main"
pkgbuild-language-server = "termux_language_server.__main__:main"
portage-language-server = "termux_language_server.__main__:main"
[tool.setuptools.data-files]
"share/man/man1" = [
"sdist/termux-language-server.1",
"sdist/pkgbuild-language-server.1",
"sdist/portage-language-server.1",
]
"share/bash-completion/completions" = [
"sdist/termux-language-server",
"sdist/pkgbuild-language-server",
"sdist/portage-language-server",
]
"share/zsh/site-functions" = [
"sdist/_termux-language-server",
"sdist/_pkgbuild-language-server",
"sdist/_portage-language-server",
]
[tool.scikit-build]
experimental = true
[tool.setuptools.dynamic.dependencies]
file = "requirements.txt"
# begin: scripts/update-pyproject.toml.pl
[tool.setuptools.dynamic.optional-dependencies.colorize]
file = "requirements/colorize.txt"
[tool.setuptools.dynamic.optional-dependencies.dev]
file = "requirements/dev.txt"
[tool.setuptools.dynamic.optional-dependencies.misc]
file = "requirements/misc.txt"
[tool.setuptools.dynamic.optional-dependencies.pkgbuild]
file = "requirements/pkgbuild.txt"
# end: scripts/update-pyproject.toml.pl
[tool.setuptools_scm]
write_to = "src/termux_language_server/_version.py"
[tool.setuptools-generate]
write-to = "src/termux_language_server/_metainfo.py"
[tool.setuptools-generate.metainfo-template]
file = "templates/metainfo.py.j2"
[tool.mdformat]
number = true
[tool.doq]
template_path = "templates"
[tool.ruff]
line-length = 79
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["D205", "D400"]
preview = true
[tool.ruff.format]
docstring-code-format = true
preview = true
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"\\s*import tomli as tomllib",
]
[tool.cibuildwheel]
archs = ["all"]
skip = "*37-* *38-* *39-*"
before-test = "pip install -rrequirements.txt -rrequirements/dev.txt"
test-command = "pytest {project}"