Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (116 loc) · 3.53 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (116 loc) · 3.53 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "spotapi"
version = "2.1.0"
description = "Typed async access to Spotify's public catalogue and existing players. No API key."
readme = "README.md"
requires-python = ">=3.11"
license = { file = "LICENSE" }
authors = [{ name = "Aran404", url = "https://github.com/Aran404" }]
keywords = [
"spotify",
"async",
"asyncio",
"api",
"wrapper",
"spotify-api",
"spotify-private-api",
"no-api-key",
]
classifiers = [
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
dependencies = [
"wreq>=0.12.3,<0.13",
]
[project.scripts]
spotapi = "spotapi.cli:main"
spotapi-mcp = "spotapi.mcp:main"
[project.optional-dependencies]
mcp = ["mcp>=1.12,<2"]
browser = ["playwright>=1.55,<2"]
keyring = ["keyring>=25,<26"]
media = ["mutagen>=1.47,<2"]
studio = ["pywebview>=6.2,<7", "python-dotenv>=1.0"]
demo = [
"textual>=8.2,<9",
"textual-image>=0.12,<0.13; python_version < '3.12'",
"textual-image>=0.14,<0.15; python_version >= '3.12'",
"pillow>=11,<14",
"httpx>=0.28,<0.29",
]
dev = [
"black>=24.0",
"coverage>=7.6",
"pyright>=1.1",
"python-dotenv>=1.0",
"ruff>=0.4",
"pytest>=8.0",
"pytest-asyncio>=0.24",
"playwright>=1.55,<2",
]
[project.urls]
Homepage = "https://github.com/Aran404/SpotAPI"
Documentation = "https://spotapi.readthedocs.io/"
Repository = "https://github.com/Aran404/SpotAPI"
"Bug Tracker" = "https://github.com/Aran404/SpotAPI/issues"
Changelog = "https://github.com/Aran404/SpotAPI/blob/main/CHANGELOG.md"
[tool.hatch.build]
exclude = ["spotapi/*.zip", "/docs/development"]
[tool.hatch.build.targets.wheel]
packages = ["spotapi"]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
addopts = "--import-mode=importlib"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
markers = [
"authenticated: tests requiring SPOTIFY_COOKIE",
"mutates: live checks that change playback or account data",
"live: real Spotify requests enabled with --live",
]
# ---------------------------------------------------------------------------
# Linting (Ruff)
# ---------------------------------------------------------------------------
[tool.ruff]
line-length = 99
target-version = "py311"
[tool.black]
line-length = 99
target-version = ["py311"]
[tool.coverage.run]
branch = true
source = ["spotapi"]
relative_files = true
[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 1
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "C4", "SIM", "TID", "RUF022", "RUF100"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["spotapi"]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"
# ---------------------------------------------------------------------------
# Type Checking (Pyright)
# ---------------------------------------------------------------------------
[tool.pyright]
include = ["spotapi", "examples", "tests", "benchmarks"]
pythonVersion = "3.11"
typeCheckingMode = "strict"
executionEnvironments = [{ root = "tests", extraPaths = ["."], reportPrivateUsage = false }]