-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (86 loc) · 2.29 KB
/
pyproject.toml
File metadata and controls
96 lines (86 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "smelt"
version = "0.1.0"
description = "Refine documents into LLM-ready text. Multi-backend, multi-format MCP server."
readme = "README.md"
license = "GPL-3.0-or-later"
requires-python = ">=3.11"
authors = [
{ name = "Redrock Software", email = "developers@go-redrock.com" },
]
keywords = ["mcp", "document-conversion", "llm", "pdf", "markdown", "xml"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Text Processing :: General",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"mcp[cli]>=1.7",
"pyyaml>=6.0",
"python-magic>=0.4",
]
[project.optional-dependencies]
mineru = [
"magic-pdf[full]",
]
docling = [
"docling>=2.0",
]
pymupdf = [
"pymupdf4llm>=0.0.10",
]
whisper = [
"faster-whisper>=1.0",
]
web = [
"trafilatura>=1.8",
"yt-dlp",
"youtube-transcript-api>=0.6",
"beautifulsoup4>=4.12",
"requests>=2.31",
]
all = [
"smelt[mineru,docling,pymupdf,whisper,web]",
]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"ruff>=0.4",
"mypy>=1.10",
]
[project.scripts]
smelt = "smelt.__main__:main"
[project.urls]
Homepage = "https://github.com/go-redrock-software/smelt"
Repository = "https://github.com/go-redrock-software/smelt"
Issues = "https://github.com/go-redrock-software/smelt/issues"
Changelog = "https://github.com/go-redrock-software/smelt/blob/master/CHANGELOG.md"
[tool.hatch.build.targets.wheel]
packages = ["src/smelt"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
[tool.mypy]
python_version = "3.11"
strict = true
warn_return_any = true
warn_unused_configs = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
filterwarnings = [
# TODO: Remove when pymupdf fixes SWIG __module__ DeprecationWarning
# https://github.com/pymupdf/PyMuPDF/issues
"ignore::DeprecationWarning:importlib._bootstrap",
]