22requires = [" setuptools" ]
33build-backend = " setuptools.build_meta"
44
5+ [tool .setuptools .dynamic ]
6+ version = { attr = " splunklib.__version__" }
7+
58[project .urls ]
69HOMEPAGE = " https://pypi.org/project/splunk-sdk"
7- DOCS = " https://docs.splunk.com/Documentation/PythonSDK/2.0 .0"
10+ DOCS = " https://docs.splunk.com/Documentation/PythonSDK/2.1 .0"
811REPO = " http://github.com/splunk/splunk-sdk-python.git"
912
1013[project ]
1114name = " splunk-sdk"
15+ dynamic = [" version" ]
1216description = " The Splunk Software Development Kit for Python"
1317readme = " README.md"
1418requires-python = " >=3.9.23"
1519license = { file = " LICENSE" }
1620authors = [{
name =
" Splunk, Inc." ,
email =
" [email protected] " }]
17- dynamic = [" version" ]
1821classifiers = [
19- " Programming Language :: Python" ,
20- " Development Status :: 6 - Mature" ,
21- " Environment :: Other Environment" ,
22- " Intended Audience :: Developers" ,
23- " Operating System :: OS Independent" ,
24- " Topic :: Software Development :: Libraries :: Python Modules" ,
25- " Topic :: Software Development :: Libraries :: Application Frameworks" ,
22+ " Programming Language :: Python" ,
23+ " Development Status :: 6 - Mature" ,
24+ " Environment :: Other Environment" ,
25+ " Intended Audience :: Developers" ,
26+ " Operating System :: OS Independent" ,
27+ " Topic :: Software Development :: Libraries :: Python Modules" ,
28+ " Topic :: Software Development :: Libraries :: Application Frameworks" ,
2629]
2730
28- dependencies = [
29- " build>=1.3.0" ,
30- " deprecation>=2.1.0" ,
31- " mypy>=1.17.1" ,
32- " python-dotenv>=1.1.1" ,
33- " ruff>=0.12.7" ,
34- " setuptools>=80.9.0" ,
35- " tox>=4.28.3" ,
36- ]
31+ dependencies = [" deprecation" , " python-dotenv" ]
3732
38- # TODO :(
39- # [dependency-groups]
40- # dev = []
33+ [project .optional-dependencies ]
34+ test = [" tox" ]
35+ lint = [" mypy" , " ruff" ]
36+ build = [" build" , " setuptools" , " splunk-sdk[test]" ]
37+ all = [" splunk-sdk[test, lint, build]" ]
4138
42- [tool .setuptools . dynamic ]
43- version = { attr = " splunklib.__version__ " }
39+ [tool .uv ]
40+ # default-groups = ["test", "lint", "build"]
4441
4542# https://docs.astral.sh/ruff/configuration/
4643[tool .ruff ]
@@ -53,13 +50,14 @@ indent-style = "space"
5350line-ending = " auto"
5451
5552[tool .ruff .lint ]
53+ pydocstyle.convention = " google"
5654fixable = [" ALL" ]
5755select = [
58- " F" , # pyflakes
59- " E" , # pycodestyle
60- " I" , # isort
61- " ANN" , # flake8 type annotations
62- " RUF" , # ruff-specific rules
56+ " F" , # pyflakes
57+ " E" , # pycodestyle
58+ " I" , # isort
59+ " ANN" , # flake8 type annotations
60+ " RUF" , # ruff-specific rules
6361]
6462
6563[tool .tox ]
@@ -70,6 +68,7 @@ envlist = clean,docs,py39,313
7068skipsdist = {env:TOXBUILD:false}
7169
7270# TODO: Replace with ruff
71+ # https://docs.astral.sh/ruff/settings/
7372[testenv:pep8]
7473deps = flake8
7574 flake8-import-order
0 commit comments