netbox-dhcp-kea-plugin 0.10.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- netbox_dhcp_kea_plugin-0.10.4/CONTRIBUTING.md +145 -0
- netbox_dhcp_kea_plugin-0.10.4/LICENSE +674 -0
- netbox_dhcp_kea_plugin-0.10.4/MANIFEST.in +7 -0
- netbox_dhcp_kea_plugin-0.10.4/PKG-INFO +84 -0
- netbox_dhcp_kea_plugin-0.10.4/README.md +47 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/__init__.py +174 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/api/__init__.py +0 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/api/serializers.py +837 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/api/urls.py +37 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/api/views.py +401 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/compat.py +50 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/filtersets.py +429 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/forms.py +2896 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/graphql/__init__.py +17 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/graphql/filters.py +108 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/graphql/schema.py +48 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/graphql/types.py +218 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/management/__init__.py +0 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/management/commands/__init__.py +0 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/management/commands/generate_kea_demo_data.py +1678 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/management/commands/repair_dhcp_services.py +95 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0001_initial.py +770 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0002_populate_standard_data.py +372 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0003_reservation_mode_flags.py +89 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0004_optiondata_ip_source.py +74 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0005_optiondata_record_manual_fields.py +19 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0006_ddns.py +321 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0007_subnet_auto_reservations_staticreservation.py +105 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0008_dhcpserver_ctrl_socket_proxy_enabled_and_more.py +28 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0009_ha_relationship_settings_and_pki.py +227 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0010_storkserver_endpoint_selection.py +56 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0011_user_context_and_decline_probation.py +33 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0012_lease_timers.py +58 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0013_server_defaults_from_config.py +38 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/0014_ddns_gaps.py +33 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/migrations/__init__.py +0 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/models.py +5243 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/navigation.py +337 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/secret_backends.py +91 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/signals.py +124 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/tables.py +868 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/template_content.py +41 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/clientclass.html +164 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/clientclass_prefixes.html +56 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/clientclass_servers.html +41 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/d2daemon.html +77 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/d2daemon_config.html +44 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/d2daemon_domains.html +50 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/ddnsdomain.html +57 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/ddnspolicy.html +110 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/ddnspolicy_clientclasses.html +40 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/ddnspolicy_servers.html +36 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/ddnspolicy_subnets.html +40 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/dhcp-kea.html +27 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/dhcphapeer.html +59 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/dhcpharelationship.html +222 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/dhcpserver.html +618 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/dhcpserver_kea_config.html +34 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/dhcpserver_prefixes.html +75 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/hook.html +87 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/hook_hookgroups.html +57 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/hookgroup.html +42 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/hookgroup_hooks.html +63 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/hookgroup_servers.html +61 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/inc/option_data_table.html +36 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/inc/optiondefinition_table_controls.html +12 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/inc/prefix_dhcp_panel.html +50 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/optiondata.html +155 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/optiondata_clientclasses.html +37 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/optiondefinition.html +145 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/optiondefinition_list.html +132 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/staticreservation.html +69 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/storkagentgroup.html +97 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/storkagentgroup_config.html +39 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/storkagentgroup_servers.html +46 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/storkserver.html +164 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/storkserver_agent_groups.html +40 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/storkserver_config.html +34 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/subnet.html +247 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/subnet_pools.html +142 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/subnet_reservations.html +106 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/subnetpool.html +139 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/tsigkey.html +85 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/templates/netbox_dhcp_kea_plugin/vendoroptionspace.html +128 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/urls.py +411 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin/views.py +1513 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin.egg-info/PKG-INFO +84 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin.egg-info/SOURCES.txt +123 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin.egg-info/dependency_links.txt +1 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin.egg-info/requires.txt +16 -0
- netbox_dhcp_kea_plugin-0.10.4/netbox_dhcp_kea_plugin.egg-info/top_level.txt +1 -0
- netbox_dhcp_kea_plugin-0.10.4/pyproject.toml +135 -0
- netbox_dhcp_kea_plugin-0.10.4/setup.cfg +4 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/__init__.py +1 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/conftest.py +301 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/netbox_configuration.py +67 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_client_class_restrictions.py +1161 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_clientclass_redirect.py +292 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_control_sockets.py +1030 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ddns_api.py +128 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ddns_config_generation.py +124 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ddns_gaps.py +231 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ddns_gating.py +91 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ddns_ha_precedence.py +181 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ddns_models.py +373 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_dhcpserver_form.py +149 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_graphql.py +224 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ha_models.py +1685 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ha_proxy.py +433 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_hook_forms.py +383 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_ip_source_linking.py +571 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_management_commands.py +735 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_models.py +1072 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_netbox_dhcp_kea_plugin.py +399 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_option_data_validation.py +362 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_pki_binding.py +418 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_pki_migration.py +152 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_relay_config.py +67 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_reservation_modes.py +1110 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_service_linking.py +161 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_static_reservations.py +449 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_stork.py +2143 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_subnet_pool.py +1011 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_user_context_and_decline.py +522 -0
- netbox_dhcp_kea_plugin-0.10.4/tests/test_views.py +829 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome, and they are greatly appreciated! Every little bit
|
|
4
|
+
helps, and credit will always be given.
|
|
5
|
+
|
|
6
|
+
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
|
|
7
|
+
|
|
8
|
+
- Reporting a bug
|
|
9
|
+
- Discussing the current state of the code
|
|
10
|
+
- Submitting a fix
|
|
11
|
+
- Proposing new features
|
|
12
|
+
- Becoming a maintainer
|
|
13
|
+
|
|
14
|
+
## General Tips for Working on GitHub
|
|
15
|
+
|
|
16
|
+
* Register for a free [GitHub account](https://github.com/signup) if you haven't already.
|
|
17
|
+
* You can use [GitHub Markdown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) for formatting text and adding images.
|
|
18
|
+
* To help mitigate notification spam, please avoid "bumping" issues with no activity. (To vote an issue up or down, use a :thumbsup: or :thumbsdown: reaction.)
|
|
19
|
+
* Please avoid pinging members with `@` unless they've previously expressed interest or involvement with that particular issue.
|
|
20
|
+
* Familiarize yourself with [this list of discussion anti-patterns](https://github.com/bradfitz/issue-tracker-behaviors) and make every effort to avoid them.
|
|
21
|
+
|
|
22
|
+
## Types of Contributions
|
|
23
|
+
|
|
24
|
+
### Report Bugs
|
|
25
|
+
|
|
26
|
+
Report bugs at https://github.com/LuPo/netbox_dhcp_kea_plugin/issues.
|
|
27
|
+
|
|
28
|
+
If you are reporting a bug, please include:
|
|
29
|
+
|
|
30
|
+
* Your operating system name and version.
|
|
31
|
+
* Any details about your local setup that might be helpful in troubleshooting.
|
|
32
|
+
* Detailed steps to reproduce the bug.
|
|
33
|
+
|
|
34
|
+
### Fix Bugs
|
|
35
|
+
|
|
36
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help
|
|
37
|
+
wanted" is open to whoever wants to implement it.
|
|
38
|
+
|
|
39
|
+
### Implement Features
|
|
40
|
+
|
|
41
|
+
Look through the GitHub issues for features. Anything tagged with "enhancement"
|
|
42
|
+
and "help wanted" is open to whoever wants to implement it.
|
|
43
|
+
|
|
44
|
+
### Write Documentation
|
|
45
|
+
|
|
46
|
+
NetBox DHCP-KEA Plugin could always use more documentation, whether as part of the
|
|
47
|
+
official NetBox DHCP-KEA Plugin docs, in docstrings, or even on the web in blog posts,
|
|
48
|
+
articles, and such.
|
|
49
|
+
|
|
50
|
+
### Submit Feedback
|
|
51
|
+
|
|
52
|
+
The best way to send feedback is to file an issue at https://github.com/LuPo/netbox_dhcp_kea_plugin/issues.
|
|
53
|
+
|
|
54
|
+
If you are proposing a feature:
|
|
55
|
+
|
|
56
|
+
* Explain in detail how it would work.
|
|
57
|
+
* Keep the scope as narrow as possible, to make it easier to implement.
|
|
58
|
+
* Remember that this is a volunteer-driven project, and that contributions
|
|
59
|
+
are welcome :)
|
|
60
|
+
|
|
61
|
+
## Get Started!
|
|
62
|
+
|
|
63
|
+
Ready to contribute? Here's how to set up `netbox-dhcp-kea-plugin` for local development.
|
|
64
|
+
|
|
65
|
+
1. Fork the `netbox_dhcp_kea_plugin` repo on GitHub, and clone your fork:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
$ git clone git@github.com:your_name_here/netbox_dhcp_kea_plugin.git
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
2. Set up a NetBox development environment, as described in [Setting up a Development Environment](https://docs.netbox.dev/en/stable/development/getting-started/). The tests need NetBox's source tree and its requirements, plus PostgreSQL and Redis.
|
|
72
|
+
|
|
73
|
+
3. Activate NetBox's virtual environment, and install the plugin in editable mode with its test and docs extras (see [Plugins Development](https://docs.netbox.dev/en/stable/plugins/development/)):
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
$ source ~/.venv/netbox/bin/activate
|
|
77
|
+
$ pip install -e ".[test,docs]"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
4. Install the netbox-plugin-dns release that matches your NetBox version, from the compatibility table in the README. The plugin cannot load without it:
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
$ pip install "netbox-plugin-dns~=1.7.0"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
5. Create a branch for local development:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
$ git checkout -b name-of-your-bugfix-or-feature
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
6. Commit your changes, push your branch to GitHub, and open a pull request through the GitHub website.
|
|
93
|
+
|
|
94
|
+
## Running the tests
|
|
95
|
+
|
|
96
|
+
The tests import NetBox from `NETBOX_PATH`, the `netbox/` directory of your NetBox checkout:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
$ export NETBOX_PATH=~/netbox/netbox
|
|
100
|
+
$ make test # whole suite, reusing the test database
|
|
101
|
+
$ make test T=tests/test_models.py # one file, or a node id
|
|
102
|
+
$ make test K=test_pool STOP=1 # pytest -k, stop at the first failure
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`make test` runs under the `configuration.py` of your NetBox checkout, so every plugin enabled there takes part. `make test-ci` runs the suite the way CI does: under `tests/netbox_configuration.py`, with only netbox-plugin-dns and this plugin enabled, in a database of its own (`test_netbox_ci`). It reads the connection from `NETBOX_DB_USER`, `NETBOX_DB_PASSWORD`, `NETBOX_DB_HOST`, `NETBOX_DB_PORT`, `NETBOX_REDIS_HOST`, `NETBOX_REDIS_PORT` and `NETBOX_REDIS_PASSWORD`, which default to user and password `netbox` on `localhost` with no Redis password:
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
$ export NETBOX_REDIS_PASSWORD=...
|
|
109
|
+
$ make test-ci
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
`make help` lists every target and variable.
|
|
113
|
+
|
|
114
|
+
## Building the docs
|
|
115
|
+
|
|
116
|
+
The documentation site is built with [Zensical](https://zensical.org) from `docs/` and `zensical.toml`:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
$ make docs # live preview at http://localhost:8000
|
|
120
|
+
$ make docs-check # strict build that fails on broken links, as CI does
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Pull Request Guidelines
|
|
124
|
+
|
|
125
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
126
|
+
|
|
127
|
+
1. The pull request should include tests.
|
|
128
|
+
2. If the pull request adds functionality, the docs should be updated, and the change described under `Unreleased` in `CHANGELOG.md`.
|
|
129
|
+
3. The pull request should work on every NetBox version in the README's compatibility table, with Python 3.12 or later. The [tests workflow](https://github.com/LuPo/netbox_dhcp_kea_plugin/actions/workflows/tests.yaml) runs the suite against each of them; make sure it passes.
|
|
130
|
+
|
|
131
|
+
## Deploying
|
|
132
|
+
|
|
133
|
+
A reminder for the maintainers on how to release:
|
|
134
|
+
|
|
135
|
+
1. Set the new version in `pyproject.toml` and `netbox_dhcp_kea_plugin/__init__.py`, and run `make lock`.
|
|
136
|
+
2. Rename the `Unreleased` heading in `CHANGELOG.md` to the version and date.
|
|
137
|
+
3. Commit, push `main`, and wait for the tests workflow to pass.
|
|
138
|
+
4. Tag that commit with the bare version, and push the tag:
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
$ git tag 0.10.4
|
|
142
|
+
$ git push origin 0.10.4
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
The publish workflow runs the tests again, builds the package and uploads it to PyPI. It refuses a tag that does not match the package version.
|