|
| 1 | +[build-system] |
| 2 | +requires = ["setuptools>=61.0.0", "wheel", "setuptools-ocrd"] |
| 3 | + |
| 4 | +[project] |
| 5 | +name = "ocrd_cis" |
| 6 | +authors = [ |
| 7 | + { name = "Florian Fink", email = "[email protected]"}, |
| 8 | + { name = "Tobias Englmeier", email = "[email protected]"}, |
| 9 | + { name = "Christoph Weber", email = "[email protected]"}, |
| 10 | + { name = "Robert Sachunsky", email = "[email protected]"}, |
| 11 | +] |
| 12 | +description = "CIS OCR-D post-correction tools and improved Ocropy1" |
| 13 | +readme = "README.md" |
| 14 | +license = {text = "MIT"} |
| 15 | +requires-python = ">=3.8" |
| 16 | +keywords = ["ocr", "ocr-d", "ocropus-ocr", "post-correction"] |
| 17 | + |
| 18 | +dynamic = ["version", "dependencies"] |
| 19 | + |
| 20 | +# https://pypi.org/classifiers/ |
| 21 | +classifiers = [ |
| 22 | + "Development Status :: 5 - Production/Stable", |
| 23 | + "Environment :: Console", |
| 24 | + "Intended Audience :: Science/Research", |
| 25 | + "Intended Audience :: Other Audience", |
| 26 | + "License :: OSI Approved :: MIT Software License", |
| 27 | + "Programming Language :: Python :: 3", |
| 28 | + "Programming Language :: Python :: 3 :: Only", |
| 29 | + "Topic :: Text Processing", |
| 30 | +] |
| 31 | + |
| 32 | +[project.scripts] |
| 33 | +ocrd-cis-align = "ocrd_cis.align.cli:ocrd_cis_align" |
| 34 | +ocrd-cis-postcorrect = "ocrd_cis.postcorrect.cli:ocrd_cis_postcorrect" |
| 35 | +ocrd-cis-data = "ocrd_cis.data.__main__:main" |
| 36 | +ocrd-cis-ocropy-train = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_train" |
| 37 | +ocrd-cis-ocropy-recognize = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_recognize" |
| 38 | +ocrd-cis-ocropy-segment = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_segment" |
| 39 | +ocrd-cis-ocropy-resegment = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_resegment" |
| 40 | +ocrd-cis-ocropy-clip = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_clip" |
| 41 | +ocrd-cis-ocropy-dewarp = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_dewarp" |
| 42 | +ocrd-cis-ocropy-deskew = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_deskew" |
| 43 | +ocrd-cis-ocropy-denoise = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_denoise" |
| 44 | +ocrd-cis-ocropy-binarize = "ocrd_cis.ocropy.cli:ocrd_cis_ocropy_binarize" |
| 45 | + |
| 46 | +[project.urls] |
| 47 | +Homepage = "https://github.com/cisocrgroup/ocrd_cis" |
| 48 | +Repository = "https://github.com/cisocrgroup/ocrd_cis.git" |
| 49 | + |
| 50 | +[project.optional-dependencies] |
| 51 | +debug = ["matplotlib>3.0.0"] |
| 52 | + |
| 53 | +[tool.setuptools.dynamic] |
| 54 | +dependencies = {file = ["requirements.txt"]} |
| 55 | + |
| 56 | +[tool.setuptools] |
| 57 | +packages = ["ocrd_cis", "ocrd_cis.postcorrect", "ocrd_cis.aio", "ocrd_cis.data", "ocrd_cis.wer", "ocrd_cis.ocropy", "ocrd_cis.ocropy.ocrolib", "ocrd_cis.div", "ocrd_cis.align"] |
| 58 | +package-data = {"*" = ["*.json", "*.jar", "model.zip", "3gs.csv.gz"]} |
| 59 | + |
| 60 | +[tool.pytest.ini_options] |
| 61 | +minversion = 6.0 |
| 62 | +addopts = "--strict-markers" |
| 63 | +markers = [ |
| 64 | + "integration: integration tests", |
| 65 | +] |
| 66 | + |
| 67 | + |
| 68 | +[tool.mypy] |
| 69 | +plugins = ["numpy.typing.mypy_plugin"] |
| 70 | + |
| 71 | +ignore_missing_imports = true |
| 72 | + |
| 73 | + |
| 74 | +strict = true |
| 75 | + |
| 76 | +disallow_subclassing_any = false |
| 77 | +# ❗ error: Class cannot subclass "Processor" (has type "Any") |
| 78 | +disallow_any_generics = false |
| 79 | +disallow_untyped_defs = false |
| 80 | +disallow_untyped_calls = false |
| 81 | + |
| 82 | + |
| 83 | +[tool.ruff.lint] |
| 84 | +select = ["E", "F", "I"] |
| 85 | + |
| 86 | + |
| 87 | +[tool.coverage.run] |
| 88 | +branch = true |
| 89 | +source = [ |
| 90 | + "ocrd_cis" |
| 91 | +] |
| 92 | +concurrency = [ |
| 93 | + "thread", |
| 94 | + "multiprocessing" |
| 95 | +] |
| 96 | + |
| 97 | +[tool.coverage.report] |
| 98 | +exclude_also = [ |
| 99 | + "if self\\.debug", |
| 100 | + "pragma: no cover", |
| 101 | + "raise NotImplementedError", |
| 102 | + "if __name__ == .__main__.:", |
| 103 | +] |
| 104 | +ignore_errors = true |
| 105 | +omit = [ |
| 106 | + "ocrd_cis/*/cli" |
| 107 | +] |
0 commit comments