-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
133 lines (123 loc) · 4.12 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
[tool.pytest.ini_options]
pytest_plugins = ["pytest_profiling"]
[tool.poetry]
name = "scan-to-paperless"
version = "0.0.0"
description = "Tool to scan and process documents to Paperless"
readme = "README.md"
keywords = ["scan", "paperless"]
license = "BSD-2-Clause"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Typing :: Typed',
]
authors = ["Stéphane Brunner <[email protected]>"]
homepage = "https://hub.docker.com/r/sbrunner/scan-to-paperless/"
repository = "https://github.com/sbrunner/scan-to-paperless"
[tool.poetry.scripts]
scan = "scan_to_paperless.scan:main"
scan-sane = "scan_to_paperless.scan_sane:_main"
scan-process-status = "scan_to_paperless.scan_process_status:main"
scan-process = "scan_to_paperless.process:main"
add-codes-page = "scan_to_paperless.code:main"
[tool.poetry.dependencies]
# Minimal version should also be set in the jsonschema-gentypes.yaml file
python = ">=3.10,<3.14"
numpy = { version = "2.2.1", optional = true }
scikit-image = { version = "0.25.0", optional = true }
opencv-contrib-python-headless = { version = "4.10.0.84", optional = true }
deskew = { version = "1.5.1", optional = true }
"ruamel.yaml" = "0.18.7"
argcomplete = "3.5.3"
Pillow = "11.1.0"
pypdf = { version = "5.1.0", optional = true }
pyzbar = { version = "0.1.9", optional = true }
reportlab = { version = "4.2.5", optional = true }
weasyprint = { version = "63.1", optional = true }
cffi = { version = "1.17.1", optional = true }
pikepdf = { version = "9.5.1", optional = true }
lxml= { version = "5.3.0", optional = true }
zxing-cpp = { version = "2.3.0", optional = true }
pyperclip = "1.9.0"
deepmerge = "2.0"
matplotlib = { version = "3.10.0", optional = true }
typing-extensions = "4.12.2"
Jinja2 = { version = "3.1.5", optional = true }
natsort = { version = "8.4.0", optional = true }
nbformat = { version = "5.10.4", optional = true }
requests = { version = "2.32.3", optional = true }
python-sane = { version = "2.9.1", optional = true }
asyncinotify = { version = "4.2.0", optional = true }
[tool.poetry.extras]
process = [
"numpy",
"scikit-image",
"opencv-contrib-python-headless",
"deskew",
"pypdf",
"pyzbar",
"reportlab",
"weasyprint",
"cffi",
"pikepdf",
"zxing-cpp",
"matplotlib",
"Jinja2",
"natsort",
"nbformat",
"requests",
"asyncinotify"
]
jupyter = [
"opencv-contrib-python-headless",
"deskew",
"matplotlib",
]
sane = ["python-sane"]
[tool.poetry.group.dev.dependencies]
prospector = { version = "1.13.3", extras = ["with_bandit", "with_mypy", "with_pyroma", "with_ruff"] }
prospector-profile-duplicated = "1.10.0"
prospector-profile-utils = "1.14.1"
pytest = "8.3.4"
pytest-profiling = "1.8.1"
pytest-rerunfailures = "15.0"
pyroma = "4.2"
typing-extensions = "4.12.2"
c2cwsgiutils = { version = "6.1.5", extras = ["test_images"] }
types-requests = "2.32.0.20241016"
nbconvert = "7.16.4"
ipykernel = "6.29.5"
[tool.ruff]
target-version = "py310"
line-length = 110
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning", "poetry-plugin-tweak-dependencies-version", "poetry-plugin-drop-python-upper-constraint"]
build-backend = "poetry.core.masonry.api"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
pattern = "^(?P<base>\\d+(\\.\\d+)*)"
format-jinja = """
{%- if env.get("VERSION_TYPE") == "default_branch" -%}
{{serialize_pep440(bump_version(base, 1), dev=distance)}}
{%- elif env.get("VERSION_TYPE") == "stabilization_branch" -%}
{{serialize_pep440(bump_version(base, 2), dev=distance)}}
{%- elif distance == 0 -%}
{{serialize_pep440(base)}}
{%- else -%}
{{serialize_pep440(bump_version(base), dev=distance)}}
{%- endif -%}
"""
[tool.poetry-plugin-tweak-dependencies-version]
default = "present"