Re: [Qgis-developer] Ideas concerning plugin deployment

2017-03-13 Thread Tom Kralidis


In MetaSearch we have a release workflow for 'out-of-band' releases
from QGIS core which was inherited from when MetaSearch was not a core
QGIS plugin.

MetaSearch uses Paver to generate a zipfile for upload to plugins.qgis.org [1].
You can see the core machinery to generate the zipfile at [2].

Hope this helps.

..Tom

[1] 
https://github.com/qgis/QGIS/blob/master/python/plugins/MetaSearch/pavement.py#L138
[2] 
https://github.com/qgis/QGIS/blob/master/python/plugins/MetaSearch/pavement.py#L106


On Mon, 13 Mar 2017, Matthias Kuhn wrote:


Date: Mon, 13 Mar 2017 09:26:18 +0100
From: Matthias Kuhn 
To: qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] Ideas concerning plugin deployment

Hi Magnus,

we use a release script in QFieldSync, where we directly release from
travis when a new tag pushed and tests run successfully (and some other
conditions like tag name matches the version in metadata etc. are met).

https://github.com/opengisch/qfieldsync/blob/master/.travis.yml#L27

It also only packages a sub-folder with the plugin, so scripts for ci
etc that live outside this folder are not packaged.

Hope that helps :)

Matthias


On 03/11/2017 10:12 PM, Magnus Homann wrote:

Hello, currently I tag my plugin code in git, and extract and build a
zip-file which is uploaded to plugin repo.
The Makefile that plugin_builder is supplyng, also have an option to zip
locally deployed files for later upload.

I prefer to packaged directly from tag in git, but then every file that
is in git will be packaged!

Have anyone made a mixed approach, packaging directly from a git tag,
but only a sub-set of the files?

/Magnus
___
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 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 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] Ideas concerning plugin deployment

2017-03-13 Thread Marco Bernasocchi


On 13.03.2017 11:12, Marco Bernasocchi wrote:

> maybe we could have a pip repo as backend. just talking out loud and
> explicitly adding Ale to the conversation :)
> 

Forgot the link: https://packaging.python.org/self_hosted_repository/


> ciao
> 
> 
> 
> ___
> 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
> 

-- 
Marco Bernasocchi
OPENGIS.ch - berna.io - 27summits.ch



signature.asc
Description: OpenPGP digital signature
___
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] Ideas concerning plugin deployment

2017-03-13 Thread Marco Bernasocchi


On 13.03.2017 11:06, Tim Sutton wrote:
>> or make plugins PIP packages :)
> 
> Yeah or that :-) I think we did discuss it before and it would be pretty
> cool - only thing we lose really if the curated repository approach we
> have now (which might make some people happy I guess)...

maybe we could have a pip repo as backend. just talking out loud and
explicitly adding Ale to the conversation :)

ciao

-- 
Marco Bernasocchi
OPENGIS.ch - berna.io - 27summits.ch



signature.asc
Description: OpenPGP digital signature
___
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] Ideas concerning plugin deployment

2017-03-13 Thread Tim Sutton
Hi

> On 13 Mar 2017, at 12:04 PM, Marco Bernasocchi  wrote:
> 
> Hi
> 
> On 13.03.2017 10:44, Tim Sutton wrote:
>> One thing that might actually be nice is for us to introduce some kind
>> of Manifest file for plugins (we could just copy the system from pip) so
>> that plugin authors can specify which files and resources get packaged.
> 
> 
> or make plugins PIP packages :)

Yeah or that :-) I think we did discuss it before and it would be pretty cool - 
only thing we lose really if the curated repository approach we have now (which 
might make some people happy I guess)...

Regards

Tim


> 
> 
> -- 
> Marco Bernasocchi
> OPENGIS.ch - berna.io - 27summits.ch
> 

—










Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

Kartoza is a merger between Linfiniti and Afrispatial

___
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] Ideas concerning plugin deployment

2017-03-13 Thread Marco Bernasocchi
Hi

On 13.03.2017 10:44, Tim Sutton wrote:
> One thing that might actually be nice is for us to introduce some kind
> of Manifest file for plugins (we could just copy the system from pip) so
> that plugin authors can specify which files and resources get packaged.


or make plugins PIP packages :)


-- 
Marco Bernasocchi
OPENGIS.ch - berna.io - 27summits.ch



signature.asc
Description: OpenPGP digital signature
___
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] Ideas concerning plugin deployment

2017-03-13 Thread Tim Sutton
Hi Magnus

(by the way nice to see you pop up here on the list after many years!)

