Packaging plugins
Plugin package contents
Packages are a single file, internally a zip archive, containing a pluginInfo.json file with metadata about the plugin,
the plugin code, and any other files or resources needed by the plugin to work.
PluginInfo.json entries:
Creating a new plugin package project
We provide a Cookiecutter template project to simplify the creation of plugin package projects.
You can use it directly or modify it for you own needs.
The template can be found in the application directory, under plugins/tools/pkgplugintemplate.
-
Install Python if it is not already installed in your system
Cookiecutter is compatible with both Python 2 and Python 3
-
Install Cookiecutter if you don't have it already
Usually this can be done by using pip:
code language-none pip install cookiecutterFor alternative ways to install Cookiecutter or for more information about Cookiecutter you can check the documentation at https://cookiecutter.readthedocs.io/en/latest/installation.html
-
Create a new plugin package project
In a terminal window run:
code language-none cookiecutter path/to/pkgplugintemplate -o path/to/new/projectFill the information required. The new project will be created in the specified directory.
-
Package your plugin once development is complete
In a terminal window run:
code language-none python makepackage.py -
The plugin package will be generated in the build directory