<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="-1"><font face="Georgia">Thank you for all the
suggestions (Nils, pcav), I'll think about it.</font></font></p>
<p><font size="-1"><font face="Georgia">Yours sincerely, Ervin<br>
</font></font></p>
<div class="moz-cite-prefix">On 2/16/2019 1:50 PM, Nils Nolde wrote:<br>
</div>
<blockquote type="cite"
cite="mid:f2e8c797-e4af-2a57-582a-6bb02c8dd0df@gmail.com">Hi
Ervin,
<br>
<br>
I went through the same pain not too long ago. Unfortunately
there's no graceful way to rename a plugin. I mean, no way to just
change the name and the stats and history will preserve. You will
have to create a new plugin basically and deprecate the old one.
In my case it was purely semantic, functionality didn't really
change. If functionality changes, I guess creating a new plugin
would be the better way anyways.
<br>
<br>
The way I did it (or better will do it next week hopefully):
<br>
1. Upload the new plugin, stating it's the descendant of the old
plugin
<br>
2. Release a last version of the old plugin, that will only:
<br>
- install the new plugin from the repo
<br>
- uninstall itself
<br>
- don't forget to flag as deprecated!
<br>
<br>
I'm happy to tell you though, that QGIS makes this reeeeally easy.
Have a look at my last version, it's literally 5 lines of code
(just be sure to call unload() before you uninstall):
<br>
<a class="moz-txt-link-freetext" href="https://github.com/nilsnolde/orstools-qgis-plugin/blob/01f1c6b1a10c4fdf11c1076e1d1064eaff92b44b/OSMtools/OSMtoolsPlugin.py#L51">https://github.com/nilsnolde/orstools-qgis-plugin/blob/01f1c6b1a10c4fdf11c1076e1d1064eaff92b44b/OSMtools/OSMtoolsPlugin.py#L51</a>
<br>
<br>
I can't remember who suggested this method, but it came from this
list here too. Other suggestions were simple messages to install
the new version or other simple user dialogs. Due to its
simplicity, I went with the auto-uninstall.
<br>
<br>
Best of luck
<br>
Nils
<br>
<br>
</blockquote>
</body>
</html>