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