-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
149 lines (137 loc) · 3.28 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
[build-system]
requires = [
"setuptools>=42",
"scikit-build>=0.13",
"scikit-build-core>=0.3.3",
"cmake>=3.20",
"ninja",
]
build-backend = "scikit_build_core.build"
[project]
name = "symusic"
requires-python = ">=3.8"
authors = [
{name = "Yikai Liao", email = "[email protected]"},
{name = "Zhongqi Luo", email = "[email protected]"},
{name = "Nathan Fradet"}
]
maintainers = [
{name = "Yikai Liao", email = "[email protected]"},
{name = "Zhongqi Luo", email = "[email protected]"},
{name = "Nathan Fradet"}
]
description = "A high performance MIDI file parser with comprehensible interface."
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
keywords = ["midi",
"music",
"mir"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: C++",
"Programming Language :: Python",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: File Formats",
"Topic :: Multimedia :: Sound/Audio :: MIDI",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
]
dependencies = [
"numpy",
"typing_extensions;python_version<'3.8'",
"pySmartDL",
"platformdirs"
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/Yikai-Liao/symusic"
Repository = "https://github.com/Yikai-Liao/symusic.git"
Issues = "https://github.com/Yikai-Liao/symusic/issues"
[tool.scikit-build]
cmake.minimum-version = "3.26.1"
ninja.minimum-version = "1.11"
[tool.scikit-build.cmake.define]
BUILD_SYMUSIC_PY = "ON"
[tool.scikit-build.metadata]
version.provider = "scikit_build_core.metadata.regex"
version.input = "python/symusic/__init__.py"
[project.optional-dependencies]
test = ["pytest-cov", "pytest-xdist[psutil]"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = [
"error",
]
testpaths = ["tests"]
[tool.ruff]
target-version = "py38"
exclude = ["3rdparty"]
[tool.ruff.lint]
extend-select = [
"ARG",
"A",
# "ANN",
"B",
"BLE",
"C4",
"COM",
# "D",
# "E",
"EM",
"EXE",
"F",
"FA",
# "FBT",
"G",
"I",
"ICN",
"INP",
"INT",
"ISC",
# "N",
"NPY",
"PERF",
# "PGH",
"PTH",
"PIE",
# "PL",
"PT",
"Q",
"RET",
"RSE",
"RUF",
"S",
# "SLF",
"SIM",
"T",
"TCH",
"TID",
"UP",
"W",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"S101", # allow assertions in tests
"T201", # print allowed
]
"python/symusic/core.pyi" = [
"A003", # allow using filter as method name
"A002", # allow format as argument name
"F811", # the first overloaded function generated by nanobind has no @overload decorator
]
"python/symusic/soundfont.py" = [
"T201", # print allowed
]