-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (76 loc) · 2.26 KB
/
pyproject.toml
File metadata and controls
89 lines (76 loc) · 2.26 KB
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
[project]
name = "bigocrpdf"
version = "3.0.0"
description = "Add OCR to your PDF documents to make them searchable - Powered by RapidOCR"
readme = "README.md"
requires-python = ">=3.10"
license = "GPL-3.0-or-later"
authors = [
{name = "BigLinux Team", email = "contact@biglinux.com.br"}
]
keywords = ["ocr", "pdf", "gtk", "libadwaita", "biglinux"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: X11 Applications :: GTK",
"Intended Audience :: End Users/Desktop",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Utilities",
]
dependencies = [
"PyGObject>=3.42.0",
"pycairo>=1.20.0",
# RapidOCR engine
"rapidocr>=3.5.0",
# PDF processing
"pikepdf>=8.0.0",
"reportlab>=4.0.0",
# Image processing
"opencv-python>=4.8.0",
"Pillow>=10.0.0",
"numpy>=1.24.0",
# Dewarp dependencies
"scipy>=1.11.0",
# ODF export
"odfpy>=1.4.0",
]
[project.optional-dependencies]
dev = ["pytest", "pytest-cov", "ruff"]
[project.scripts]
bigocrpdf-cli = "bigocrpdf.cli:main"
[project.gui-scripts]
bigocrpdf = "bigocrpdf:main"
[project.urls]
Homepage = "https://www.biglinux.com.br"
Repository = "https://github.com/biglinux/bigocrpdf"
Issues = "https://github.com/biglinux/bigocrpdf/issues"
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
bigocrpdf = ["resources/*.css", "resources/illustrations/*.svg"]
[tool.ruff]
target-version = "py310"
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "C4", "UP"]
ignore = ["E501", "E402"] # E402: Module level import not at top (needed for gi.require_version)
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_functions = ["test_*"]
addopts = "-v --tb=short"
pythonpath = ["src"]