-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (131 loc) · 3.74 KB
/
pyproject.toml
File metadata and controls
144 lines (131 loc) · 3.74 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "paperpipe"
version = "1.8.2"
description = "Unified paper database for coding agents + PaperQA2"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
authors = [{ name = "Matthias Humt" }]
keywords = ["arxiv", "papers", "research", "llm", "coding-agent", "paperqa"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"arxiv>=2.0.0",
"click>=8.0.0",
"requests>=2.28.0",
"tomli>=2.0.0; python_version < '3.11'",
]
[project.optional-dependencies]
llm = ["litellm>=1.0.0"]
leann = ["leann-core>=0.3.5", "leann-backend-hnsw>=0.3.5"]
paperqa = [
"paper-qa[docling,image,ldp,local,memory,nemotron,office,openreview,pymupdf,pypdf-enhanced,pypdf-media,qdrant,zotero]>=5.0.0; python_version >= '3.11'",
"pymupdf4llm",
]
mcp = [
"mcp>=1.0.0; python_version >= '3.11'",
"paper-qa>=5.0.0; python_version >= '3.11'",
]
bibtex = ["bibtexparser>=1.4.0"]
figures = ["pymupdf>=1.24.0"]
all = ["paperpipe[llm,leann,paperqa,mcp,bibtex,figures]"]
dev = [
"build>=1.0.0",
"pyright>=1.1.385",
"pytest-cov>=7.0.0",
"ruff>=0.1.0",
"twine>=5.0.0",
# Optional deps for test coverage (mirrors [dependency-groups].dev)
"bibtexparser>=1.4.0",
"pymupdf>=1.24.0",
]
[dependency-groups]
dev = [
"build>=1.0.0",
"pyright>=1.1.385",
"pytest>=7.0.0",
"pytest-cov>=7.0.0",
"ruff>=0.1.0",
"twine>=5.0.0",
# Optional deps needed for unit test coverage (not integration tests)
"bibtexparser>=1.4.0",
"pymupdf>=1.24.0",
]
[project.scripts]
papi = "paperpipe.cli:cli"
paperqa_mcp = "paperpipe.paperqa_mcp_server:main"
[project.urls]
Homepage = "https://github.com/hummat/paperpipe"
Documentation = "https://github.com/hummat/paperpipe#readme"
Repository = "https://github.com/hummat/paperpipe"
[tool.hatch.build.targets.wheel]
only-include = [
"paperpipe",
"README.md",
"ROADMAP.md",
"LICENSE",
"AGENT_INTEGRATION.md",
"skills",
]
[tool.hatch.build.targets.sdist]
only-include = [
"paperpipe",
"pyproject.toml",
"README.md",
"ROADMAP.md",
"LICENSE",
"AGENT_INTEGRATION.md",
"skills",
]
[tool.pytest.ini_options]
pythonpath = ["tests"]
addopts = "--cov=paperpipe --cov-report=term-missing --cov-fail-under=75 -m 'not integration' -W ignore::DeprecationWarning:bibtexparser -W ignore::DeprecationWarning:pyparsing --cov-config=pyproject.toml"
markers = [
"integration: marks tests as integration tests (may require network/external services)",
"slow: marks tests as slow",
]
filterwarnings = [
"ignore:open_text is deprecated.*:DeprecationWarning:litellm\\..*",
"ignore:Pydantic serializer warnings:UserWarning:pydantic\\.main",
"ignore:.*:DeprecationWarning:bibtexparser\\..*",
"ignore:.*:DeprecationWarning:pyparsing\\..*",
]
[tool.coverage.run]
source = ["paperpipe"]
omit = ["test_*.py", "paperpipe/paperqa_mcp_server.py"]
[tool.coverage.report]
exclude_lines = ["if __name__ == .__main__.:", "pragma: no cover"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
ignore = ["E501"]
[tool.pyright]
include = ["paperpipe", "tests"]
exclude = [
"__pycache__",
".git",
".venv",
"build",
"dist",
".pytest_cache",
".ruff_cache",
]
pythonVersion = "3.10"
typeCheckingMode = "basic"
reportMissingImports = "warning"
reportMissingModuleSource = "warning"
reportMissingTypeStubs = "none"
venvPath = "."
venv = ".venv"