-
Notifications
You must be signed in to change notification settings - Fork 211
/
Copy pathpyproject.toml
98 lines (85 loc) · 2.78 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
[build-system]
requires = [
"setuptools>=42",
"setuptools_scm[toml]",
"wheel",
] # PEP 508 specifications.
build-backend = "setuptools.build_meta"
[project]
name = "calamari_ocr"
description = "Line based ATR Engine based on OCRopy"
readme = "README.md"
authors = [
{name = "Christoph Wick"},
{email = "[email protected]"}
]
license = {text = "GPL version 3"}
keywords = [
"OCR",
"HTR",
"optical character recognition",
]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: GPU :: NVIDIA CUDA",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: General",
]
dynamic = ["version", "dependencies"]
requires-python = ">=3.7"
[project.urls]
homepage = "https://github.com/Calamari-OCR/calamari"
[project.scripts]
calamari-eval = "calamari_ocr.scripts.eval:run"
calamari-predict = "calamari_ocr.scripts.predict:main"
calamari-resume-training = "calamari_ocr.scripts.resume_training:main"
calamari-train = "calamari_ocr.scripts.train:run"
calamari-cross-fold-train = "calamari_ocr.scripts.cross_fold_train:run"
calamari-predict-and-eval = "calamari_ocr.scripts.predict_and_eval:run"
calamari-dataset-viewer = "calamari_ocr.scripts.dataset_viewer:main"
calamari-dataset-statistics = "calamari_ocr.scripts.dataset_statistics:main"
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"pytest-isolate",
"pytest-xdist",
"flake8",
]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.json"]
[tool.setuptools.packages.find]
include = ["calamari_ocr"]
exclude = ["calamari_ocr/test*"]
namespaces = false
[tool.setuptools_scm]
write_to = "calamari_ocr/version.py"
[tool.black]
line-length = 120
target-version = ['py38']
[tool.coverage.run]
#branch = true
source = ["calamari_ocr"]
omit = ["calamari_ocr/test/*"]
#command_line = "-m unittest discover -s calamari_ocr/test/"
command_line = "-m pytest --junitxml=junit.xml -o junit_family=legacy"
[tool.pytest.ini_options]
addopts = "--isolate"
testpaths = ["calamari_ocr/test"]
[tool.flake8]
min_python_version = "3.7.1"
max-line-length = 127
ignore = "E203,W503"