Files
TexTeller/pyproject.toml

88 lines
1.7 KiB
TOML
Raw Permalink Normal View History

[build-system]
2025-04-21 02:41:46 +00:00
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
2025-02-28 19:35:59 +08:00
[project]
name = "texteller"
authors = [
{ name="OleehyO", email="leehy0357@gmail.com" }
]
2025-04-21 02:41:46 +00:00
dynamic = ["version"]
description = "Texteller is a tool for converting rendered image to original latex code"
2025-02-28 19:35:59 +08:00
readme = "README.md"
2025-04-21 02:41:46 +00:00
license = { file = "LICENSE" }
2025-02-28 19:35:59 +08:00
requires-python = ">=3.10"
dependencies = [
2025-04-21 02:41:46 +00:00
"click>=8.1.8",
"colorama>=0.4.6",
"opencv-python-headless>=4.11.0.86",
2025-02-28 19:35:59 +08:00
"pyclipper>=1.3.0.post6",
2025-04-21 02:41:46 +00:00
"shapely>=2.1.0",
"streamlit>=1.44.1",
2025-02-28 19:35:59 +08:00
"streamlit-paste-button>=0.1.2",
"torch>=2.6.0",
"torchvision>=0.21.0",
"transformers==4.45.2",
2025-04-21 02:41:46 +00:00
"wget>=3.2",
2025-04-23 04:48:27 +00:00
"optimum[onnxruntime]>=1.24.0",
"python-multipart>=0.0.20",
"ray[serve]>=2.44.1",
2025-02-28 19:35:59 +08:00
]
2025-04-21 02:41:46 +00:00
[tool.hatch.version]
source = "vcs"
2025-02-28 19:35:59 +08:00
[tool.ruff]
2025-04-21 02:41:46 +00:00
exclude = [".git", ".mypy_cache", ".ruff_cache", ".venv", "dist"]
target-version = "py310"
2025-02-28 19:35:59 +08:00
line-length = 100
[tool.ruff.format]
2025-04-21 02:41:46 +00:00
line-ending = "lf"
quote-style = "double"
2025-02-28 19:35:59 +08:00
[tool.ruff.lint]
select = ["E", "W"]
ignore = [
"E999",
"EXE001",
"UP009",
"F401",
"TID252",
"F403",
"F841",
"E501",
2025-04-21 02:41:46 +00:00
"W291",
2025-02-28 19:35:59 +08:00
"W293",
2025-03-03 00:54:57 +08:00
"E741",
2025-04-21 02:41:46 +00:00
"E712",
2025-02-28 19:35:59 +08:00
]
[tool.hatch.build.targets.wheel]
packages = ["texteller"]
2025-04-21 02:41:46 +00:00
[project.scripts]
texteller = "texteller.cli:cli"
[project.optional-dependencies]
onnxruntime-gpu = [
"onnxruntime-gpu>=1.21.0",
]
test = [
"pytest>=8.3.5",
]
train = [
"accelerate>=1.6.0",
"augraphy>=8.2.6",
"datasets>=3.5.0",
"tensorboardx>=2.6.2.2",
]
docs = [
"myst-parser>=4.0.1",
"nbsphinx>=0.9.7",
"sphinx>=8.1.3",
"sphinx-book-theme>=1.1.4",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
]