Re: [QGIS-Developer] install plugin from github

2023-03-21 Thread Hugh Kelley via QGIS-Developer
Awesome that worked perfectly thank you!

I had actually pulled the .py files up into the top level directory to
solve that problem you identify while I was trying to get things running
but obviously that is not the right solution long term.

On Tue, Mar 21, 2023 at 10:14 AM Jacky Volpes via QGIS-Developer <
qgis-developer@lists.osgeo.org> wrote:

> Hi,
>
> I recommend that you clone the repository somewhere else on your computer,
> and add the path in QGIS settings, in the System > Environment variable
> section, in QGIS_PLUGINPATH (see capture below).
>
> This way you will always be able to put the correct path to the plugin.
>
> Because here for instance with this plugin
> , if you want
> your method to work, you should put "ProjectPackager" directory in
> C:\...AppData...\python\plugins\, which is one level inside the cloned repo.
> (i.e. the plugin directory is the directory where the metadata.txt file
> is, and not the whole directory from the repo).
>
> I also recommend the use of the plugin "Plugin Reloader", so that you can
> reload your python files without quiting/lauching QGIS each time (or
> deactivating/reactivating the plugin).
>
>
>
>
> Regards,
>
> Jacky Volpes
> Oslandia
>
>
>
> Le 21/03/2023 à 14:57, Hugh Kelley via QGIS-Developer a écrit :
>
> Hi,
>
> could anyone share instructions for installing a plugin from the source
> code on github instead of the plugin manager and subsequently making
> changes and running the plugin to see the difference?
>
> I've tried cloning the repo to:
>
> C:\Users\hkelley\AppData\Roaming\QGIS\QGIS3\profiles\project-packager_dev\python\plugins\qgis-project-packager-plugin
> and moved some things around to copy the set up of other installed
> plugins.
>
> The plugin appears in the "installed" list but doesn't work.
>
> Maybe I need to compile it? but I would have thought for a python only
> plugin that wouldn't be necessary.
>
> I've also separately followed the instructions for building a plugin from
> scratch using plug in builder and plugin reloader. It's not clear to me how
> I would apply those steps to working with an existing plugin.
>
> thanks for any guidance.
>
> Hugh
>
> ___
> QGIS-Developer mailing listqgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
> --
> Jacky Volpes
>
> Ingénieur SIG - Oslandia
>
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
Hugh Kelley
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [QGIS-Developer] install plugin from github

2023-03-21 Thread Jacky Volpes via QGIS-Developer

Hi,

I recommend that you clone the repository somewhere else on your 
computer, and add the path in QGIS settings, in the System > Environment 
variable section, in QGIS_PLUGINPATH (see capture below).


This way you will always be able to put the correct path to the plugin.

Because here for instance with this plugin 
, if you want 
your method to work, you should put "ProjectPackager" directory in 
C:\...AppData...\python\plugins\, which is one level inside the cloned repo.
(i.e. the plugin directory is the directory where the metadata.txt file 
is, and not the whole directory from the repo).


I also recommend the use of the plugin "Plugin Reloader", so that you 
can reload your python files without quiting/lauching QGIS each time (or 
deactivating/reactivating the plugin).





Regards,

Jacky Volpes
Oslandia



Le 21/03/2023 à 14:57, Hugh Kelley via QGIS-Developer a écrit :

Hi,

could anyone share instructions for installing a plugin from the 
source code on github instead of the plugin manager and subsequently 
making changes and running the plugin to see the difference?


I've tried cloning the repo to:
C:\Users\hkelley\AppData\Roaming\QGIS\QGIS3\profiles\project-packager_dev\python\plugins\qgis-project-packager-plugin
and moved some things around to copy the set up of other installed 
plugins.


The plugin appears in the "installed" list but doesn't work.

Maybe I need to compile it? but I would have thought for a python only 
plugin that wouldn't be necessary.


I've also separately followed the instructions for building a plugin 
from scratch using plug in builder and plugin reloader. It's not clear 
to me how I would apply those steps to working with an existing plugin.


thanks for any guidance.

Hugh

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer


--
Jacky Volpes

Ingénieur SIG - Oslandia
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


[QGIS-Developer] install plugin from github

2023-03-21 Thread Hugh Kelley via QGIS-Developer
Hi,

could anyone share instructions for installing a plugin from the source
code on github instead of the plugin manager and subsequently making
changes and running the plugin to see the difference?

I've tried cloning the repo to:
C:\Users\hkelley\AppData\Roaming\QGIS\QGIS3\profiles\project-packager_dev\python\plugins\qgis-project-packager-plugin
and moved some things around to copy the set up of other installed plugins.

The plugin appears in the "installed" list but doesn't work.

Maybe I need to compile it? but I would have thought for a python only
plugin that wouldn't be necessary.

I've also separately followed the instructions for building a plugin from
scratch using plug in builder and plugin reloader. It's not clear to me how
I would apply those steps to working with an existing plugin.

thanks for any guidance.

Hugh
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer