mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-10-06 22:50:14 +02:00
make training dependencies optional-dependencies of eynollah
i.e. `pip install "eynollah[training]"` will install the requirements for training
This commit is contained in:
parent
733af1e9a7
commit
48266b1ee0
5 changed files with 13 additions and 11 deletions
|
@ -13,7 +13,11 @@ license.file = "LICENSE"
|
|||
requires-python = ">=3.8"
|
||||
keywords = ["document layout analysis", "image segmentation"]
|
||||
|
||||
dynamic = ["dependencies", "version"]
|
||||
dynamic = [
|
||||
"dependencies",
|
||||
"optional-dependencies",
|
||||
"version"
|
||||
]
|
||||
|
||||
classifiers = [
|
||||
"Development Status :: 4 - Beta",
|
||||
|
@ -25,10 +29,6 @@ classifiers = [
|
|||
"Topic :: Scientific/Engineering :: Image Processing",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
OCR = ["torch <= 2.0.1", "transformers <= 4.30.2"]
|
||||
plotting = ["matplotlib"]
|
||||
|
||||
[project.scripts]
|
||||
eynollah = "eynollah.cli:main"
|
||||
ocrd-eynollah-segment = "eynollah.ocrd_cli:main"
|
||||
|
@ -41,6 +41,9 @@ Repository = "https://github.com/qurator-spk/eynollah.git"
|
|||
[tool.setuptools.dynamic]
|
||||
dependencies = {file = ["requirements.txt"]}
|
||||
optional-dependencies.test = {file = ["requirements-test.txt"]}
|
||||
optional-dependencies.OCR = {file = ["requirements-ocr.txt"]}
|
||||
optional-dependencies.plotting = {file = ["requirements-plotting.txt"]}
|
||||
optional-dependencies.training = {file = ["requirements-training.txt"]}
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["src"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue