File tree 11 files changed +24
-20
lines changed
{{cookiecutter.hyphenated}}
{{cookiecutter.underscored}}
templates/{{cookiecutter.underscored}} 11 files changed +24
-20
lines changed Original file line number Diff line number Diff line change @@ -11,18 +11,17 @@ body:
11
11
attributes :
12
12
label : cookiecutter-netbox-plugin version
13
13
description : What version of cookiecutter-netbox-plugin are you currently running?
14
- placeholder : v0.1 .0
14
+ placeholder : v0.2 .0
15
15
validations :
16
16
required : true
17
17
- type : dropdown
18
18
attributes :
19
19
label : Python version
20
20
description : What version of Python are you currently running?
21
21
options :
22
- - " 3.8"
23
- - " 3.9"
24
22
- " 3.10"
25
23
- " 3.11"
24
+ - " 3.12"
26
25
validations :
27
26
required : true
28
27
- type : textarea
Original file line number Diff line number Diff line change 14
14
attributes :
15
15
label : cookiecutter-netbox-plugin version
16
16
description : What version of cookiecutter-netbox-plugin are you currently running?
17
- placeholder : v0.1 .0
17
+ placeholder : v0.2 .0
18
18
validations :
19
19
required : true
20
20
- type : dropdown
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.2.0 (2024-05-06)
4
+
5
+ * Updates to target NetBox 4.0.
6
+
3
7
## 0.1.0 (2023-02-06)
4
8
5
9
* First release on PyPI.
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ conform to best practice.
5
5
6
6
* Documentation: < https://netbox-community.github.io/cookiecutter-netbox-plugin/ >
7
7
8
+ ** Note:** Plugins from this version target NetBox 4.0+
9
+
8
10
## Features
9
11
10
12
This tool will create Python project with the following features:
Original file line number Diff line number Diff line change 1
1
# History
2
2
3
+ ## v0.2.0
4
+
5
+ * Updates to target NetBox 4.0
6
+
3
7
## v0.1.0
4
8
5
9
*** first (Beta) release with the following features:***
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
8
8
[project ]
9
9
name = " cookiecutter-netbox-plugin"
10
- version = " 0.1 .0"
10
+ version = " 0.2 .0"
11
11
authors = [
12
12
{
name =
" Arthur Hanson" ,
email =
" [email protected] " },
13
13
]
@@ -19,13 +19,12 @@ classifiers=[
19
19
' Intended Audience :: Developers' ,
20
20
' Natural Language :: English' ,
21
21
" Programming Language :: Python :: 3 :: Only" ,
22
- ' Programming Language :: Python :: 3.9' ,
23
22
' Programming Language :: Python :: 3.10' ,
24
23
' Programming Language :: Python :: 3.11' ,
25
24
' Programming Language :: Python :: 3.12' ,
26
25
]
27
26
28
- requires-python = " >=3.8 "
27
+ requires-python = " >=3.10.0 "
29
28
30
29
[project .optional-dependencies ]
31
30
test = [
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ The features the plugin provides should be listed here.
16
16
17
17
| NetBox Version | Plugin Version |
18
18
| ----------------| ----------------|
19
- | 3.7 | 0.1.0 |
19
+ | 4.0 | 0.1.0 |
20
20
21
21
## Installing
22
22
Original file line number Diff line number Diff line change @@ -30,13 +30,12 @@ classifiers=[
30
30
{%- endif %}
31
31
'Natural Language :: English',
32
32
"Programming Language :: Python :: 3 :: Only",
33
- 'Programming Language :: Python :: 3.9',
34
33
'Programming Language :: Python :: 3.10',
35
34
'Programming Language :: Python :: 3.11',
36
35
'Programming Language :: Python :: 3.12',
37
36
]
38
37
39
- requires-python = " >=3.8.1 "
38
+ requires-python = " >=3.10.0 "
40
39
41
40
[project .optional-dependencies ]
42
41
test = [
Original file line number Diff line number Diff line change 5
5
__version__ = "{{ cookiecutter.version }}"
6
6
7
7
8
- from extras .plugins import PluginConfig
8
+ from netbox .plugins import PluginConfig
9
9
10
10
11
11
class {{ cookiecutter .__model_name }}Config (PluginConfig ):
Original file line number Diff line number Diff line change 6
6
link = "plugins:{{ cookiecutter.underscored }}:{{ cookiecutter.__model_url_name }}_add" ,
7
7
title = "Add" ,
8
8
icon_class = "mdi mdi-plus-thick" ,
9
- color = ButtonColorChoices .GREEN ,
10
9
)
11
10
]
12
11
Original file line number Diff line number Diff line change 9
9
{% endraw %}
10
10
< h5 class ="card-header "> {{ cookiecutter.project_name }}</ h5 >
11
11
{% 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 >
20
18
</ div >
21
19
{% include 'inc/panels/custom_fields.html' %}
22
20
</ div >
You can’t perform that action at this time.
0 commit comments