Skip to content

Commit 9454e11

Browse files
committed
Add pyproject.yml and Hatch
Signed-off-by: Webster Mudge <[email protected]>
1 parent 658c051 commit 9454e11

File tree

2 files changed

+57
-17
lines changed

2 files changed

+57
-17
lines changed

pyproject.toml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
[project]
2+
name = "cloud"
3+
dynamic = ["version"]
4+
description = "cloudera.cloud Ansible collection"
5+
readme = "README.md"
6+
requires-python = ">=3.8"
7+
license = "Apache-2.0"
8+
keywords = []
9+
authors = [
10+
{ name = "Webster Mudge", email = "[email protected]" },
11+
]
12+
classifiers = []
13+
dependencies = []
14+
15+
[tool.hatch.version]
16+
path = "galaxy.yml"
17+
pattern = "version:\\s+(?P<version>[\\d\\.]+)"
18+
19+
[tool.hatch.envs.default]
20+
python = "3.12"
21+
skip-install = true
22+
dependencies = [
23+
"pre-commit",
24+
"coverage[toml]",
25+
"pytest",
26+
"pytest-mock",
27+
# "pytest-cov",
28+
"molecule",
29+
"molecule-plugins",
30+
"molecule-plugins[ec2]",
31+
"tox-ansible",
32+
"ansible-core<2.17", # For RHEL 8 support
33+
"cdpy @ git+https://github.com/cloudera-labs/cdpy@main#egg=cdpy",
34+
]
35+
36+
[tool.hatch.envs.lint]
37+
python = "3.12"
38+
skip-install = true
39+
extra-dependencies = [
40+
"ansible-lint",
41+
]
42+
43+
[tool.hatch.envs.lint.scripts]
44+
run = "pre-commit run -a"
45+
46+
[tool.pytest.ini_options]
47+
testpaths = [
48+
"tests",
49+
]
50+
filterwarnings = [
51+
"ignore:AnsibleCollectionFinder has already been configured",
52+
"ignore:'crypt' is deprecated and slated for removal in Python 3.13:DeprecationWarning",
53+
]
54+
55+
[build-system]
56+
requires = ["hatchling"]
57+
build-backend = "hatchling.build"

pytest.ini

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)