-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
96 lines (91 loc) · 2.36 KB
/
Copy pathpyproject.toml
File metadata and controls
96 lines (91 loc) · 2.36 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
[project]
name = "bmlibrarian"
version = "0.1.0"
description = "Biomedical Literature Librarian - A Python library for accessing biomedical literature databases"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"psycopg-pool>=3.1.0",
"psycopg[binary]>=3.2.9",
"python-dotenv>=1.1.1",
"ollama>=0.2.1",
"requests>=2.31.0",
"psycopg-binary>=3.2.9",
"flet[all]>=0.24.1",
"playwright>=1.55.0",
"numpy>=1.26.0",
"pandas>=2.1.0",
"scipy>=1.11.0",
"matplotlib>=3.8.0",
"seaborn>=0.13.0",
# PDF support
"PyMuPDF>=1.23.0",
# PySide6 dependencies for Qt GUI
"pyside6>=6.6.0",
"PySide6-Addons>=6.6.0",
"markdown>=3.5.0",
"pygments>=2.17.0",
"qtawesome>=1.3.0",
"psutil>=7.1.3",
"backoff>=2.2.1",
"pymupdf4llm>=0.2.2",
"pymupdf-layout>=0.1.0",
"tqdm>=4.66.0",
"pymupdf-layout>=1.26.6",
"opencv-python>=4.11.0.86",
"marker-pdf>=1.10.1",
"llama-cpp-python>=0.3.16",
"sentence-transformers>=5.1.2",
"reportlab>=4.4.5",
"chromadb>=1.3.7",
"fastembed>=0.7.3",
# Sentence boundary detection
"pysbd>=0.3.4",
"playwright-stealth>=2.0.0",
"undetected-chromedriver>=3.5.5",
# HTML/XML parsing for multi-format extraction
"beautifulsoup4>=4.12.0",
"markdownify>=0.12.1",
"lxml>=5.0.0",
]
[project.optional-dependencies]
browser = [
"playwright>=1.48.0",
]
aws = [
# AWS S3 support for medRxiv MECA bulk sync
"boto3>=1.34.0",
]
[project.scripts]
bmlibrarian = "bmlibrarian.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
dev-dependencies = [
"pytest>=7.0",
"pytest-mock>=3.10",
"pytest-cov>=4.0",
"pygments>=2.19.2",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--verbose",
"--cov=src/bmlibrarian",
"--cov-report=term-missing",
"--cov-report=html",
"--cov-fail-under=80"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
"requires_database: marks tests that require a live database connection",
"requires_ollama: marks tests that require a running Ollama instance"
]