-
-
Notifications
You must be signed in to change notification settings - Fork 170
/
pyproject.toml
187 lines (163 loc) · 6.57 KB
/
pyproject.toml
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[build-system]
requires = ["poetry-core>=1.4.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "scdlbot"
description = "Telegram Bot for downloading MP3 rips of tracks/sets from SoundCloud, Bandcamp, YouTube with tags and artwork"
version = "0.15.0"
license = "MIT"
authors = ["George Pchelkin <[email protected]>"]
readme = "README.rst"
homepage = "https://github.com/gpchelkin/scdlbot"
documentation = "https://scdlbot.readthedocs.io"
repository = "https://github.com/gpchelkin/scdlbot"
keywords = ["scdlbot", "telegram", "bot", "soundcloud", "bandcamp", "youtube", "mixcloud", "yandex", "audio", "music", "download"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Internet",
"Operating System :: OS Independent",
"Natural Language :: English",
]
include = ["AUTHORS.rst", "CONTRIBUTING.md", "CHANGELOG.rst", "LICENSE", "README.rst", "tests/*", "docs/*.rst", "docs/conf.py", "docs/Makefile", "docs/*.jpg", "docs/*.png", "docs/*.gif", "scdlbot/texts/*"]
[tool.poetry.urls]
# https://github.com/python-poetry/poetry/blob/master/docs/pyproject.md#urls
"Issues" = "https://github.com/gpchelkin/scdlbot/issues"
"CI" = "https://github.com/gpchelkin/scdlbot/actions"
"Changelog" = "https://github.com/gpchelkin/scdlbot/releases"
#"Changelog" = "https://github.com/gpchelkin/scdlbot/blob/master/CHANGELOG.rst"
[tool.poetry.scripts]
scdlbot = "scdlbot.__main__:main"
[tool.poetry.dependencies]
python = "^3.10"
python-telegram-bot = { version = "21.9", extras = ["webhooks", "job-queue", "http2", "rate-limiter"] }
#ptbcontrib = { git = "https://github.com/python-telegram-bot/ptbcontrib.git", branch = "main", extras = ["postgres-persistence"] }
# https://python-poetry.org/docs/dependency-specification#path-dependencies
#ptbcontrib = { path = "../ptbcontrib/", develop = false }
requests = { version = "^2.31.0", extras = ["socks"] }
pebble = "^5.0.7"
boltons = "^24.1.0"
mutagen = "^1.47.0"
plumbum = "^1.9.0"
ffmpeg-python = "0.2.0"
prometheus_client = "^0.21.0"
sdnotify = "^0.3.2"
fake-useragent = "^2.0.3"
#python-telegram-handler = "^2.2.1"
#patool = "1.12"
#pyshorteners = "1.0.1"
#transliterate = "1.10.2"
### For publishing to PyPI at release:
# https://github.com/yt-dlp/yt-dlp/wiki/Forks
#yt-dlp = "2024.10.7"
##youtube_dl = "2021.12.17"
##youtube-dlc = "2020.11.11.post3"
#scdl = "2.12.1"
bandcamp-downloader = "0.0.16"
### For making it work better using latest git revision:
yt-dlp = { git = "https://github.com/yt-dlp/yt-dlp.git", branch = "master" }
##yt-dlp = { git = "https://github.com/pritam20ps05/yt-dlp.git", branch = "instagram_fix" }
##ytdl-patched = { git = "https://github.com/ytdl-patched/ytdl-patched.git", branch = "ytdlp" }
##youtube_dl = { git = "https://github.com/l1ving/youtube-dl.git" }
##youtube_dl = { git = "https://github.com/gilou/youtube-dl.git", branch = "bandcamp_update" }
##youtube_dl = { git = "https://github.com/gpchelkin/youtube-dl.git", branch = "bandcamp_update" }
##youtube-dlc = { git = "https://github.com/blackjack4494/yt-dlc.git", branch = "master" }
scdl = { git = "https://github.com/scdl-org/scdl.git", branch = "master" }
##scdl = { git = "https://github.com/gpchelkin/scdl.git", branch = "add_permalink_url_to_filename" }
##scdl = { git = "https://github.com/def-hash/scdl.git", branch = "user-agent-fix" }
##scdl = { git = "https://github.com/7x11x13/scdl.git", branch = "master" }
#bandcamp-downloader = { git = "https://github.com/iheanyi/bandcamp-dl.git", branch = "master" }
#bandcamp-downloader = { git = "https://github.com/iheanyi/bandcamp-dl.git", rev = "4eae79a88fd4af159bbdfbaac66ce0d97f64677e" }
#bandcamp-downloader = { git = "https://github.com/gpchelkin/bandcamp-dl.git", branch = "pyproject-poetry" }
#fake-useragent = { git = "https://github.com/fake-useragent/fake-useragent.git", tag = "1.1.2" }
[tool.poetry.group.dev]
# must be false if tox-poetry is used (it doesn't support groups):
optional = true
[tool.poetry.group.dev.dependencies]
# make additional external tools: poetry, tox, (tox-poetry)
# make format:
isort = "^5.12"
black = "^24.10.0"
# make lint:
wemake-python-styleguide = "^0.19.2"
doc8 = "^1.1"
nitpick = "^0.35"
safety = "^3.2.7"
#flakeheaven = "^3.3"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "^8.1.3"
sphinx-autodoc-typehints = "^2.3.0"
#m2r2 = "^0.3"
# https://github.com/CrossNox/m2r2/issues/68
# https://github.com/CrossNox/m2r2/pull/69
#m2r2 = { git = "https://github.com/adrien-berchet/m2r2.git", branch = "patch-1" }
myst-parser = "^4.0.0"
tomli = "^2.1"
recommonmark = "^0.7"
typing-extensions = "^4.9"
[tool.isort]
# isort configuration:
# https://pycqa.github.io/isort/docs/configuration/options.html
# https://pycqa.github.io/isort/docs/configuration/profiles.html
# https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html#3-vertical-hanging-indent
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
# match flake8 max-line-length:
line_length = 180
[tool.black]
# match flake8 max-line-length:
line-length = 180
[tool.nitpick]
style = "https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/master/styles/nitpick-style-wemake.toml"
[tool.flakeheaven]
# TODO flakeheaven
# https://github.com/flakeheaven/flakeheaven
# https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/integrations/flakehell.html
# https://github.com/wemake-services/wemake-python-styleguide/blob/master/styles/flakehell.toml
format = "grouped"
show_source = true
statistics = false
doctests = true
enable_extensions = "G"
accept_encodings = "utf-8"
max_complexity = 6
max_line_length = 180
ignore = "D100, D104, D401, W504, RST303, RST304, DAR103, DAR203"
# poetry run flakeheaven baseline > .flakeheaven_baseline
baseline = ".flakeheaven_baseline"
[tool.flakeheaven.plugins]
"flake8-*" = ["+*"]
mccabe = ["+*"]
nitpick = ["+*"]
"pep8-naming" = ["+*"]
pycodestyle = ["+*"]
pyflakes = ["+*"]
"wemake-python-styleguide" = ["+*"]
[tool.tox]
# TODO https://github.com/python-poetry/poetry/blob/master/docs/faq.md#is-tox-supported
legacy_tox_ini = """
[tox]
skipsdist = true
envlist = py39, py310, py311
[gh-actions]
#tox-gh-actions: run tox only on envs which match github actions workflow python version (one env per job)
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
allowlist_externals =
make
poetry
# either use command 'poetry install',
# or use tox-poetry - it will install main and dev deps to venv with poetry
commands =
poetry install --with main,dev --verbose
make test
"""