/
pyproject.toml
200 lines (186 loc) · 5.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
[project]
authors = [{ name = "SoulMelody", email = "yjxrtzyx@gmail.com" }]
license = { text = "MIT" }
requires-python = ">=3.9,<3.13"
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',
'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.3.2",
"construct-typing<1.0.0,>=0.6.2",
"drawsvg<3.0.0,>=2.3.0",
"importlib-resources<7.0.0,>=6.4.0; python_version < \"3.11\"",
"jinja2<4.0.0,>=3.1.4",
"loguru<1.0.0,>=0.7.2",
"mido-fix<2.0.0,>=1.2.12",
"more-itertools<11.0.0,>=10.2.0",
"omegaconf<3.0.0,>=2.3.0",
"packaging<24.1,>=24.0",
"parsimonious<0.11.0,>=0.10.0",
"platformdirs<5.0.0,>=4.2.1",
"portion<3.0.0,>=2.4.2",
"proto-plus<2.0.0,>=1.23.0",
"pydantic<3.0.0,>=2.7.1",
"pydantic-extra-types<3.0.0,>=2.7.0",
"pymediainfo<7.0.0,>=6.1.0",
"pypinyin<1.0.0,>=0.51.0",
"retrie<1.0.0,>=0.3.1",
"rich<14.0.0,>=13.7.1",
"srt<4.0.0,>=3.5.3",
"typer-slim<1.0.0,>=0.12.3",
"wanakana-python<2.0.0,>=1.2.2",
"xsdata<24.6,>=24.5",
"zhon<3.0.0,>=2.0.2",
"zstandard<0.23.0,>=0.22.0; platform_python_implementation == \"CPython\"",
"zstd<2.0.0,>=1.5.5.1; platform_python_implementation == \"PyPy\"",
]
name = "libresvip"
dynamic = ["version"]
description = "Universal Converter for Singing Voice Projects"
readme = "README.md"
[project.urls]
repository = "https://github.com/SoulMelody/LibreSVIP"
documentation = "https://soulmelody.github.io/LibreSVIP"
[project.optional-dependencies]
ujson = ["ujson>=5.9.0"]
upath = [
"universal-pathlib<1.0.0,>=0.2.2",
]
ruamel_yaml = ["ruamel.yaml>=0.18.6"]
lxml = ["lxml>=5.2.1"]
webui = [
"nicegui>=1.4.24",
"pywebview>=5.1",
"libresvip[upath]",
]
desktop = [
"pyside6<6.8.0,>=6.6.3.1,!=6.7.0",
"fonticon-materialdesignicons7>=7.2.96",
"httpx>=0.27.0",
"desktop-notifier>=4.0.0; platform_python_implementation == \"CPython\"",
"libresvip[upath]",
]
[project.scripts]
libresvip-cli = "libresvip.cli.__main__:app"
libresvip-web = "libresvip.web.__main__:main"
[project.gui-scripts]
libresvip-gui = "libresvip.gui.__main__:run"
[tool.pdm]
version = { source = "file", path = "libresvip/__init__.py" }
[tool.pdm.dev-dependencies]
code_gen = [
"datamodel-code-generator>=0.25.6",
"gapic-generator>=1.18.0",
"click-default-group>=1.2.4",
"docformatter>=1.7.5",
"toposort>=1.10",
]
i18n = ["translate-toolkit>=3.13.0", "babel>=2.15.0"]
linting = [
"pre-commit>=3.7.1",
"ruff>=0.4.4",
"mypy>=1.10.0",
"sourcery>=1.18.0",
"proto-plus-stubs>=0.7.0",
"types-parsimonious>=0.10.0.20240331",
"types-pyyaml>=6.0.12.20240311",
"types-ujson>=5.9.0.0",
"types-zstd>=1.5.0.20240311; platform_python_implementation == \"PyPy\"",
]
packaging = [
"cx-Freeze>=7.0.0",
"nuitka>=2.2.1",
"pyinstaller>=6.6.0",
"shellingham<2.0.0,>=1.5.4",
]
docs = ["mkdocs-material<10.0.0,>=9.5.22"]
test = ["pytest>=8.2.0", "pytest-datadir>=1.5.0"]
[tool.pdm.build]
includes = ["libresvip"]
excludes = ["tests", "libresvip/res/qml/**", "libresvip/res/locales/*/LC_MESSAGES/libresvip.po", "libresvip/middlewares/*/*.pot", "libresvip/plugins/*/*.pot", "**/.mypy_cache"]
[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
"PT", # pytest-style
"PTH", # pathlib
"PYI", # stubs
"SIM", # simplify
"T10", # debugger
"T20", # print
"TCH", # type-checking
"TRY", # tryceratops
"UP", # pyupgrade
"W", # style warnings
"YTT", # sys.version
]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"E501", # Line too long
"UP007", # Use `X | Y` for type annotations
]
[tool.ruff.lint.isort]
known-first-party = ['libresvip', 'tests']
known-third-party = ['srt']
[tool.mypy]
disable_error_code = "attr-defined,import-not-found,operator,return-value,type-abstract,unused-ignore"
allow_redefinition = true
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 = ["pdm-backend", "setuptools", "wheel"]
build-backend = "pdm.backend"