forked from splunk/splunk-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
89 lines (78 loc) · 2.42 KB
/
pyproject.toml
File metadata and controls
89 lines (78 loc) · 2.42 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
[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.7"
license = { text = "Apache-2.0" }
authors = [{ name = "Splunk, Inc.", email = "devinfo@splunk.com" }]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.9",
"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 = ["deprecation", "python-dotenv"]
[dependency-groups]
test = ["tox"]
lint = ["mypy", "ruff"]
build = ["build", "twine"]
dev = [
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "build" },
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["splunklib", "splunklib.modularinput", "splunklib.searchcommands"]
[tool.setuptools.dynamic]
version = { attr = "splunklib.__version__" }
# https://docs.astral.sh/ruff/configuration/
[tool.ruff.lint]
fixable = ["ALL"]
select = [
"F", # pyflakes
"E", # pycodestyle
"I", # isort
"ANN", # flake8 type annotations
"RUF", # ruff-specific rules
]
# ! TODO: Migrate to new config paradigm
# https://tox.wiki/en/latest/config.html#pyproject-toml-ini
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = docs,py{37,39,313}
skipsdist = {env:TOXBUILD:false}
[testenv]
passenv = LANG
setenv = SPLUNK_HOME=/opt/splunk
allowlist_externals = make
deps = pytest
pytest-cov
python-dotenv
distdir = build
commands =
{env:TOXBUILD:python -m pytest --cov --cov-config=.coveragerc} {posargs}
[testenv:docs]
description = Build the static HTML docs
basepython = python3.9
deps = sphinx >= 1.7.5, < 2
jinja2 < 3.1.0
commands = make -C docs/ html
"""