-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
167 lines (141 loc) · 4.54 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
[tool.poetry]
name = "deepsearch-toolkit"
version = "1.1.1" # DO NOT EDIT, updated automatically
description = "Interact with the Deep Search platform for new knowledge explorations and discoveries"
authors = ["Michele Dolfi <[email protected]>", "André Carvalho <[email protected]>", "Lokesh Mishra <[email protected]>", "Christoph Auer <[email protected]>", "Kasper Dinkla <[email protected]>", "Cesar Berrospi Ramis <[email protected]>", "Panos Vagenas <[email protected]>", "Peter Staar <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://ds4sd.github.io/deepsearch-toolkit/"
repository = "https://github.com/DS4SD/deepsearch-toolkit"
documentation = "https://ds4sd.github.io/deepsearch-toolkit/"
keywords= ["deepsearch", "convert", "knowledge graph", "discovery", "nlp"]
classifiers = [
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Typing :: Typed"
]
packages = [
{ include = "deepsearch" }
]
include = ["deepsearch/py.typed"]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/DS4SD/deepsearch-toolkit/issues"
"Discussion forum" = "https://github.com/DS4SD/deepsearch-toolkit/discussions"
[tool.poetry.scripts]
deepsearch = "deepsearch.cli:app"
[tool.poetry.dependencies]
python = "^3.9"
# Dependencies from generated packages
urllib3 = "^1.26.8"
six = "^1.16.0"
certifi = "^2024.07.04"
python-dateutil = "^2.8.2"
# Actual dependencies
pydantic = {version = "^2.0.3"}
pydantic-settings = "^2.4.0"
python-dotenv = "^1.0.0"
requests = "^2.27.1"
typer = {extras = ["all"], version = ">=0.9.0, <1.0.0"}
platformdirs = ">=3.5.1,<5.0.0"
tabulate = ">=0.8.9, <1.0.0"
pluggy = "^1.0.0"
tqdm = "^4.64.0"
fastapi = {version = "^0.112.0", optional = true}
uvicorn = {version = "^0.30.5", optional = true}
anyio = { version = "^3.6.2", optional = true }
docling-core = "^2.0.0"
[tool.poetry.extras]
# MANUAL MAINTENANCE REQUIRED: for every change in the extras, "all" must be updated,
# namely as the union of all extras' direct dependencies (since poetry currently does not
# support recursive extras: https://github.com/python-poetry/poetry/issues/3369)
api = [
"fastapi",
"uvicorn",
"anyio",
]
all = [
"fastapi",
"uvicorn",
"anyio",
]
[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = "^24.8.0"}
pylint = "^3.2.6"
pytest = "^7.0.1"
pre-commit = "^2.17.0"
mypy = "^1.0.0"
isort = "^5.10.1"
mkdocs = "^1.6.0"
Jinja2 = "^3.1.4" # See https://github.com/mkdocs/mkdocs/issues/2794
mkdocs-material = "^9.5.31"
mkdocs-typer = "^0.0.3"
python-semantic-release = "^7.32.2"
# Types for packages.
types-requests = "^2.27.10"
types-tabulate = "^0.8.5"
types-tqdm = "^4.64.1"
mkdocstrings-python = "^1.10.7"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ["py39"]
include = '\.pyi?$'
extend-exclude = """
# Exclude generated API code
^/deepsearch/cps/apis/.+$
"""
[tool.isort]
profile = "black"
line_length = 88
skip_glob = ["docs", "deepsearch/cps/apis"]
py_version=39
known_first_party = ["cps"]
[tool.mypy]
plugins = ["pydantic.mypy"]
pretty = true
# strict = true
no_implicit_optional = true
python_version = "3.9"
# We are not going to bother about generated code...
[[tool.mypy.overrides]]
module = "deepsearch.cps.apis.*"
ignore_errors = true
# https://stackoverflow.com/a/60744115
implicit_reexport = true
# Silence errors for third-party packages that don't have
# typings available.
[[tool.mypy.overrides]]
module = "rdkit.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "dotenv.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "numpy.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pandas.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mhfp.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "appdirs.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "pluggy.*"
ignore_missing_imports = true
[tool.semantic_release]
# for default values check:
# https://github.com/relekang/python-semantic-release/blob/master/semantic_release/defaults.cfg
version_source = "tag_only"
branch = "main"
# configure types which should trigger minor and patch version bumps respectively
# (note that they must be a subset of the configured allowed types):
parser_angular_allowed_types = "build,chore,ci,docs,feat,fix,perf,style,refactor,test"
parser_angular_minor_types = "feat"
parser_angular_patch_types = "fix,perf"