Skip to content

Commit c8cced3

Browse files
authored
Add Hatch and semantic versioning (#94)
Signed-off-by: Webster Mudge <wmudge@cloudera.com>
1 parent 795bfe0 commit c8cced3

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

pyproject.toml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[project]
2+
name = "cldr-runner"
3+
description = "Ansible Execution Environments for Cloudera"
4+
readme = "README.md"
5+
requires-python = ">=3.8"
6+
license = "Apache-2.0"
7+
keywords = []
8+
authors = [
9+
{ name = "Webster Mudge", email = "wmudge@cloudera.com" },
10+
]
11+
classifiers = []
12+
dependencies = []
13+
dynamic = ["version"]
14+
15+
[tool.hatch.version]
16+
path = "VERSION.txt"
17+
scheme = "semver"
18+
validate-bump = true
19+
20+
[tool.hatch.envs.default]
21+
python = "3.12"
22+
detached = true
23+
dependencies = [
24+
"pre-commit",
25+
"coverage[toml]",
26+
"ansible-core<2.17", # For RHEL 8 support
27+
"ansible-builder",
28+
]
29+
30+
[tool.hatch.envs.lint]
31+
python = "3.12"
32+
detached = true
33+
extra-dependencies = [
34+
"ansible-lint",
35+
]
36+
37+
[tool.hatch.envs.lint.scripts]
38+
run = "pre-commit run -a"
39+
40+
[build-system]
41+
requires = [
42+
"hatchling",
43+
"hatch-semver",
44+
]
45+
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)