-
Notifications
You must be signed in to change notification settings - Fork 57
/
pyproject.toml
208 lines (180 loc) · 3.94 KB
/
pyproject.toml
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
[project]
name = 'papermage'
version = '0.20.0'
description = 'Papermage. Casting magic over scientific PDFs.'
license = {text = 'Apache-2.0'}
readme = 'README.md'
requires-python = '>=3.8'
dependencies = [
'tqdm',
'pdf2image',
'pdfplumber==0.7.4',
'requests',
'numpy>=1.23.2',
'scipy>=1.9.0',
'ncls==0.0.68',
'necessary>=0.3.2',
'grobid-client-python==0.0.5',
'charset-normalizer',
]
classifiers = [
"Development Status :: 3 - Alpha",
"Typing :: Typed",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
[[project.maintainers]]
name = "Kyle Lo"
email = "[email protected]"
[[project.maintainers]]
name = "Luca Soldaini"
email = "[email protected]"
[[project.authors]]
name = "Kyle Lo"
email = "[email protected]"
[[project.authors]]
name = "Luca Soldaini"
email = "[email protected]"
[[project.authors]]
name = "Shannon Zejiang Shen"
email = "[email protected]"
[[project.authors]]
name = "Ben Newman"
email = "[email protected]"
[[project.authors]]
name = "Russell Authur"
email = "[email protected]"
[[project.authors]]
name = "Stefan Candra"
email = "[email protected]"
[[project.authors]]
name = "Yoganand Chandrasekhar"
email = "[email protected]"
[[project.authors]]
name = "Regan Huff"
email = "[email protected]"
[[project.authors]]
name = "Amanpreet Singh"
email = "[email protected]"
[[project.authors]]
name = "Chris Wilhelm"
email = "[email protected]"
[[project.authors]]
name = "Angele Zamarron"
email = "[email protected]"
[project.urls]
'Homepage' = 'https://www.github.com/allenai/papermage'
'Repository' = 'https://www.github.com/allenai/papermage'
'Bug Tracker' = 'https://www.github.com/allenai/papermage/issues'
[tool.setuptools]
# ...
# By default, include-package-data is true in pyproject.toml, so you do
# NOT have to specify this line.
include-package-data = true
[tool.setuptools.packages.find]
where = ['.',]
[tool.setuptools.package-data]
papermage = [
'../requirements.txt',
'py.typed',
]
[build-system]
build-backend = 'setuptools.build_meta'
requires = [
'setuptools >= 61.0.0',
'pip >= 21.0.0',
'wheel',
'Cython==0.29.36'
]
[project.optional-dependencies]
dev = [
'pytest',
'pytest-xdist',
'pytest-cov',
'mypy>=0.971'
]
visualizers = [
'layoutparser==0.3.4'
]
predictors = [
'thefuzz[speedup]',
'scikit-learn>=1.3.0',
'xgboost>=1.6.2',
'spacy>=3.4.2',
'pysbd==0.3.4',
'tokenizers==0.13.3',
'torch>=2.0.1',
'torchvision>=0.15.2',
'layoutparser==0.3.4',
'transformers==4.31.0',
'smashed==0.1.10',
'pytorch-lightning>=2.0.5',
'springs==1.13.0',
'wandb>=0.15.7',
'seqeval==1.2.2',
'effdet==0.3.0',
'vila==0.5.0'
]
decontext = [
'decontext==0.1.6'
]
production = [
'optimum[onnxruntime]==1.10.0'
]
[tool.pytest.ini_options]
addopts = '-n auto --cov=.'
testpaths = ['tests/']
pythonpath = [
'.', 'src',
]
python_classes = ['Test*', '*Test']
log_format = '%(asctime)s - %(levelname)s - %(name)s - %(message)s'
log_level = 'DEBUG'
markers = []
filterwarnings = []
[tool.coverage.run]
omit = [
'*__init__*',
'*Test*',
'tests/fixtures/*',
'tests/*',
]
[tool.coverage.report]
fail_under = 25
[tool.black]
line-length = 115
include = '\.pyi?$'
exclude = '''
(
__pycache__
| \.git
| \.mypy_cache
| \.pytest_cache
| \.vscode
| \.venv
| \bdist\b
| \bdoc\b
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.autopep8]
max_line_length = 115
in-place = true
recursive = true
aggressive = 3
[tool.mypy]
python_version = 3.8
ignore_missing_imports = true
no_site_packages = true
allow_redefinition = false
warn_unused_configs = true
warn_unused_ignores = true
warn_no_return = true
warn_return_any = false
warn_unreachable = true
show_error_codes = true
pretty = true
[tool.mypy-tests]
strict_optional = false