2023-11-26 18:39:10 -05:00
|
|
|
[project]
|
|
|
|
name = "mpd-now-playable"
|
2023-12-01 21:31:56 -05:00
|
|
|
dynamic = ["version"]
|
2023-11-26 18:39:10 -05:00
|
|
|
description = "Expose your MPD server as a 'now playable' app on MacOS"
|
|
|
|
authors = [
|
|
|
|
{name = "Danielle McLean", email = "dani@00dani.me"},
|
|
|
|
]
|
|
|
|
dependencies = [
|
2023-11-26 23:39:53 -05:00
|
|
|
"aiocache>=0.12.2",
|
2023-11-26 18:39:10 -05:00
|
|
|
"attrs>=23.1.0",
|
|
|
|
"pyobjc-framework-MediaPlayer>=10.0",
|
|
|
|
"python-mpd2>=3.1.0",
|
|
|
|
]
|
|
|
|
readme = "README.md"
|
2023-12-05 22:32:36 -05:00
|
|
|
|
|
|
|
requires-python = ">=3.12"
|
2023-11-26 18:39:10 -05:00
|
|
|
license = {text = "MIT"}
|
2023-12-05 22:32:36 -05:00
|
|
|
classifiers = [
|
|
|
|
"Environment :: No Input/Output (Daemon)",
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
"Operating System :: MacOS :: MacOS X",
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
"Topic :: Multimedia :: Sound/Audio :: Players",
|
|
|
|
]
|
|
|
|
|
2024-05-13 23:24:21 -04:00
|
|
|
[project.optional-dependencies]
|
|
|
|
redis = ["aiocache[redis]"]
|
|
|
|
memcached = ["aiocache[memcached]"]
|
|
|
|
msgpack = [
|
|
|
|
"ormsgpack>=1.5.0",
|
|
|
|
]
|
|
|
|
all = [
|
|
|
|
"mpd-now-playable[redis,memcached,msgpack]",
|
|
|
|
]
|
|
|
|
|
2023-12-05 22:32:36 -05:00
|
|
|
[project.urls]
|
|
|
|
Homepage = "https://git.00dani.me/00dani/mpd-now-playable"
|
|
|
|
Issues = "https://git.00dani.me/00dani/mpd-now-playable/issues"
|
2023-11-26 18:39:10 -05:00
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
mpd-now-playable = 'mpd_now_playable.cli:main'
|
|
|
|
|
|
|
|
[tool.pdm.scripts]
|
|
|
|
start = {call = 'mpd_now_playable.cli:main'}
|
|
|
|
lint = 'ruff check src/mpd_now_playable'
|
|
|
|
typecheck = 'mypy -p mpd_now_playable'
|
|
|
|
check = {composite = ['lint', 'typecheck']}
|
|
|
|
|
2023-12-01 21:31:56 -05:00
|
|
|
[tool.pdm.version]
|
|
|
|
source = "scm"
|
|
|
|
|
2023-12-01 21:25:56 -05:00
|
|
|
[build-system]
|
|
|
|
requires = ["pdm-backend"]
|
|
|
|
build-backend = "pdm.backend"
|
|
|
|
|
|
|
|
[tool.pdm.build]
|
|
|
|
excludes = ["**/.mypy_cache"]
|
|
|
|
|
2023-11-26 18:39:10 -05:00
|
|
|
[tool.pdm.dev-dependencies]
|
|
|
|
dev = [
|
|
|
|
"mypy>=1.7.1",
|
|
|
|
"ruff>=0.1.6",
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.mypy]
|
2023-11-26 18:56:34 -05:00
|
|
|
mypy_path = 'stubs'
|
2023-11-26 18:39:10 -05:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
ignore-init-module-imports = true
|
|
|
|
select = [
|
|
|
|
# pycodestyle
|
|
|
|
"E4", # import
|
|
|
|
"E7", # statement
|
|
|
|
"E9", # runtime
|
|
|
|
# flake8
|
|
|
|
"F", # standard flake8 rules
|
|
|
|
"A", # flake8-builtins
|
|
|
|
"ANN", # flake8-annotations
|
|
|
|
"ASYNC", # flake8-async
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
"S", # flake8-bandit
|
|
|
|
"INP", # flake8-no-pep420
|
|
|
|
# isort
|
|
|
|
"I",
|
|
|
|
# mccabe
|
|
|
|
"C90",
|
|
|
|
]
|
|
|
|
ignore = [
|
|
|
|
"ANN101", # missing-type-self
|
|
|
|
]
|
|
|
|
|
|
|
|
[tool.ruff.lint.flake8-annotations]
|
|
|
|
mypy-init-return = true
|
|
|
|
|
|
|
|
[tool.ruff.format]
|
|
|
|
# I prefer tabs for accessibility reasons.
|
|
|
|
indent-style = "tab"
|