Preparing the plugin for publishing
Once the plugin is ready and well-tested, you may want to share it with the community by uploading it to the Official QGIS Python plugins repository at https://plugins.qgis.org/.
First, it is necessary to check whether the plugin meets the following requirements:
There is no malicious code in it
There are no architecture-dependent binaries
It has the correct
metadata.txt
file with all the required items
We have listed the most important requirements here. Other recommendations can be found at the plugins repository page and in the Releasing your plugin chapter of PyQGIS Developer Cookbook.
The next step is to prepare the plugin package. QGIS plugins are distributed in the form of ZIP archives, and each archive contains only one plugin. As plugins are extracted to the QGIS plugins directory, we must ensure that the plugin has its own folder inside the package.
Also, it is good practice to include only files that are absolutely required by the plugin in the plugin...