forked from Flexget/Flexget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
168 lines (145 loc) · 4.18 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
## Build settings
[project]
name = "FlexGet"
description = """\
FlexGet is a program aimed to automate downloading or processing content (torrents, podcasts, etc.) from \
different sources like RSS-feeds, html-pages, various sites and more.\
"""
readme = "README.rst"
requires-python = ">=3.7"
authors = [
{ name = "Marko Koivusalo", email = "[email protected]" },
{ name = "Chase Sterling", email = "[email protected]" },
]
license = { file = "LICENSE" }
dynamic = ["version", "dependencies"]
[project.urls]
"Homepage" = "https://flexget.com"
"Issue Tracker" = "https://github.com/Flexget/Flexget/issues"
"Repository" = "https://github.com/Flexget/Flexget"
"Forum" = "https://github.com/Flexget/Flexget/discussions"
[project.scripts]
flexget = "flexget:main"
[project.gui-scripts]
flexget-headless = "flexget:main" # This is useful on Windows to avoid a cmd popup
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
namespaces = true
include = ["flexget*"]
exclude = ["flexget.tests*"]
[tool.setuptools.package-data]
# Everything in our package directory should go in the dist
"*" = ["*.*"]
[tool.setuptools.dynamic]
version = {attr = "flexget._version.__version__"}
dependencies = {file = "requirements.txt"}
## Dependency settings
# Poetry is only being used for dependency managment. The other metadata in this section is not used, and just
# here to fulfil poetry's requirements.
[tool.poetry]
name = "flexget"
version = "0.0.0"
description = ""
authors = []
[tool.poetry.dependencies]
python = "^3.7"
apscheduler = ">=3.10.0"
beautifulsoup4 = ">=4.5"
colorama = ">=0.4.4"
feedparser = ">=6.0.2"
guessit = ">=3.4,<4.0"
html5lib = ">=0.11"
importlib-metadata = { version = ">=3.6", python = "<3.10" } # TODO: remove this after we drop python3.9
jinja2 = ">=3.0,<4.0"
jsonschema = ">=2.0"
loguru = ">=0.4.1"
psutil = ">=5.8.0"
pynzb = "^0.1.0"
pyrss2gen = "^1.1"
python-dateutil = "^2.8.2"
pyyaml = ">=4.2b1"
rebulk = ">=2.0.0"
requests = ">=2.20.0"
rich = ">=9.0.0"
rpyc = ">=5.0,!=5.2.*,!=5.3.0" # 5.2.1-5.3.0 cause a hang https://github.com/Flexget/Flexget/issues/3601
sqlalchemy = ">=2.0,<2.999"
# WebUI/API Deps
cherrypy = ">=18.0.0"
flask-compress = ">=1.2.1"
flask-cors = ">=2.1.2"
flask-login = ">=0.4.0"
flask-restful = ">=0.3.3"
flask-restx = ">=0.5.1"
flask = ">=0.7"
packaging = ">=21.3"
pyparsing = ">=2.4.7"
werkzeug = ">=2.2.3"
zxcvbn = "^4.4.24"
[tool.poetry.group.dev.dependencies]
black = ">=18.9b0"
codacy-coverage = ">=1.2.18"
coverage = ">=6.0"
gitpython = ">=3.1.18"
pre-commit = ">=2.9.0"
pytest-cov = ">=3.0.0"
pytest-runner = "^6.0.0"
pytest-xdist = ">=2.4.0"
pytest = ">=6.2.4"
ruff = ">=0.0.261"
sphinx = ">=5.0.0"
sqlalchemy-stubs = "^0.4"
vcrpy = ">=4.1.1"
[tool.poetry.group.release.dependencies]
build = ">=0.9.0"
click = ">=8.1.3"
twine = ">=3.6.0"
[tool.poetry.group.plugin-test.dependencies]
# These are optional dependencies for plugins that have tests in the test suite
boto3 = ">=1.24.89"
plexapi = ">=4.13.1"
pysftp = "^0.2.9"
subliminal = ">= 2.0rc1"
[tool.poetry.group.docker.dependencies]
transmission-rpc = "^4.1.4"
qbittorrent-api = "^2023.3.44"
deluge-client = "^1.9.0"
cloudscraper = "^1.2.69"
python-telegram-bot = "^12.8"
[tool.poetry.scripts]
flexget = 'flexget:main'
## Other tool settings
[tool.pytest.ini_options]
testpaths = ["flexget/tests"]
[tool.black]
line-length = 99
skip-string-normalization = true
target-version = ['py36', 'py37', 'py38', 'py39', 'py310']
# Only include files in /flexget/, or directly in project root
include = '^/(flexget/.*)?[^/]*\.pyi?$'
exclude = '''
(
/(
\.git
| \.venv
| \.idea
| dist
| flexget/ui
)/
)
'''
[tool.ruff]
line-length = 99
select = ["C4", "E", "F", "I", "ISC", "PLE", "RUF", "UP"]
ignore = [
"E501", # We leave line length up to black
"E711", "E712", # Comparisons to True/False/None are valid for sqlalchemy
"PLE1205", # Thinks we are using stdlib logging rather than loguru
"RUF001", # Some of these ambiguous unicode are in tests on purpose
"RUF012", # Maybe can re-enable after https://github.com/astral-sh/ruff/issues/5243
]
[tool.ruff.isort]
known-first-party = ['flexget']
[tool.mypy]
plugins = ["sqlmypy"]