Skip to content

Commit 95a0349

Browse files
committed
Update pyproject.toml structure, bump up package versions and the supported Python version to 3.13, simplify dependency-groups, update deprecated license field format
1 parent f1b5dc0 commit 95a0349

File tree

2 files changed

+563
-2630
lines changed

2 files changed

+563
-2630
lines changed

pyproject.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ name = "splunk-sdk"
1111
dynamic = ["version"]
1212
description = "Splunk Software Development Kit for Python"
1313
readme = "README.md"
14-
requires-python = ">=3.7"
15-
license = { text = "Apache-2.0" }
14+
requires-python = ">=3.13.0, <3.14"
15+
license = "Apache-2.0"
1616
authors = [{ name = "Splunk, Inc.", email = "devinfo@splunk.com" }]
1717
keywords = ["splunk", "sdk"]
1818
classifiers = [
1919
"Programming Language :: Python :: 3",
20-
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.7",
2220
"Programming Language :: Python :: 3.9",
2321
"Programming Language :: Python :: 3.13",
2422
"Development Status :: 6 - Mature",
@@ -29,21 +27,23 @@ classifiers = [
2927
"Topic :: Software Development :: Libraries :: Application Frameworks",
3028
]
3129

32-
dependencies = ["python-dotenv>=0.21.1"]
33-
optional-dependencies = { compat = ["six>=1.17.0"] }
30+
dependencies = ["python-dotenv>=1.2.1"]
3431

32+
# Difference between [optional-dependencies] and [dependency-groups]
33+
# https://github.com/astral-sh/uv/issues/8981#issuecomment-2466787211
34+
# Treat the same as NPM's `dependencies`
35+
[project.optional-dependencies]
36+
compat = ["six>=1.17.0"]
37+
38+
# Treat the same as NPM's `devDependencies`
3539
[dependency-groups]
36-
build = ["build>=1.1.1", "twine>=4.0.2"]
37-
# Can't pin `sphinx` otherwise installation fails on python>=3.7
38-
docs = ["sphinx", "jinja2>=3.1.6"]
39-
lint = ["mypy>=1.4.1", "ruff>=0.13.1"]
40-
test = ["pytest>=7.4.4", "pytest-cov>=4.1.0"]
41-
release = [{ include-group = "build" }, { include-group = "docs" }]
40+
test = ["pytest>=9.0.2", "pytest-cov>=7.0.0", "pytest-asyncio>=1.3.0"]
41+
lint = ["basedpyright>=1.37.1", "ruff>=0.14.13", "mbake>=1.4.4"]
42+
release = ["build>=1.4.0", "twine>=6.2.0", "sphinx>=9.1.0", "jinja2>=3.1.6"]
4243
dev = [
4344
{ include-group = "test" },
4445
{ include-group = "lint" },
45-
{ include-group = "build" },
46-
{ include-group = "docs" },
46+
{ include-group = "release" },
4747
]
4848

4949
[build-system]

0 commit comments

Comments
 (0)