The default mapping pointed to netbox_utilities.RackDevicePosition / width_fraction, which never existed, so partial widths were silently ignored: copying a rack lost them and deploying a concept with devices sharing a rack unit failed with "already occupied". Use netbox_utilities.DeviceRackPlacement (width, horizontal_position), convert between 0-based concept positions and the 1-based positions of netbox_utilities, and stage the width on the device before full_clean() so the Utilities collision check sees it. Configurations with the old model name are migrated automatically. Verified on NetBox 4.7.2: copying a rack with two half-width devices in one U and deploying it twice recreates both side by side. Bump version to 0.2.6. Co-Authored-By: Claude Opus 5.5 <[email protected]>
34 lines
968 B
TOML
34 lines
968 B
TOML
[build-system]
|
|
requires = ["setuptools>=68", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "netbox-rack-concept"
|
|
version = "0.2.6"
|
|
description = "Rack blueprints for NetBox: plan racks and their equipment without creating real racks or devices"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
license = { text = "MIT" }
|
|
authors = [{ name = "Louis" }]
|
|
keywords = ["netbox", "netbox-plugin", "dcim", "planning"]
|
|
classifiers = [
|
|
"Framework :: Django",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Intended Audience :: System Administrators",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/example/netbox-rack-concept"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["netbox_rack_concept*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
netbox_rack_concept = [
|
|
"templates/netbox_rack_concept/*.html",
|
|
"templates/netbox_rack_concept/inc/*.html",
|
|
"static/netbox_rack_concept/*",
|
|
"locale/*/LC_MESSAGES/*.po",
|
|
"locale/*/LC_MESSAGES/*.mo",
|
|
]
|