-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (140 loc) 路 4.15 KB
/
Copy pathpyproject.toml
File metadata and controls
151 lines (140 loc) 路 4.15 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
145
146
147
148
149
150
151
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "paperflow"
version = "0.1.0"
description = "Personalized scientific-paper recommendation, reading, and reporting."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [
{ name = "PaperFlow Contributors" },
]
keywords = [
"paper-recommendation",
"scientific-papers",
"research-assistant",
"llm",
"embeddings",
"personalization",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Information Analysis",
]
dependencies = [
"typer>=0.12.0",
"requests>=2.31.0",
"python-dotenv>=1.0.1",
"numpy>=1.24.0",
"pyyaml>=6.0.1",
]
[project.optional-dependencies]
openai = ["openai>=1.10.0"]
anthropic = ["anthropic>=0.18.0"]
local = ["sentence-transformers>=5.4.0", "huggingface-hub>=1.0.0"]
fetch = [
"feedparser>=6.0.10",
"openreview-py>=1.46.1",
]
parsing = [
"PyMuPDF>=1.23.0",
"pdfplumber>=0.10.0",
"Pillow>=10.0.0",
"rapidocr-onnxruntime>=1.3.0",
]
all = [
"openai>=1.10.0",
"anthropic>=0.18.0",
"sentence-transformers>=5.4.0",
"huggingface-hub>=1.0.0",
"feedparser>=6.0.10",
"openreview-py>=1.46.1",
"PyMuPDF>=1.23.0",
"pdfplumber>=0.10.0",
"Pillow>=10.0.0",
"rapidocr-onnxruntime>=1.3.0",
]
dev = [
"pytest>=7.4.0",
"pytest-asyncio>=0.21.0",
"pytest-cov>=4.1.0",
"ruff>=0.4.0",
"black>=24.0.0",
]
[project.urls]
Homepage = "https://github.com/OpenRaiser/PaperFlow"
Repository = "https://github.com/OpenRaiser/PaperFlow"
Documentation = "https://github.com/OpenRaiser/PaperFlow#readme"
Issues = "https://github.com/OpenRaiser/PaperFlow/issues"
"Benchmark" = "https://huggingface.co/datasets/OpenRaiser/PaperFlow"
[project.scripts]
paperflow = "paperflow.cli:main"
[tool.setuptools]
include-package-data = true
# The CLI is a thin wrapper: every command except `demo` shells out to a script
# under agents/, skills/, deployments/, scripts/ or config/ (see
# paperflow/cli.py _run_python). Shipping only paperflow* produced a wheel whose
# very first command failed with "init script not found", because those trees
# were excluded here. They must be packaged for `pip install paperflow` to work.
#
# find_namespace_packages (not find_packages) is required: agents/ and config/
# have no __init__.py and are imported as namespace packages at runtime. The
# kebab-case directories are fine -- nothing imports them with an `import`
# statement, only importlib.import_module("agents.reading-agent.main").
[tool.setuptools.packages.find]
where = ["."]
namespaces = true
include = [
"paperflow*",
"agents*",
"skills*",
"config*",
"deployments*",
"scripts*",
]
exclude = [
"tests*",
"experiments*",
"data*",
"docs*",
"release*",
"models*",
"ablation_packages*",
"*__pycache__*",
]
# Non-Python runtime assets: YAML/JSON config the agents read at startup, and
# the GUI's static bundle. Without these the wheel installs but the GUI serves
# nothing and config loading falls back to defaults.
[tool.setuptools.package-data]
"config" = ["*.yaml", "*.yml", "*.json"]
"deployments.desktop.static" = ["*.html", "*.css", "*.js", "*.svg"]
"deployments.desktop.static.assets" = ["*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "-ra"
markers = [
"unit: unit tests (fast, no I/O)",
"integration: integration tests (database, network)",
"slow: slow tests excluded from default runs",
]
[tool.ruff]
line-length = 110
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B", "SIM"]
ignore = ["E501"]
[tool.black]
line-length = 110
target-version = ["py310", "py311", "py312"]