-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (137 loc) · 3.54 KB
/
pyproject.toml
File metadata and controls
159 lines (137 loc) · 3.54 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
152
153
154
155
156
157
158
159
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "agraph-python"
dynamic = ["version"]
description = "AllegroGraph Python client"
readme = "README.md"
authors = [
{name = "Franz Inc.", email = "support@franz.com"}
]
license = {file = "LICENSE"}
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Database",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"requests[socks]==2.32.4",
"iso8601>=2.1.0,<2.2.0",
"pandas>=2.0.0,<3.0.0",
]
[project.optional-dependencies]
mcp = [ "mcp~=1.24.0" ]
test = ["packaging>=23.2.0,<23.3.0","pytest~=7.0.0","pytest-timeout~=2.2.0","pytest-mock~=3.11.0"]
style = ["isort~=5.11.0","black~=23.3.0"]
docs = ["sphinxcontrib-jupyter~=0.5.0"] # for building docs
dev = ["agraph-python[mcp,test,style,docs]","ipython~=7.34.0"]
[project.urls]
homepage = "https://github.com/franzinc/agraph-python"
documentation = "https://franz.com/agraph/support/documentation/current/python/"
repository = "https://github.com/franzinc/agraph-python"
changelog = "https://franz.com/agraph/support/documentation/current/python/changes.html"
[tool.hatch.version]
path = "src/franz/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/franz"]
[tool.hatch.build.targets.sdist]
only-include = ["src/franz"]
[tool.hatch.envs.default]
python = "3.10"
[tool.hatch.envs.test]
features = ["test"]
env-include = ["AGRAPH*"]
[[tool.hatch.envs.test.matrix]]
python = ["3.10", "3.11", "3.12", "3.13"]
[tool.hatch.envs.test.env-vars]
AG_RUN_SSL_TEST = "y"
[tool.hatch.envs.test.scripts]
run = "pytest"
[tool.hatch.envs.docs]
features = ["docs"]
[tool.hatch.envs.docs.env-vars]
AGRAPH_USER="test"
AGRAPH_PASSWORD="xyzzy"
[tool.hatch.envs.docs.scripts]
test = "cd docs; sphinx-build -b doctest src build/doctest"
build-html = "cd docs; sphinx-build -b html -j 5 -N src build/html"
build-jupyter = "cd docs; sphinx-build -b jupyter -N src build/jupyter"
[tool.hatch.envs.style]
features = ["style"]
[tool.hatch.envs.style.scripts]
check = [
"isort --check-only --gitignore --diff .",
"black --check --diff .",
]
fix = [
"isort --gitignore .",
"black .",
"check",
]
[tool.pytest.ini_options]
minversion = "7.0.0"
addopts=[
"--timeout=300",
"--junitxml=report.xml",
"--color=auto",
]
testpaths = [
"src/franz/openrdf/tests/",
"src/franz/miniclient/",
]
python_files = ["*test*.py"]
[tool.pyright]
include = ["src"]
exclude = [
"**/node_modules",
"**/_pycache__",
".venv/",
]
executionEnvironments = [
{ root = "src" }
]
reportMissingImports = true
reportMissingTypeStubs = false
venvPath = "."
venv = ".venv"
pythonPlatform = "All"
verboseOutput = true
[tool.ty.environment]
python-platform = "all"
root = [ "./src" ]
[tool.ty.src]
include = ["./src"]
exclude = [
"**/node_modules",
"**/_pycache__",
".venv/",
]
[tool.isort]
atomic = true
profile = "black"
src_paths = ["src"]
extend_skip = ["stress"]
filter_files = true
line_length = 88
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
(
^/stress/
)
'''