Skip to content

Commit 6b33446

Browse files
committed
Update hatch-test environment
Add testing matrix for Python 3.13, 3.12, 3.11, 3.10, and 3.9. Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 90fbd58 commit 6b33446

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

pyproject.toml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "cloud"
33
dynamic = ["version"]
44
description = "cloudera.cloud Ansible collection"
55
readme = "README.md"
6-
requires-python = ">=3.8"
6+
requires-python = ">=3.9" # hatch-semver requires 3.9+
77
license = "Apache-2.0"
88
keywords = []
99
authors = [
@@ -19,7 +19,6 @@ scheme = "semver"
1919
validate-bump = true
2020

2121
[tool.hatch.envs.default]
22-
python = "3.12"
2322
detached = true
2423
dependencies = [
2524
"pre-commit",
@@ -42,6 +41,20 @@ lint = [
4241
"antsibull-docs lint-collection-docs --plugin-docs --validate-collection-refs=all --skip-rstcheck ."
4342
]
4443

44+
[tool.hatch.envs.hatch-test]
45+
extra-dependencies = [
46+
"pytest",
47+
"pytest-mock",
48+
"molecule",
49+
"molecule-plugins",
50+
"molecule-plugins[ec2]",
51+
"ansible-core<2.17", # For RHEL 8 support
52+
"cdpy @ git+https://github.com/cloudera-labs/cdpy@main#egg=cdpy",
53+
]
54+
55+
[[tool.hatch.envs.hatch-test.matrix]]
56+
python = ["3.13", "3.12", "3.11", "3.10", "3.9"]
57+
4558
[tool.hatch.envs.docs]
4659
python = "3.12"
4760
detached = true

0 commit comments

Comments
 (0)