forked from feeluown/FeelUOwn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
187 lines (175 loc) · 4.73 KB
/
Copy pathpyproject.toml
File metadata and controls
187 lines (175 loc) · 4.73 KB
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
[project]
name = "feeluown"
dynamic = ["version"]
description = "*nix music player"
readme = { file = "README.md", content-type = "text/markdown" }
license = "GPL-3.0-or-later"
authors = [{ name = "feeluown", email = "yinshaowen241@gmail.com" }]
keywords = ['media', 'player', 'application', 'PyQt6', 'music']
classifiers = [
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3 :: Only',
'Environment :: X11 Applications :: Qt',
"Topic :: Multimedia :: Sound/Audio",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
urls = { "homepage" = "https://github.com/feeluown/FeelUOwn", "source" = "https://github.com/feeluown/FeelUOwn" }
requires-python = ">=3.10"
# FIXME: depends on PyQt6
# - PyQt6.QtWidgets/QtCore/QtGui
# - PyQt6.QtSvg
# - PyQt6.QtOpenGL
#
# The feeluown.compat module will choose the right package
# for different python version
dependencies = [
'janus',
'requests',
'qasync',
'tomlkit',
'packaging',
'pydantic>=1.10', # v1 and v2 are both ok.
'mutagen>=1.37',
"fluent-runtime>=0.4.0",
]
[project.optional-dependencies]
battery = [
"fuo-netease>=1.0.8",
"fuo-qqmusic>=1.0.16",
"fuo-ytmusic>=0.4.16",
# "fuo-kuwo>=0.1.1",
# https://github.com/BruceZhang1993/feeluown-bilibili
"feeluown-bilibili>=0.5.4",
]
ai = ["langchain[openai]>=1.0"]
qt = ["PyQt6"]
macOS = ["aionowplaying>=0.10"]
win32 = ["pyshortcuts", "aionowplaying>=0.10"]
jsonrpc = ["json-rpc"]
webserver = ["sanic", "json-rpc"]
mcpserver = ["mcp"]
webengine = ["PyQt6-WebEngine"]
cookies = ["yt-dlp"]
ytdl = ["yt-dlp"]
# Sync this with `dependency-groups.dev` below for backward compatibility.
# So that users using `pip install .[dev]` can get the same packages.
dev = [
"pyinstaller",
"flake8",
"Flake8-pyproject",
"pylint",
"mypy",
"mcp",
"pyqt5-stubs",
"pytest>=9.0",
"pytest-runner",
"pytest-cov",
"pytest-asyncio",
"pytest-qt",
"pytest-mock",
"pytest-benchmark>=3.4.1",
"sphinx",
"sphinx_rtd_theme",
]
i18n-match = [
"langcodes>=3.5.1",
]
[dependency-groups]
dev = [
# packaging
"pyinstaller",
# lint
"flake8",
"Flake8-pyproject",
"pylint",
"mypy",
"mcp",
# pyqt5-stubs seems more accurate than the stubs packaged in PyQt6 package.
# For example, the stubs in PyQt6 has wrong type hint for Qt.ItemFlag.ItemIsSelectable.
# Some pyqt5 package installed by system package manager may not
# contain stubs.
"pyqt5-stubs",
# unittest
"pytest>=9.0",
"pytest-runner",
"pytest-cov",
"pytest-asyncio",
"pytest-qt",
"pytest-mock",
"pytest-benchmark>=3.4.1",
# docs
"sphinx",
"sphinx_rtd_theme",
]
[project.scripts]
feeluown = "feeluown.__main__:main"
fuo = "feeluown.__main__:main"
feeluown-genicon = "feeluown.cli.install:generate_icon"
[project.entry-points]
"fuo.plugins_v1" = { local = "feeluown.local" }
# https://pyinstaller.org/en/stable/hooks.html
"pyinstaller40" = { hook-dirs = "feeluown.pyinstaller.hook:get_hook_dirs" }
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
# Setuptools configuration
[tool.setuptools.dynamic]
version = { attr = "feeluown.__version__" }
[tool.setuptools.packages.find]
exclude = ['tests*']
[tool.setuptools.package-data]
"*" = [
'nowplaying/linux/*.xml',
'gui/assets/icons/*.png',
'gui/assets/icons/*.ico',
'gui/assets/icons/*.icns',
'gui/assets/themes/*.qss',
'gui/assets/themes/*.colors',
'i18n/assets/*/*.ftl',
]
# ruff configuration
[tool.ruff.lint.pycodestyle]
max-line-length = 89
# yapf configuration
[tool.yapf]
column_limit = 89
based_on_style = "pep8"
coalesce_brackets = true
dedent_closing_brackets = true
# mypy configuration
[tool.mypy]
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = ["feeluown.mpv", "feeluown.gui.helpers"]
ignore_errors = true
# pytest configuration
[tool.pytest]
minversion = "9.0"
filterwarnings = ["ignore:use feeluown.*?:DeprecationWarning"]
addopts = [
"-q",
"--ignore=docs/",
"--ignore-glob=*/**/mpv*.py",
"--ignore=feeluown/nowplaying/",
"--ignore=feeluown/gui/",
"--ignore=feeluown/webserver/",
"--ignore=examples/",
"--ignore=pyinstaller_hooks/",
"--ignore=research/",
"--benchmark-skip",
"--cov-report=",
"--cov=feeluown",
"--doctest-modules",
]
# FIXME: does this work?
asyncio_default_fixture_loop_scope = "function"
# flake8 configuration (via flake8-pyproject)
[tool.flake8]
max-line-length = 89
exclude = "feeluown/mpv.py"
extend-ignore = ["E203", "E402"]