-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (70 loc) · 1.59 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (70 loc) · 1.59 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "newsdom-api"
version = "0.2.0"
description = "DOM-style parser API for scanned Japanese newspaper PDFs"
readme = "README.md"
requires-python = ">=3.10,<3.14"
license = "MIT"
authors = [{name = "Seongho Bae"}]
dependencies = [
"fastapi>=0.115,<1.0",
"uvicorn>=0.30,<1.0",
"pydantic>=2.9,<3.0",
"python-multipart>=0.0.31,<1.0",
"reportlab>=4.2,<6.0",
"Pillow>=11.0,<13.0",
"pypdf>=6.13.3,<7.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.3,<10.0",
"pytest-cov>=5.0,<8.0",
"pytest-asyncio>=0.21",
"httpx>=0.28,<1.0",
"pyyaml>=6.0,<7.0",
"httpx2>=2.4.0",
]
docs = [
"mkdocs>=1.6,<2.0",
"mkdocs-material>=9.6,<9.7",
]
fuzz = [
"atheris==3.0.0 ; platform_system == 'Linux' and python_version >= '3.11'",
"pyinstaller==6.21.0",
]
[tool.setuptools]
package-dir = { "" = "src", "tools" = "tools"}
[tool.setuptools.packages.find]
where = ["src", "tools"]
include = ["newsdom_api*", "tools*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_default_fixture_loop_scope = "function"
markers = [
"integration: requires MinerU CLI and model cache"
]
[tool.coverage.run]
source = ["src/newsdom_api", "tools"]
branch = true
[tool.coverage.report]
fail_under = 100
show_missing = true
skip_covered = false
[tool.mypy]
python_version = "3.10"
exclude = "(^tests/|^fuzzers/|^research_repos/)"
[[tool.mypy.overrides]]
module = [
"fastapi",
"fastapi.*",
"pydantic",
"pydantic.*",
"PIL",
"PIL.*",
"reportlab",
"reportlab.*",
]
ignore_missing_imports = true