-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
120 lines (108 loc) · 3.54 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
[tool.poetry]
name = "pyrosimple"
version = "2.14.2"
description = "A stripped-down version of the pyrocore tools for working with rTorrent"
authors = ["kannibalox <[email protected]>"]
repository = "https://github.com/kannibalox/pyrosimple"
documentation = "https://kannibalox.github.io/pyrosimple/"
readme = "README.md"
license = "GPL-3.0-or-later"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Communications :: File Sharing",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
packages = [
{include = "pyrosimple", from = "src"},
{include = "pyrosimple/py.typed", from = "src"},
]
[tool.poetry.dependencies]
python = ">=3.7.2,<4"
"bencode.py" = "^4.0.0"
APScheduler = {version = "^3.9.0", optional = true}
Jinja2 = "^3.1.0"
python-daemon = "^3.0.1"
importlib-resources = { version = "^5.4.0", python = "<3.9" }
parsimonious = "^0.10.0"
prometheus-client = "^0.16.0"
prompt-toolkit = "^3.0.30"
requests = "^2.28.1"
shtab = "^1.5.5"
inotify = {version = "^0.2.10", optional = true}
python-box = "^7.0.0"
tomli = { version = "^2.0.1", python = "<3.11" }
tomli-w = "^1.0.0"
importlib-metadata = {version = "6.7.0", python = "3.7"}
[tool.poetry.extras]
torque = ["APScheduler", "inotify"]
[tool.poetry.scripts]
rtxmlrpc = "pyrosimple.scripts.rtxmlrpc:run"
rtcontrol = "pyrosimple.scripts.rtcontrol:run"
lstor = "pyrosimple.scripts.lstor:run"
chtor = "pyrosimple.scripts.chtor:run"
mktor = "pyrosimple.scripts.mktor:run"
pyrotorque = "pyrosimple.scripts.pyrotorque:run"
pyroadmin = "pyrosimple.scripts.pyroadmin:run"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
coverage = "^7.0.5"
pylint = [{version="^2.17.7", python = "<3.12"},{version="^3.3.3", python = ">=3.12"}]
pytest = "^7.0.1"
typing-extensions = "^4.1.1"
black = "^23.1.0"
isort = "^5.10.1"
mypy = "^1.1.1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.3.0"
mkdocs-material = "^9.0.4"
mkdocs-include-markdown-plugin = "^3.8.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pylint]
[tool.pylint.'message control']
disable="locally-disabled, no-else-return, too-many-arguments, logging-format-interpolation, too-few-public-methods, protected-access, duplicate-code, consider-using-f-string, fixme, invalid-name, line-too-long, design, too-many-lines, superfluous-parens"
[tool.pylint.refactoring]
max-nested-blocks = 10
[tool.black]
include = '\.py$'
extend-exclude = '''
^/docs
'''
[tool.isort]
profile = "black"
force_single_line = false
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
use_parentheses = true
extend_skip = "docs/"
remove_redundant_aliases = true
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
exclude = [
'/data/'
]
[tool.pytest.ini_options]
testpaths = ["src/tests"]
[tool.coverage.run]
omit = ["src/tests/*"]