-
Notifications
You must be signed in to change notification settings - Fork 383
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (95 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
105 lines (95 loc) · 2.96 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
[project.urls]
homepage = "https://pypi.org/project/splunk-sdk"
documentation = "https://docs.splunk.com/Documentation/PythonSDK/2.1.1"
issues = "https://github.com/splunk/splunk-sdk-python/issues"
changelog = "https://github.com/splunk/splunk-sdk-python/blob/master/CHANGELOG.md"
source = "https://github.com/splunk/splunk-sdk-python.git"
download = "https://github.com/splunk/splunk-sdk-python/releases/latest"
[project]
name = "splunk-sdk"
dynamic = ["version"]
description = "Splunk Software Development Kit for Python"
readme = "README.md"
requires-python = ">=3.13"
license = { text = "Apache-2.0" }
authors = [{ name = "Splunk, Inc.", email = "devinfo@splunk.com" }]
keywords = ["splunk", "sdk"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.13",
"Development Status :: 6 - Mature",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
]
dependencies = []
# https://github.com/astral-sh/uv/issues/8981#issuecomment-2466787211
# Treat the same as NPM's `dependencies`
[project.optional-dependencies]
compat = ["six>=1.17.0"]
ai = ["httpx==0.28.1", "langchain>=1.2.15", "mcp>=1.27.0", "pydantic>=2.13.1"]
anthropic = ["splunk-sdk[ai]>=2.1.1", "langchain-anthropic>=1.4.0"]
openai = ["splunk-sdk[ai]>=2.1.1", "langchain-openai>=1.1.13"]
# Treat the same as NPM's `devDependencies`
[dependency-groups]
test = [
"splunk-sdk[ai]",
"pytest>=9.0.3",
"pytest-cov>=7.1.0",
"pytest-asyncio>=1.3.0",
"python-dotenv>=1.2.2",
]
release = ["build>=1.4.3", "jinja2>=3.1.6", "sphinx>=9.1.0", "twine>=6.2.0"]
lint = ["basedpyright>=1.39.0", "ruff>=0.15.10"]
dev = [
"rich>=14.3.3",
"splunk-sdk[openai, anthropic]",
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "release" },
]
[build-system]
# setuptools v61 introduces pyproject.toml support
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = [
"splunklib",
"splunklib.modularinput",
"splunklib.searchcommands",
"splunklib.ai",
"splunklib.ai.core",
"splunklib.ai.engines",
]
[tool.setuptools.dynamic]
version = { attr = "splunklib.__version__" }
[tool.basedpyright]
exclude = [".venv"]
allowedUntypedLibraries = ["splunklib"]
reportAny = false
reportExplicitAny = false
reportMissingTypeStubs = false
reportUnknownMemberType = false
reportUnusedCallResult = false
# https://docs.astral.sh/ruff/configuration/
[tool.ruff.lint]
fixable = ["ALL"]
select = [
"ANN", # flake-8-annotations
"C4", # comprehensions
"DOC", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"PT", # flake-8-pytest-rules
"RUF", # ruff-specific rules
"UP", # pyupgrade
]
ignore = [
"E501", # line-length
]
[tool.ruff.lint.isort]
combine-as-imports = true