Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (65 loc) · 2.69 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (65 loc) · 2.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ironic-understack"
version = "0.0.0"
description = "Ironic hooks for Understack"
authors = [{ name = "Marek Skrobacki", email = "marek.skrobacki@rackspace.co.uk" }]
requires-python = "~=3.14.0"
readme = "README.md"
license = "MIT"
dependencies = [
"ironic>=39,<40",
"pyyaml~=6.0",
"requests",
]
# REMOVE ME: delete this once we move away from patching a venv or we upgrade to a newer ironic base version
[project.entry-points."ironic.console.container"]
kubernetes = "ironic.console.container.kubernetes:KubernetesConsoleContainer"
[project.entry-points."ironic.inspection.hooks"]
resource-class = "ironic_understack.hooks.resource_class:ResourceClassHook"
update-baremetal-port = "ironic_understack.hooks.inspect_hook_update_baremetal_ports:InspectHookUpdateBaremetalPorts"
port-bios-name = "ironic_understack.hooks.port_bios_name_hook:PortBiosNameHook"
node-name-check = "ironic_understack.hooks.inspect_hook_node_name_check:InspectHookNodeNameCheck"
chassis_model = "ironic_understack.hooks.inspect_hook_chassis_model:InspectHookChassisModel"
pci-device-capabilities = "ironic_understack.hooks.inspect_hook_pci_device_capabilities:PciDeviceCapabilitiesHook"
[project.entry-points."ironic.hardware.types"]
netdev = "ironic_understack.drivers.netdev_hardware:NetdevHardware"
panos = "ironic_understack.drivers.panos_hardware:PanosHardware"
[project.entry-points."ironic.hardware.interfaces.inspect"]
redfish-understack = "ironic_understack.drivers.redfish_inspect_understack:UnderstackRedfishInspect"
idrac-redfish-understack = "ironic_understack.drivers.redfish_inspect_understack:UnderstackDracRedfishInspect"
panos = "ironic_understack.drivers.panos_inspect:PanosInspect"
[project.entry-points."ironic.hardware.interfaces.management"]
panos = "ironic_understack.drivers.panos_management:PanosManagement"
[project.entry-points."ironic.api.middleware"]
portgroup-name-validation = "ironic_understack.middleware.portgroup_name_middleware:PortgroupNameValidationMiddleware"
[dependency-groups]
test = [
"fixtures",
"pytest",
"pytest-cov",
"pytest-github-actions-annotate-failures",
"pytest-mock",
]
[tool.uv]
default-groups = ["test"]
[tool.hatch.build.targets.sdist]
include = ["ironic_understack"]
[tool.hatch.build.targets.wheel]
include = ["ironic_understack"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --cov=ironic_understack"
testpaths = [
"tests",
]
[tool.ruff]
# use our default and override anything we need specifically
extend = "../pyproject.toml"
target-version = "py312"
[tool.ruff.lint.per-file-ignores]
"ironic_understack/tests/*.py" = [
"S101", # allow 'assert' for pytest
]