chore(project): add repository scaffolding and build config
This commit is contained in:
commit
941e45a20f
5 files changed
+1065
No files matched your search
@@ -0,0 +1,64 @@
|
||||
[project]
|
||||
name = "somafm-tui"
|
||||
version = "0.1.0"
|
||||
description = "A flashy terminal radio for SomaFM with a live spectrum analyser, MPRIS support and song history"
|
||||
readme = "README.md"
|
||||
license = "WTFPL"
|
||||
license-files = ["LICENSE"]
|
||||
requires-python = ">=3.10"
|
||||
authors = [{ name = "somafm-tui contributors" }]
|
||||
keywords = ["somafm", "radio", "tui", "terminal", "mpris", "audio"]
|
||||
classifiers = [
|
||||
"Environment :: Console",
|
||||
"Intended Audience :: End Users/Desktop",
|
||||
"Programming Language :: Python :: 3",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
"Topic :: Multimedia :: Sound/Audio",
|
||||
]
|
||||
dependencies = [
|
||||
"textual>=8.0,<9",
|
||||
"rich>=14.2",
|
||||
"httpx>=0.27",
|
||||
"numpy>=2.0",
|
||||
"pillow>=10.0",
|
||||
"dbus-next>=0.2.3; sys_platform == 'linux'",
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
somafm-tui = "somafm_tui.__main__:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["somafm_tui"]
|
||||
|
||||
[tool.hatch.build.targets.wheel.force-include]
|
||||
"somafm_tui/theme.tcss" = "somafm_tui/theme.tcss"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=8.0",
|
||||
"pytest-asyncio>=0.24",
|
||||
]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
asyncio_mode = "auto"
|
||||
testpaths = ["tests"]
|
||||
|
||||
[tool.ruff]
|
||||
target-version = "py310"
|
||||
line-length = 100
|
||||
extend-exclude = ["dist", ".venv", "build"]
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E4", "E7", "E9", "F", "I", "UP", "B", "SIM", "RUF"]
|
||||
ignore = ["RUF001"] # en/em dashes are part of real SomaFM metadata
|
||||
# dbus-next needs short signature strings ("s", "a{sv}", "x", …) in
|
||||
# annotations; they are not Python names.
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"somafm_tui/mpris.py" = ["F821", "F722", "UP037"]
|
||||
Reference in new issue
Block a user