|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0.0", "wheel", "setuptools-ocrd"] |
| 3 | + |
| 4 | +[project] |
| 5 | +name = "ocrd_tesserocr" |
| 6 | +authors = [ |
| 7 | + { name = "Robert Sachunsky", email = "[email protected]"}, |
| 8 | + { name = "Konstantin Baierer", email = "[email protected]"}, |
| 9 | + { name = "Kay-Michael Würzner", email = "[email protected]"}, |
| 10 | +] |
| 11 | +description = "Preprocess, segment and recognize text using Tesseract OCR and the OCR-D framework" |
| 12 | +readme = "README.md" |
| 13 | +license = {text = "Apache License 2.0"} |
| 14 | +requires-python = ">=3.8" |
| 15 | +keywords = ["ocr", "ocr-d", "tesseract-ocr"] |
| 16 | + |
| 17 | +dynamic = ["version", "dependencies", "optional-dependencies"] |
| 18 | + |
| 19 | +# https://pypi.org/classifiers/ |
| 20 | +classifiers = [ |
| 21 | + "Development Status :: 5 - Production/Stable", |
| 22 | + "Environment :: Console", |
| 23 | + "Intended Audience :: Science/Research", |
| 24 | + "Intended Audience :: Other Audience", |
| 25 | + "License :: OSI Approved :: Apache Software License", |
| 26 | + "Programming Language :: Python :: 3", |
| 27 | + "Programming Language :: Python :: 3 :: Only", |
| 28 | + "Topic :: Text Processing", |
| 29 | +] |
| 30 | + |
| 31 | +[project.scripts] |
| 32 | +ocrd-tesserocr-fontshape = "ocrd_tesserocr.cli:ocrd_tesserocr_fontshape" |
| 33 | +ocrd-tesserocr-recognize = "ocrd_tesserocr.cli:ocrd_tesserocr_recognize" |
| 34 | +ocrd-tesserocr-segment = "ocrd_tesserocr.cli:ocrd_tesserocr_segment" |
| 35 | +ocrd-tesserocr-segment-region = "ocrd_tesserocr.cli:ocrd_tesserocr_segment_region" |
| 36 | +ocrd-tesserocr-segment-table = "ocrd_tesserocr.cli:ocrd_tesserocr_segment_table" |
| 37 | +ocrd-tesserocr-segment-line = "ocrd_tesserocr.cli:ocrd_tesserocr_segment_line" |
| 38 | +ocrd-tesserocr-segment-word = "ocrd_tesserocr.cli:ocrd_tesserocr_segment_word" |
| 39 | +ocrd-tesserocr-crop = "ocrd_tesserocr.cli:ocrd_tesserocr_crop" |
| 40 | +ocrd-tesserocr-deskew = "ocrd_tesserocr.cli:ocrd_tesserocr_deskew" |
| 41 | +ocrd-tesserocr-binarize = "ocrd_tesserocr.cli:ocrd_tesserocr_binarize" |
| 42 | + |
| 43 | +[project.urls] |
| 44 | +Homepage = "https://github.com/OCR-D/ocrd_tesserocr" |
| 45 | +Repository = "https://github.com/OCR-D/ocrd_tesserocr.git" |
| 46 | + |
| 47 | + |
| 48 | +[tool.setuptools.dynamic] |
| 49 | +dependencies = {file = ["requirements.txt"]} |
| 50 | +#optional-dependencies.dev = {file = ["requirements_dev.txt"]} |
| 51 | +optional-dependencies.test = {file = ["requirements_test.txt"]} |
| 52 | + |
| 53 | +[tool.setuptools] |
| 54 | +packages = ["ocrd_tesserocr"] |
| 55 | +package-data = {"*" = ["ocrd-tool.json"]} |
| 56 | + |
| 57 | +[tool.pytest.ini_options] |
| 58 | +minversion = 6.0 |
| 59 | +addopts = "--strict-markers" |
| 60 | +markers = [ |
| 61 | + "integration: integration tests", |
| 62 | +] |
| 63 | + |
| 64 | + |
| 65 | +[tool.mypy] |
| 66 | +plugins = ["numpy.typing.mypy_plugin"] |
| 67 | + |
| 68 | +ignore_missing_imports = true |
| 69 | + |
| 70 | + |
| 71 | +strict = true |
| 72 | + |
| 73 | +disallow_subclassing_any = false |
| 74 | +# ❗ error: Class cannot subclass "Processor" (has type "Any") |
| 75 | +disallow_any_generics = false |
| 76 | +disallow_untyped_defs = false |
| 77 | +disallow_untyped_calls = false |
| 78 | + |
| 79 | + |
| 80 | +[tool.ruff.lint] |
| 81 | +select = ["E", "F", "I"] |
| 82 | + |
| 83 | + |
| 84 | +[tool.coverage.run] |
| 85 | +branch = true |
| 86 | +source = [ |
| 87 | + "ocrd_tesserocr" |
| 88 | +] |
| 89 | +concurrency = [ |
| 90 | + "thread", |
| 91 | + "multiprocessing" |
| 92 | +] |
| 93 | + |
| 94 | +[tool.coverage.report] |
| 95 | +exclude_also = [ |
| 96 | + "if self\\.debug", |
| 97 | + "pragma: no cover", |
| 98 | + "raise NotImplementedError", |
| 99 | + "if __name__ == .__main__.:", |
| 100 | +] |
| 101 | +ignore_errors = true |
| 102 | +omit = [ |
| 103 | + "ocrd_tesserocr/cli.py" |
| 104 | +] |
0 commit comments