-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
146 lines (111 loc) · 4.19 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
139
140
141
142
143
144
145
146
[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 = "translate-shell"
description = "Translate text by google, bing, youdaozhiyun, haici, stardict, openai, large language model of local machine, etc at same time from CLI, GUI (GNU/Linux, Android, macOS and Windows), REPL, python, shell and vim."
readme = "README.md"
requires-python = ">= 3.10"
keywords = ["translate"]
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 = "[email protected]"
[project.license]
text = "GPL v3"
[project.urls]
Homepage = "https://translate-shell.readthedocs.org"
Download = "https://github.com/Freed-Wu/translate-shell/releases"
"Bug Report" = "https://github.com/Freed-Wu/translate-shell/issues"
Source = "https://github.com/Freed-Wu/translate-shell"
[project.scripts]
trans = "translate_shell.__main__:main"
[tool.setuptools.package-data]
translate_shell = ["py.typed", "assets/**", "action.yml"]
[tool.setuptools.data-files]
"share/applications" = ["assets/desktop/translate-shell.desktop"]
"share/icons/hicolor/36x36/apps" = ["src/translate_shell/assets/images/translate-shell.png"]
"share/man/man1" = ["sdist/trans.1"]
"share/bash-completion/completions" = ["sdist/trans"]
"share/zsh/site-functions" = ["sdist/_trans"]
[tool.setuptools_scm]
write_to = "src/translate_shell/_version.py"
[tool.setuptools-generate]
write-to = "src/translate_shell/_metainfo.py"
[tool.setuptools-generate.metainfo-template]
file = "templates/metainfo.py.j2"
[tool.setuptools.dynamic.dependencies]
file = "requirements.txt"
# begin: scripts/update-pyproject.toml.pl
[tool.setuptools.dynamic.optional-dependencies.color]
file = "requirements/color.txt"
[tool.setuptools.dynamic.optional-dependencies.dev]
file = "requirements/dev.txt"
[tool.setuptools.dynamic.optional-dependencies.keyring]
file = "requirements/keyring.txt"
[tool.setuptools.dynamic.optional-dependencies.langdetect]
file = "requirements/langdetect.txt"
[tool.setuptools.dynamic.optional-dependencies.llama]
file = "requirements/llama.txt"
[tool.setuptools.dynamic.optional-dependencies.lsp]
file = "requirements/lsp.txt"
[tool.setuptools.dynamic.optional-dependencies.notification]
file = "requirements/notification.txt"
[tool.setuptools.dynamic.optional-dependencies.openai]
file = "requirements/openai.txt"
[tool.setuptools.dynamic.optional-dependencies.po]
file = "requirements/po.txt"
[tool.setuptools.dynamic.optional-dependencies.repl]
file = "requirements/repl.txt"
[tool.setuptools.dynamic.optional-dependencies.rich]
file = "requirements/rich.txt"
[tool.setuptools.dynamic.optional-dependencies.stardict]
file = "requirements/stardict.txt"
[tool.setuptools.dynamic.optional-dependencies.wakatime]
file = "requirements/wakatime.txt"
[tool.setuptools.dynamic.optional-dependencies.yaml]
file = "requirements/yaml.txt"
# end: scripts/update-pyproject.toml.pl
[tool.mdformat]
number = true
[tool.black]
line-length = 79
[tool.isort]
line_length = 79
profile = "black"
[tool.pydocstyle]
add_ignore = "D205, D400"
[tool.bandit]
skips = ["B310", "B404", "B603"]
[tool.bandit.assert_used]
skips = ["*_test.py", "test_*.py"]
[tool.codespell]
ignore-words-list = "fo, nd, te"
[tool.pyright]
exclude = ["templates/__init__.py"]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"\\s*import tomli as tomllib",
]
[tool.doq]
template_path = "templates"