g-sherman / plugin_build_tool

Python command line tool for compiling and deploying QGIS plugins
GNU General Public License v2.0
39 stars 18 forks source link

Use of -p option with the deploy command #8

Closed cratcliff closed 5 years ago

cratcliff commented 6 years ago

I am trying to use the pb_tool to package my plugin in an environment which is independent to the default QGIS user plugin folder so I can then test the installation/upgrade through the existing QGIS plugin manager.

I am currently using the following command pb_tool deploy –p c:\non-standard\my_qgisplugins to deploy to a folder which is NOT the default QGIS user plugin folder. What I am finding is that the plugin is being removed from the default QGIS user plugin folder (ie <home>.qgis2/python/plugins) and then deployed to the specified non-standard folder. It seems that when using the –p option, pb_tool is first checking for the existence of the plugin in the default QGIS user plugin folder, deleting it, then deploying to the specified path. Is this behaviour correct? I would have expected the existence check to be applied to the specified path and not the default QGIS user plugin folder when –p is used.

Also is possible to add a –p option to the zip command as well, which then passes the path to the deploy command when required prior to zipping?

g-sherman commented 6 years ago

Good point. We’ll see about making that change.

-gary

On Jun 20, 2018, at 8:04 PM, cratcliff notifications@github.com wrote:

I am trying to use the pb_tool to package my plugin in an environment which is independent to the default QGIS user plugin folder so I can then test the installation/upgrade through the existing QGIS plugin manager.

I am currently using the following command pb_tool deploy –p c:\non-standard\my_qgisplugins to deploy to a folder which is NOT the default QGIS user plugin folder. What I am finding is that the plugin is being removed from the default QGIS user plugin folder (ie .qgis2/python/plugins) and then deployed to the specified non-standard folder. It seems that when using the –p option, pb_tool is first checking for the existence of the plugin in the default QGIS user plugin folder, deleting it, then deploying to the specified path. Is this behaviour correct? I would have expected the existence check to be applied to the specified path and not the default QGIS user plugin folder when –p is used.

Also is possible to add a –p option to the zip command as well, which then passes the path to the deploy command when required prior to zipping?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/g-sherman/plugin_build_tool/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AAeKysfDiig55LSO2ZnG5_XCg7XEukm_ks5t-xs_gaJpZM4UxXYu.

--------------------- Gary Sherman Founder, QGIS Project -Open Source GIS Books: http://locatepress.com -Geospatial Consulting & Hosting: http://geoapt.com "We work virtually everywhere" ---------------------