> On 13 Mar 2017, at 10:32 AM, Magnus Homann  wrote:
> 
> Thank you, I'll look into InaSAFE if that is something I could use. The 
> Makefile from plugin builder is already using git archive, but packages every 
> file in the repo. 

Yeah if you are using git-archive it is going to make a zip containing 
everything in the tag so you need to extract that afterwards and clean out 
non-distributable stuff. Some folks are also using paver to do package 
preparation - check at some of the Boundless plugins for examples...

One thing that might actually be nice is for us to introduce some kind of 
Manifest file for plugins (we could just copy the system from pip) so that 
plugin authors can specify which files and resources get packaged.

Regards

Tim


> 
> /Magnus
> ___
> 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

—










Tim Sutton

Co-founder: Kartoza
Project chair: QGIS.org

Visit http://kartoza.com  to find out about open source:

Desktop GIS programming services
Geospatial web development
GIS Training
Consulting Services

Skype: timlinux 
IRC: timlinux on #qgis at freenode.net

Kartoza is a merger between Linfiniti and Afrispatial

___
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] Ideas concerning plugin deployment

2017-03-13 Thread Magnus Homann
Thank you, I'll look into InaSAFE if that is something I could use. The 
Makefile from plugin builder is already using git archive, but packages every 
file in the repo. 

/Magnus
___
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] Ideas concerning plugin deployment

2017-03-13 Thread Matthias Kuhn
Hi Magnus,

we use a release script in QFieldSync, where we directly release from
travis when a new tag pushed and tests run successfully (and some other
conditions like tag name matches the version in metadata etc. are met).

https://github.com/opengisch/qfieldsync/blob/master/.travis.yml#L27

It also only packages a sub-folder with the plugin, so scripts for ci
etc that live outside this folder are not packaged.

Hope that helps :)

Matthias


On 03/11/2017 10:12 PM, Magnus Homann wrote:
> Hello, currently I tag my plugin code in git, and extract and build a
> zip-file which is uploaded to plugin repo.
> The Makefile that plugin_builder is supplyng, also have an option to zip
> locally deployed files for later upload.
> 
> I prefer to packaged directly from tag in git, but then every file that
> is in git will be packaged!
> 
> Have anyone made a mixed approach, packaging directly from a git tag,
> but only a sub-set of the files?
> 
> /Magnus
> ___
> 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 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] Ideas concerning plugin deployment

2017-03-12 Thread Ismail Sunni
Hi Magnus,

In InaSAFE plugin, we also use git-archive, but since we use git submodule,
we use git archive-all (available in brew or pip) [1]. We create script to
do the release of the plugin to make it easier [2]. We add more
functionalities like removing test related files (to make the size smaller)
and create windows installer for it.

Best Regards

[1] https://github.com/Kentzo/git-archive-all
[2] https://github.com/inasafe/inasafe/blob/develop/scripts/release.sh

On Mon, Mar 13, 2017 at 5:19 AM, Luigi Pirelli  wrote:

> can be useful?  https://git-scm.com/docs/git-archive
> Luigi Pirelli
>
> 
> **
> * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
> * LinkedIn: https://www.linkedin.com/in/luigipirelli
> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
> * GitHub: https://github.com/luipir
> * Mastering QGIS 2nd Edition:
> * https://www.packtpub.com/big-data-and-business-
> intelligence/mastering-qgis-second-edition
> 
> **
>
>
> On 11 March 2017 at 22:12, Magnus Homann  wrote:
> > Hello, currently I tag my plugin code in git, and extract and build a
> > zip-file which is uploaded to plugin repo.
> > The Makefile that plugin_builder is supplyng, also have an option to zip
> > locally deployed files for later upload.
> >
> > I prefer to packaged directly from tag in git, but then every file that
> is
> > in git will be packaged!
> >
> > Have anyone made a mixed approach, packaging directly from a git tag, but
> > only a sub-set of the files?
> >
> > /Magnus
> > ___
> > 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 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
>



-- 
Ismail Sunni
ismailsunni.wordpress.com
___
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] Ideas concerning plugin deployment

2017-03-12 Thread Luigi Pirelli
can be useful?  https://git-scm.com/docs/git-archive
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* 
https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**


On 11 March 2017 at 22:12, Magnus Homann  wrote:
> Hello, currently I tag my plugin code in git, and extract and build a
> zip-file which is uploaded to plugin repo.
> The Makefile that plugin_builder is supplyng, also have an option to zip
> locally deployed files for later upload.
>
> I prefer to packaged directly from tag in git, but then every file that is
> in git will be packaged!
>
> Have anyone made a mixed approach, packaging directly from a git tag, but
> only a sub-set of the files?
>
> /Magnus
> ___
> 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 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