Skip to content

Commit d920039

Browse files
authored
update for NetBox 4.0 (#18)
1 parent 9d282c9 commit d920039

File tree

11 files changed

+24
-20
lines changed

11 files changed

+24
-20
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,17 @@ body:
1111
attributes:
1212
label: cookiecutter-netbox-plugin version
1313
description: What version of cookiecutter-netbox-plugin are you currently running?
14-
placeholder: v0.1.0
14+
placeholder: v0.2.0
1515
validations:
1616
required: true
1717
- type: dropdown
1818
attributes:
1919
label: Python version
2020
description: What version of Python are you currently running?
2121
options:
22-
- "3.8"
23-
- "3.9"
2422
- "3.10"
2523
- "3.11"
24+
- "3.12"
2625
validations:
2726
required: true
2827
- type: textarea

.github/ISSUE_TEMPLATE/feature_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ body:
1414
attributes:
1515
label: cookiecutter-netbox-plugin version
1616
description: What version of cookiecutter-netbox-plugin are you currently running?
17-
placeholder: v0.1.0
17+
placeholder: v0.2.0
1818
validations:
1919
required: true
2020
- type: dropdown

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.2.0 (2024-05-06)
4+
5+
* Updates to target NetBox 4.0.
6+
37
## 0.1.0 (2023-02-06)
48

59
* First release on PyPI.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ conform to best practice.
55

66
* Documentation: <https://netbox-community.github.io/cookiecutter-netbox-plugin/>
77

8+
**Note:** Plugins from this version target NetBox 4.0+
9+
810
## Features
911

1012
This tool will create Python project with the following features:

docs/history.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# History
22

3+
## v0.2.0
4+
5+
* Updates to target NetBox 4.0
6+
37
## v0.1.0
48

59
***first (Beta) release with the following features:***

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[project]
99
name = "cookiecutter-netbox-plugin"
10-
version = "0.1.0"
10+
version = "0.2.0"
1111
authors = [
1212
{name = "Arthur Hanson", email = "[email protected]"},
1313
]
@@ -19,13 +19,12 @@ classifiers=[
1919
'Intended Audience :: Developers',
2020
'Natural Language :: English',
2121
"Programming Language :: Python :: 3 :: Only",
22-
'Programming Language :: Python :: 3.9',
2322
'Programming Language :: Python :: 3.10',
2423
'Programming Language :: Python :: 3.11',
2524
'Programming Language :: Python :: 3.12',
2625
]
2726

28-
requires-python = ">=3.8"
27+
requires-python = ">=3.10.0"
2928

3029
[project.optional-dependencies]
3130
test = [

{{cookiecutter.hyphenated}}/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The features the plugin provides should be listed here.
1616

1717
| NetBox Version | Plugin Version |
1818
|----------------|----------------|
19-
| 3.7 | 0.1.0 |
19+
| 4.0 | 0.1.0 |
2020

2121
## Installing
2222

{{cookiecutter.hyphenated}}/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ classifiers=[
3030
{%- endif %}
3131
'Natural Language :: English',
3232
"Programming Language :: Python :: 3 :: Only",
33-
'Programming Language :: Python :: 3.9',
3433
'Programming Language :: Python :: 3.10',
3534
'Programming Language :: Python :: 3.11',
3635
'Programming Language :: Python :: 3.12',
3736
]
3837

39-
requires-python = ">=3.8.1"
38+
requires-python = ">=3.10.0"
4039

4140
[project.optional-dependencies]
4241
test = [

{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__version__ = "{{ cookiecutter.version }}"
66

77

8-
from extras.plugins import PluginConfig
8+
from netbox.plugins import PluginConfig
99

1010

1111
class {{ cookiecutter.__model_name }}Config(PluginConfig):

{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/navigation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
link="plugins:{{ cookiecutter.underscored }}:{{ cookiecutter.__model_url_name }}_add",
77
title="Add",
88
icon_class="mdi mdi-plus-thick",
9-
color=ButtonColorChoices.GREEN,
109
)
1110
]
1211

{{cookiecutter.hyphenated}}/{{cookiecutter.underscored}}/templates/{{cookiecutter.underscored}}/{{cookiecutter.__model_url}}.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99
{% endraw %}
1010
<h5 class="card-header">{{ cookiecutter.project_name }}</h5>
1111
{% raw %}
12-
<div class="card-body">
13-
<table class="table table-hover attr-table">
14-
<tr>
15-
<th scope="row">Name</th>
16-
<td>{{ object.name }}</td>
17-
</tr>
18-
</table>
19-
</div>
12+
<table class="table table-hover attr-table">
13+
<tr>
14+
<th scope="row">Name</th>
15+
<td>{{ object.name }}</td>
16+
</tr>
17+
</table>
2018
</div>
2119
{% include 'inc/panels/custom_fields.html' %}
2220
</div>

0 commit comments

Comments
 (0)