Python plugin development guidelines
Plugin development framework description
Developers can use their favorite framework for development, there are no hard and fast requirements
Examples of plugins organized in source distribution packages
Pros: cross-platform, simple and small package
Disadvantages: need to use pip installation before implementation, when there are other third-party package dependencies, need to be able to access the mirror source to install the dependency package
I. The overall structure of the plug-in code project example is as follows:
II. How to develop plugins:
Reference plugin-demo-python
Create plugin code project
Plugin code is recommended to be managed in a unified way. Generic open source plugins can be put under ci-plugins
Modify the package name to have a recognizable name, it is recommended to be consistent with the plugin logo
Implementing plug-in functionality
III. How to package and release:
enter the root directory of the plug-in code project
Execute the package command package
Create a new folder in any location, name it: release_pkg = ${your plugin identifier}_release
Copy the package produced in step 2 to ${release_pkg}
Add the task.json file to ${release_pkg} under task.json See the example to configure it according to the plugin functionality.
task.json example.
In the ${release_pkg} directory, just make a
zip
package of all the files
Example of zip
package structure.
After the package is finished, raise a release order in the plugin workbench to test or release the plugin
Last updated