Skip to content

Commit 9971e4e

Browse files
committed
Fix README install command and release 1.0.1
Replace local editable install path with PyPI package name in README. Also includes 1.0.1 changes already staged: MANIFEST.in + package-data fix for templates missing from built wheel.
1 parent 8980028 commit 9971e4e

5 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.0.1] - 2026-02-24
9+
10+
### Fixed
11+
12+
- **Templates missing from built wheel** — added `[tool.setuptools.package-data]` in
13+
`pyproject.toml` and `MANIFEST.in` so HTML templates are included when installing
14+
from PyPI or a pre-built wheel (fixes `TemplateDoesNotExist` in Docker deployments).
15+
816
## [1.0.0] - 2026-02-24
917

1018
### Added

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive-include netbox_custom_objects_tab/templates *.html

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ the full page.
3333

3434
```bash
3535
source /opt/netbox/venv/bin/activate
36-
pip install -e /opt/custom_objects_additional_tab_plugin/
36+
pip install netbox-custom-objects-tab
3737
```
3838

3939
Add to NetBox `configuration.py`:

netbox_custom_objects_tab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class NetBoxCustomObjectsTabConfig(PluginConfig):
55
name = "netbox_custom_objects_tab"
66
verbose_name = "Custom Objects Tab"
77
description = 'Adds a "Custom Objects" tab to NetBox object detail pages'
8-
version = "1.0.0"
8+
version = "1.0.1"
99
author = "Jan Krupa"
1010
author_email = "jan.krupa@cesnet.cz"
1111
base_url = "custom-objects-tab"

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "netbox-custom-objects-tab"
7-
version = "1.0.0"
7+
version = "1.0.1"
88
description = "NetBox plugin that adds a Custom Objects tab to object detail pages"
99
readme = "README.md"
1010
requires-python = ">=3.12"
@@ -35,6 +35,9 @@ Issues = "https://github.com/CESNET/netbox-custom-objects-tab/issues"
3535
where = ["."]
3636
include = ["netbox_custom_objects_tab*"]
3737

38+
[tool.setuptools.package-data]
39+
netbox_custom_objects_tab = ["**/*", "templates/**"]
40+
3841
[tool.pytest.ini_options]
3942
pythonpath = ["."]
4043
DJANGO_SETTINGS_MODULE = "tests.settings"

0 commit comments

Comments
 (0)