-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
75 lines (65 loc) · 2.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
[tool.black]
line-length = 110
target-version = ["py310"]
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
strict = true
[tool.pytest.ini_options]
pytest_plugins = ["pytest_profiling"]
[tool.poetry]
name = "deskew"
version = "0.0.0"
description = "Skew detection and correction in images containing text"
readme = "README.md"
authors = ["Stéphane Brunner <stephane.brunner@gmail.com>"]
homepage = "https://github.com/sbrunner/deskew"
repository = "https://github.com/sbrunner/deskew"
license = "MIT"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Typing :: Typed"
]
packages = [{ include = "deskew" }, { include = "deskew/py.typed" }]
[tool.poetry.scripts]
deskew = "deskew.cli:main"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
numpy = "2.1.1"
scikit-image = "0.24.0"
opencv-python-headless = { version = "4.10.0.84", optional = true }
matplotlib = { version = "3.9.2", optional = true }
[tool.poetry.extras]
debug_images = ["opencv-python-headless", "matplotlib"]
[tool.poetry.group.dev.dependencies]
prospector = { extras = ["with_bandit", "with_mypy", "with_pyroma"], version = "1.10.3" }
pytest = "8.3.3"
pytest-profiling = "1.7.0"
coverage = "7.6.1"
prospector-profile-duplicated = "1.5.0"
[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<epoch>\\d+)!)?(?P<base>\\d+(\\.\\d+)*)"
format-jinja = """
{%- if env.get("VERSION_TYPE") == "version_branch" -%}
{{serialize_pep440(bump_version(base, 1 if env.get("IS_MASTER") == "TRUE" else 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"