-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
247 lines (228 loc) · 6.56 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
[project]
authors = [{ name = "SoulMelody", email = "[email protected]" }]
license = { text = "MIT" }
requires-python = ">=3.9,<3.14"
classifiers = [
'Development Status :: 4 - Beta',
'Programming Language :: Python',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Operating System :: Microsoft :: Windows :: Windows 10',
'Operating System :: Microsoft :: Windows :: Windows 11',
'Framework :: Pydantic :: 2',
'Topic :: File Formats',
'Topic :: Multimedia :: Sound/Audio :: Sound Synthesis',
'Typing :: Typed',
]
dependencies = [
"bidict<0.23.2,>=0.23.1",
"charset-normalizer<4.0.0,>=3.4.1",
"construct-typing<1.0.0,>=0.6.2",
"drawsvg<3.0.0,>=2.4.0",
"importlib-resources<7.0.0,>=6.5.2; python_version < \"3.11\"",
"jinja2<4.0.0,>=3.1.5",
"loguru<1.0.0,>=0.7.3",
"mido-fix",
"more-itertools<11.0.0,>=10.6.0",
"packaging<24.3,>=24.2",
"parsimonious<0.11.0,>=0.10.0",
"platformdirs<5.0.0,>=4.3.6",
"portion<3.0.0,>=2.6.0",
"proto-plus<2.0.0,>=1.26.0",
"pydantic<3.0.0,>=2.10.6",
"pydantic-extra-types<3.0.0,>=2.10.2",
"pydantic-settings[yaml]<3.0.0,>=2.7.1",
"pymediainfo<7.0.0,>=6.1.0; sys_platform != \"emscripten\"",
"pypinyin<1.0.0,>=0.53.0",
"pysubs2<2.0.0,>=1.8.0",
"pyzstd<1.0.0,>=0.16.2; platform_python_implementation == \"PyPy\"",
"repro-zipfile<1.0.0,>=0.3.1; python_version < \"3.11\"",
"retrie<1.0.0,>=0.3.1",
"rich<14.0.0,>=13.9.4",
"typer-slim<1.0.0,>=0.15.1",
"wanakana-python",
"xsdata-pydantic<24.6,>=24.5",
"zhon<3.0.0,>=2.1.1",
"zstandard<0.23.1,>=0.23.0; platform_python_implementation == \"CPython\"",
]
name = "libresvip"
dynamic = ["readme", "version"]
description = "Universal Converter for Singing Voice Projects"
[project.urls]
repository = "https://github.com/SoulMelody/LibreSVIP"
documentation = "https://soulmelody.github.io/LibreSVIP"
[project.optional-dependencies]
crypto = [
"cffi>=1.17.1; sys_platform != \"win32\" or python_version <= \"3.11\"",
"pyzipper>=0.3.6",
]
ujson = ["ujson>=5.10.0"]
upath = [
"universal-pathlib<1.0.0,>=0.2.6",
]
ruamel_yaml = [
"ruamel.yaml>=0.18.10",
"ruamel.yaml.clib>=0.2.12; platform_python_implementation == \"CPython\" and python_version == \"3.13\"",
]
lxml = ["lxml>=5.3.0"]
tui = [
"textual-fspicker>=0.1.1",
"libresvip[upath]",
]
webui = [
"nicegui>=2.10.1",
"libresvip[upath]",
]
mobile = [
"flet[cli,desktop]>=0.26.0",
"libresvip[upath]",
]
desktop = [
"pyside6<6.8.2,>=6.8.1.1",
"fonticon-materialdesignicons7>=7.2.96",
"httpx>=0.28.1",
"desktop-notifier>=6.0.0; platform_python_implementation == \"CPython\"",
"libresvip[upath]",
]
[dependency-groups]
code_gen = [
"datamodel-code-generator>=0.26.5",
"gapic-generator>=1.21.0",
"xsdata[cli]>=24.12",
]
i18n = ["babel>=2.16.0"]
linting = [
"pre-commit>=4.1.0",
"ruff>=0.9.3",
"mypy>=1.14.1",
"sourcery>=1.33.0",
"proto-plus-stubs>=0.7.0",
"types-lxml>=2024.12.13",
"types-parsimonious>=0.10.0.20240331",
"types-pyyaml>=6.0.12.20241230",
"types-ujson>=5.10.0.20240515",
]
packaging = [
"cx-Freeze>=7.2.8",
"nuitka>=2.6.1",
"pyinstaller>=6.11.1",
"shellingham<2.0.0,>=1.5.4",
]
docs = ["mkdocs-material<10.0.0,>=9.5.50"]
test = ["pytest>=8.3.4", "pytest-datadir>=1.5.0", "textual-dev>=1.7.0"]
all = [
{include-group = "code_gen"},
{include-group = "i18n"},
{include-group = "linting"},
{include-group = "packaging"},
{include-group = "docs"},
{include-group = "test"}
]
[project.scripts]
libresvip-cli = "libresvip.cli.__main__:app"
libresvip-tui = "libresvip.tui.__main__:main"
libresvip-web = "libresvip.web.__main__:main"
[project.gui-scripts]
libresvip-gui = "libresvip.gui.__main__:run"
libresvip-mobile = "libresvip.mobile.__main__:main"
[project.entry-points.pyinstaller40]
hook-dirs = "libresvip.__pyinstaller:get_hook_dirs"
[tool.uv.sources]
mido-fix = { url = "https://www.piwheels.org/simple/mido-fix/mido_fix-1.2.12-py2.py3-none-any.whl" }
wanakana-python = { url = "https://www.piwheels.org/simple/wanakana-python/wanakana_python-1.2.2-py3-none-any.whl" }
[tool.hatch.version]
path = "libresvip/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = [
"libresvip",
]
[tool.hatch.build.targets.wheel]
packages = ["libresvip"]
exclude = [
"*.po",
"*.ts",
"tests",
"libresvip/res/qml/**",
]
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
[tool.pytest.ini_options]
addopts = "-s -p no:warnings"
pythonpath = "."
testpaths = "tests"
[tool.ruff]
target-version = "py39"
src = ['libresvip', 'tests']
line-length = 100
fix = true
[tool.ruff.lint]
select = [
"A", # builtins
"ANN", # annotations
"ASYNC", # async
"C4", # comprehensions
"DTZ", # timezone
"E", # style errors
"EM", # error messages
"EXE", # executable
"F", # flakes
"FLY", # flynt
"I", # import sorting
"INT", # gettext
"N", # naming
"PERF", # perflint
"PIE", # assign and return
"PGH", # pygrep-hooks
"PLC", # pylint convention
"PLE", # pylint errors
"PT", # pytest-style
"PTH", # pathlib
"PYI", # stubs
"RUF", # ruff
"SIM", # simplify
"T10", # debugger
"T20", # print
"TC", # type-checking
"TRY", # tryceratops
"UP", # pyupgrade
"W", # style warnings
"YTT", # sys.version
]
ignore = [
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"E501", # Line too long
"RUF001", # String contains ambiguous symbol
"RUF009", # Do not perform function call in dataclass defaults
]
[tool.ruff.lint.isort]
known-first-party = ['libresvip', 'tests']
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.mypy]
disable_error_code = "import-not-found,import-untyped,unused-ignore"
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
warn_no_return = false
no_site_packages = true
explicit_package_bases = true
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme"]
build-backend = "hatchling.build"