Skip to content

Commit

Permalink
update for NetBox 4.0 (netbox-community#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson authored May 6, 2024
1 parent 9d282c9 commit d920039
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 20 deletions.
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ body:
attributes:
label: cookiecutter-netbox-plugin version
description: What version of cookiecutter-netbox-plugin are you currently running?
placeholder: v0.1.0
placeholder: v0.2.0
validations:
required: true
- type: dropdown
attributes:
label: Python version
description: What version of Python are you currently running?
options:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
attributes:
label: cookiecutter-netbox-plugin version
description: What version of cookiecutter-netbox-plugin are you currently running?
placeholder: v0.1.0
placeholder: v0.2.0
validations:
required: true
- type: dropdown
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.0 (2024-05-06)

* Updates to target NetBox 4.0.

## 0.1.0 (2023-02-06)

* First release on PyPI.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ conform to best practice.

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

**Note:** Plugins from this version target NetBox 4.0+

## Features

This tool will create Python project with the following features:
Expand Down
4 changes: 4 additions & 0 deletions docs/history.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# History

## v0.2.0

* Updates to target NetBox 4.0

## v0.1.0

***first (Beta) release with the following features:***
Expand Down
5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cookiecutter-netbox-plugin"
version = "0.1.0"
version = "0.2.0"
authors = [
{name = "Arthur Hanson", email = "[email protected]"},
]
Expand All @@ -19,13 +19,12 @@ classifiers=[
'Intended Audience :: Developers',
'Natural Language :: English',
"Programming Language :: Python :: 3 :: Only",
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]

requires-python = ">=3.8"
requires-python = ">=3.10.0"

[project.optional-dependencies]
test = [
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.hyphenated}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The features the plugin provides should be listed here.

| NetBox Version | Plugin Version |
|----------------|----------------|
| 3.7 | 0.1.0 |
| 4.0 | 0.1.0 |

## Installing

Expand Down
3 changes: 1 addition & 2 deletions {{cookiecutter.hyphenated}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ classifiers=[
{%- endif %}
'Natural Language :: English',
"Programming Language :: Python :: 3 :: Only",
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]

requires-python = ">=3.8.1"
requires-python = ">=3.10.0"

[project.optional-dependencies]
test = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
__version__ = "{{ cookiecutter.version }}"


from extras.plugins import PluginConfig
from netbox.plugins import PluginConfig


class {{ cookiecutter.__model_name }}Config(PluginConfig):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
link="plugins:{{ cookiecutter.underscored }}:{{ cookiecutter.__model_url_name }}_add",
title="Add",
icon_class="mdi mdi-plus-thick",
color=ButtonColorChoices.GREEN,
)
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
{% endraw %}
<h5 class="card-header">{{ cookiecutter.project_name }}</h5>
{% raw %}
<div class="card-body">
<table class="table table-hover attr-table">
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>
</tr>
</table>
</div>
<table class="table table-hover attr-table">
<tr>
<th scope="row">Name</th>
<td>{{ object.name }}</td>
</tr>
</table>
</div>
{% include 'inc/panels/custom_fields.html' %}
</div>
Expand Down

0 comments on commit d920039

Please sign in to comment.