File size: 1,857 Bytes
b1e3e0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[project]
name = "ytmusicapi"
description = "Unofficial API for YouTube Music"
requires-python = ">=3.10"
authors=[{name = "sigma67", email= "ytmusicapi@gmail.com"}]
license={file="LICENSE"}
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
]
dependencies = [
    "requests >= 2.22",
]
dynamic = ["version", "readme"]

[project.scripts]
ytmusicapi = "ytmusicapi.setup:main"

[project.urls]
homepage = "https://github.com/sigma67/ytmusicapi"
documentation = "https://ytmusicapi.readthedocs.io"
repository = "https://github.com/sigma67/ytmusicapi"

[build-system]
requires = ["setuptools>=65", "setuptools_scm[toml]>=7"]
build-backend = "setuptools.build_meta"

[tool.setuptools.dynamic]
readme = {file = ["README.rst"]}

[tool.setuptools_scm]

[tool.setuptools]
include-package-data=false

[tool.setuptools.package-data]
"*" = ["**.rst", "**.py", "**.mo"]

###############
# DEVELOPMENT #
###############

[tool.pytest.ini_options]
python_functions = "test_*"
testpaths = ["tests"]
addopts = "--verbose --cov --junitxml=junit.xml --retries 2 --retry-delay 5"

[tool.coverage.run]
source = ["ytmusicapi"]

[tool.coverage.report]
precision = 2

[tool.ruff]
line-length = 110
include = ["ytmusicapi/**/*.py", "tests/**/*.py"]

[tool.ruff.lint]
ignore = [ "F403", "F405", "F821", "E731", "PTH123" ]
extend-select = [
    "I",   # isort
    "UP",  # pyupgrade
    "RUF", # ruff
    "PTH", # pathlib
    "INP", # implicit namespace package
]

[tool.mypy]
files = [
    "ytmusicapi/"
]
mypy_path = "ytmusicapi"
strict = true

[dependency-groups]
dev = [
    "coverage>=7.4.0",
    'sphinx<7',
    'sphinx-rtd-theme',
    "ruff>=0.9.0",
    "mypy>=1.15.0",
    "pytest>=7.4.4",
    "pytest-cov>=4.1.0",
    "types-requests>=2.31.0.20240218",
    "pytest-retry>=1.6.3",
    "sphinx-autodoc-typehints>=1.23.0",
]