2023-10-14 11:50:32 +00:00
|
|
|
[project]
|
|
|
|
name = "xiaomusic"
|
2024-07-22 15:30:55 +00:00
|
|
|
version = "0.3.11"
|
2023-10-14 11:50:32 +00:00
|
|
|
description = "Play Music with xiaomi AI speaker"
|
|
|
|
authors = [
|
2024-07-06 15:46:15 +00:00
|
|
|
{name = "涵曦", email = "im.hanxi@gmail.com"},
|
2023-10-14 11:50:32 +00:00
|
|
|
]
|
|
|
|
dependencies = [
|
|
|
|
"aiohttp>=3.8.6",
|
2024-07-09 15:03:20 +00:00
|
|
|
"miservice-fork>=2.7.0",
|
2023-10-14 11:50:32 +00:00
|
|
|
"mutagen>=1.47.0",
|
2024-07-02 03:11:17 +00:00
|
|
|
"yt-dlp>=2024.07.01",
|
2024-07-13 01:56:40 +00:00
|
|
|
"uvicorn>=0.30.1",
|
|
|
|
"fastapi>=0.111.0",
|
|
|
|
"starlette>=0.37.2",
|
2023-10-14 11:50:32 +00:00
|
|
|
]
|
|
|
|
requires-python = ">=3.10"
|
|
|
|
readme = "README.md"
|
|
|
|
license = {text = "MIT"}
|
|
|
|
|
2024-06-30 05:40:08 +00:00
|
|
|
[project.urls]
|
|
|
|
Homepage = "https://github.com/hanxi/xiaomusic"
|
|
|
|
|
|
|
|
[project.scripts]
|
2024-06-30 06:38:04 +00:00
|
|
|
xiaomusic = "xiaomusic.cli:main"
|
2024-06-30 05:40:08 +00:00
|
|
|
|
2023-10-14 11:50:32 +00:00
|
|
|
[build-system]
|
|
|
|
requires = ["pdm-backend"]
|
|
|
|
build-backend = "pdm.backend"
|
2024-05-19 15:53:31 +00:00
|
|
|
|
|
|
|
[tool.pdm]
|
2024-06-14 01:58:10 +00:00
|
|
|
[tool.pdm.dev-dependencies]
|
|
|
|
lint = [
|
|
|
|
"ruff>=0.4.8",
|
|
|
|
]
|
2024-07-06 15:46:15 +00:00
|
|
|
dev = [
|
|
|
|
"commitizen>=3.27.0",
|
|
|
|
]
|
2024-06-14 01:58:10 +00:00
|
|
|
[tool.ruff]
|
2024-06-20 15:45:23 +00:00
|
|
|
lint.select = [
|
2024-07-06 15:46:15 +00:00
|
|
|
"B", # flake8-bugbear
|
|
|
|
"C4", # flake8-comprehensions
|
|
|
|
"E", # pycodestyle - Error
|
|
|
|
"F", # Pyflakes
|
|
|
|
"I", # isort
|
|
|
|
"W", # pycodestyle - Warning
|
|
|
|
"UP", # pyupgrade
|
2024-06-14 01:58:10 +00:00
|
|
|
]
|
2024-06-20 15:45:23 +00:00
|
|
|
lint.ignore = [
|
2024-07-06 15:46:15 +00:00
|
|
|
"E501", # line-too-long
|
|
|
|
"W191", # tab-indentation
|
2024-06-14 01:58:10 +00:00
|
|
|
]
|
|
|
|
include = ["**/*.py", "**/*.pyi", "**/pyproject.toml"]
|
|
|
|
|
2024-06-20 15:45:23 +00:00
|
|
|
[tool.ruff.lint.pydocstyle]
|
2024-06-14 01:58:10 +00:00
|
|
|
convention = "google"
|
|
|
|
|
2024-07-13 01:56:40 +00:00
|
|
|
[tool.ruff.lint.flake8-bugbear]
|
|
|
|
extend-immutable-calls = ["fastapi.Depends", "fastapi.params.Depends", "fastapi.Query", "fastapi.params.Query"]
|
|
|
|
|
2024-06-14 01:58:10 +00:00
|
|
|
[tool.pdm.scripts]
|
|
|
|
lint = "ruff check ."
|
|
|
|
fmt = "ruff format ."
|
2024-07-06 14:49:41 +00:00
|
|
|
|
|
|
|
[tool.commitizen]
|
|
|
|
name = "cz_conventional_commits"
|
|
|
|
tag_format = "v$version"
|
|
|
|
version_scheme = "pep440"
|
|
|
|
version_provider = "pep621"
|
|
|
|
update_changelog_on_bump = true
|
|
|
|
major_version_zero = true
|
2024-07-06 15:46:15 +00:00
|
|
|
version_files = [
|
|
|
|
"xiaomusic/__init__.py",
|
|
|
|
]
|