-
-
Notifications
You must be signed in to change notification settings - Fork 601
/
pyproject.toml
297 lines (258 loc) · 7.46 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
[tool.poetry]
name = "sickchill"
version = "2024.3.1"
description = 'Automatic Video Library Manager for TV Shows'
license = "GPL-3.0-or-later"
authors = [
"Dustyn Gibson <[email protected]>",
"BKSteve <[email protected]>"
]
maintainers = [
"Dustyn Gibson <[email protected]>"
]
readme = "README.md"
repository = "https://github.com/sickchill/sickchill"
homepage = "https://sickchill.github.io"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Topic :: Multimedia :: Video",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10"
]
packages = [
{ include = "sickchill" },
{ include = "SickChill.py" },
{ include = "frontend" }
]
[tool.poetry.urls]
"Changelog" = "https://github.com/SickChill/SickChill/blob/master/CHANGES.md"
"Bug Tracker" = "https://github.com/sickchill/sickchill/issues"
"News" = "https://raw.githubusercontent.com/SickChill/sickchill.github.io/master/sickchill-news/news.md"
"Discord" = "https://discord.com/invite/U8WPBdf"
"Donate"= "https://github.com/SickChill/SickChill/wiki/Donations"
[tool.poetry.scripts]
SickChill = "SickChill:main"
sickchill = "SickChill:main"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = ">=22.8,<25.0"
coveralls = "^3.3.1"
mock = ">=4.0.3,<6.0.0"
Babel = "^2.9.0"
pytest-cov = ">=3,<5"
pytest-isort = "^3.0.0"
flake8-pytest-style = "^1.5.1"
flake8-commas = "^2.0.0"
flake8-quotes = "^3.3.0"
flake8-docstrings = "^1.6.0"
flake9 = "^3.8.3"
codecov = "^2.1.12"
pytest = ">=7.0.1,<9.0.0"
isort = "^5.10.1"
poethepoet = ">=0.16,<0.26"
po2json = "^0.2.2"
pre-commit = ">=2.20,<4.0"
[tool.poetry.group.speedups]
optional = true
[tool.poetry.group.speedups.dependencies]
html5lib = "^1.1"
lxml = ">=4.9.1,<6.0.0"
Js2Py = ">=0.71,<0.75"
pymediainfo = ">=5.0.3,<7.0.0"
[tool.poetry.group.types]
optional = true
[tool.poetry.group.types.dependencies]
types-attrs = "^19.1.0"
types-pyOpenSSL = ">=22.0.10,<25.0.0"
types-python-dateutil = "^2.8.19"
types-python-slugify = ">=6.1,<9.0"
types-requests = "^2.28.11"
types-chardet = "^5.0.4"
types-pytz = ">=2022.2.1,<2025.0.0"
types-setuptools = ">=65.3,<70.0"
types-six = "^1.16.20"
[tool.poetry.group.experimental]
optional = true
[tool.poetry.group.experimental.dependencies]
pyaes = "^1.6.1"
[tool.poetry.group.frontend]
optional = true
[tool.poetry.group.frontend.dependencies]
Flask = ">=2.2.2,<4.0.0"
urllib3 = "<3.0.0"
flask-sqlalchemy = "^3.0.3"
[tool.poetry.extras]
experimental = ["experimental"]
speedups = ["speedups"]
types = ["types"]
frontend = ["frontend"]
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.flake8]
exclude = [
".eggs",
".git",
"__pycache__",
"docs/source/conf.py",
"build",
"dist",
]
inline-quotes = "double"
docstring-convention = "numpy"
ignore = [
"C812",
"D4",
"D400",
"D401",
"D403",
"D406",
"D407",
"D200",
"D202",
"D205",
"D100",
"D101",
"D102",
"D103",
"D104",
"D106",
"S101",
"PT009",
"PT017"
]
max_line_length = 160
show_source = "True"
builtins = ["_"]
#select = 'C103'
[tool.pytest.ini_options]
testpaths = ["tests", "sickchill", "SickChill.py"]
addopts = "--cov=sickchill --cov-report xml --no-cov-on-fail"
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 160
combine_as_imports = true
order_by_type = false
remove_imports = [ "from __future__ import absolute_import", "from __future__ import print_function", "from __future__ import unicode_literals" ]
known_first_party = "sickchill"
extra_standard_library = [ "posixpath", "ntpath" ]
use_parentheses = true
src_paths = [ "sickchill", "tests", "SickChill.py", "setup.py" ]
[tool.black]
line-length = 160
target_version = ['py310']
include = '\.pyi?$'
exclude = 'contrib/scmaintools|\.venv|venv|\.git|\.hg|\.mypy_cache|\.tox|_build|buck-out|build|dist|node_modules|bower_components'
[tool.poe.tasks]
pytest = "pytest"
yarn = "yarn"
xo = "xo"
ava = "ava"
_black = {cmd = "black . --check --diff", help = "Check code style using black"}
_isort = {cmd = "isort . --check-only --diff", help = "Check import order"}
flake8 = {cmd = "flake8 --select C103 sickchill tests SickChill.py", help = "Check for undefined variables"}
isort = {cmd = "isort .", help = "Fix import order"}
black = {cmd = "black .", help = "Reformat code using black"}
test_providers = {cmd = "pytest tests/sickchill_tests/providers/torrent/test_parsing.py", help = "Run provider tests"}
crowdin_upload = "crowdin-cli-py upload sources -c .github/crowdin.yml"
crowdin_download = "crowdin-cli-py download -c .github/crowdin.yml"
po2json = "po2json --format jed "
codecov = "codecov"
lint = ["_black", "_isort", "flake8"]
format = ["black", "isort", "flake8"]
_poetry_update = {shell = "poetry update", help = "update python dependancies"}
_yarn_upgrade = {cmd = "yarn upgrade", help = "update yarn dependancies"}
_add_locks = {shell = "git add pyproject.toml yarn.lock", help = "Add yarn and poetry lock files"}
depup = ["_poetry_update", "_yarn_upgrade", "_add_locks"]
update_translations = ["babel_extract", "babel_update", "crowdin_upload", "crowdin_download", "babel_compile", "po2json"]
update_dependencies = {shell = "poetry update && yarn upgrade && git add pyproject.toml yarn.lock"}
test = [
{ ref = "lint" },
{ cmd = "yarn test" },
{ cmd = "pytest" }
]
babel_extract = """
pybabel extract
--project=sickchill
--mapping-file=.github/babel-mapping.cfg
--width=80
--charset=utf-8
--output-file=sickchill/locale/messages.pot
--input-dirs=sickchill
--keywords=_n:1,2
--copyright-holder=SickChill
--add-comments="TRANSLATORS:"
--sort-output
"""
babel_compile = """
pybabel compile
--mapping-file=.github/babel-mapping.cfg
--directory=sickchill/locale
"""
babel_init = """
pybabel init
--mapping_file=.github/babel-mapping.cfg
--output-dir=sickchill/locale
--input-file=sickchill/locale/messages.pot
"""
babel_update = """
pybabel update
--output-dir=sickchill/locale
--input-file=sickchill/locale/messages.pot
--ignore-obsolete
--previous
"""
[tool.poetry.dependencies]
python = ">=3.8,<4"
"bencode.py" = "^4.0.0"
configobj = "^5.0.6"
greenlet = {version = ">=2.0.0", allow-prereleases = true}
ipaddress = "^1.0.23"
jsonrpclib-pelix = "^0.4.2"
Mako = "^1.1.4"
markdown2 = "^2.4.0"
pyOpenSSL = ">=20.0.1,<25.0.0"
python-dateutil = "^2.8.1"
python-twitter = "^3.5"
rarfile = "^4.0"
subliminal = "^2.1.0"
tmdbsimple = "^2.8.0"
tornado = "^6.3.2"
tvdbsimple = "^1.0.6"
Unidecode = "^1.2.0"
validators = ">=0.18.2,<0.23.0"
enzyme = "^0.4.1"
python3-fanart = "^2.0.0"
gntp = "^1.0.3"
"tus.py" = "^1.3.4"
win-inet-pton = "^1.1.0"
PyNMA = "^1.0"
"putio.py" = "^8.7.0"
profilehooks = "^1.12.0"
imagesize = "^1.2.0"
Send2Trash = ">=1.5.0"
deluge-client = "^1.9.0"
ifaddr = ">=0.1.7,<0.3.0"
new-rtorrent-python = "^1.0.1-alpha.0"
qbittorrent-api = ">=2021.3.18,<2025.0.0"
packaging = ">=20.9,<24.0"
timeago = "^1.0.15"
SQLAlchemy = ">=2.0.0,<3.0.0"
python-slugify = ">=4.0.1,<9.0.0"
guessit = "^3.3.1"
requests = "^2.25.1"
babelfish = ">=0.6.0"
kodipydent-alt = ">=2022.9.3"
beekeeper-alt = ">=2022.9.3"
stevedore = "^5.1.0"
cachecontrol = ">=0.13.1,<0.15.0"
cinemagoer = {version = "^2023.5.1", allow-prereleases = true}