You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. Install dependencies and start your virtualenv:
72
+
3. Activate the NetBox virtual environment (see the NetBox documentation under [Setting up a Development Environment](https://docs.netbox.dev/en/stable/development/getting-started/)):
73
73
74
74
```
75
-
$ poetry install -E test -E doc -E dev
75
+
$ source ~/.venv/netbox/bin/activate
76
76
```
77
77
78
-
4. Create a branch for local development:
78
+
4. Add the plugin to NetBox virtual environment in Develop mode (see [Plugins Development](https://docs.netbox.dev/en/stable/plugins/development/)):
79
+
80
+
To ease development, it is recommended to go ahead and install the plugin at this point using setuptools' develop mode. This will create symbolic links within your Python environment to the plugin development directory. Call setup.py from the plugin's root directory with the develop argument (instead of install):
79
81
80
82
```
81
-
$ git checkout -b name-of-your-bugfix-or-feature
83
+
$ python setup.py develop
82
84
```
83
85
84
-
Now you can make your changes locally.
85
-
86
-
5. When you're done making changes, check that your changes pass the
87
-
tests, including testing other Python versions, with tox:
86
+
5. Create a branch for local development:
88
87
89
88
```
90
-
$ poetry run tox
89
+
$ git checkout -b name-of-your-bugfix-or-feature
91
90
```
92
91
92
+
Now you can make your changes locally.
93
+
93
94
6. Commit your changes and push your branch to GitHub:
94
95
95
96
```
@@ -108,21 +109,13 @@ Before you submit a pull request, check that it meets these guidelines:
108
109
2. If the pull request adds functionality, the docs should be updated. Put
109
110
your new functionality into a function with a docstring, and add the
110
111
feature to the list in README.md.
111
-
3. The pull request should work for Python 3.6, 3.7, 3.8 and 3.9. Check
112
+
3. The pull request should work for Python 3.8, 3.9, 3.10 and 3.11. Check
0 commit comments