Adding a new python package

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding a new python package

Matthias Kuhn 🌍
Hi

I would like to add a simple new python package to OSGeo4W (and
potentially a couple of others more in the future).

I noticed the description of creating new osgeo4w packages in the wiki
(https://trac.osgeo.org/osgeo4w/wiki/PackagingInstructions)

This mentions, that one will need access to the osgeo download server.
Is there a formal process to get this access?

And is there anything special to pay attention to when packaging python
packages?

Thanks for any information, I hope I didn't miss any obvious documentation

Matthias

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
Reply | Threaded
Open this post in threaded view
|

Re: Adding a new python package

Helmut Kudrnovsky
>This mentions, that one will need access to the osgeo download server.
>Is there a formal process to get this access?

see

https://lists.osgeo.org/pipermail/sac/2019-October/011545.html

for more information





-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/osgeo4w-dev-OSGeo-Win32-Installer-List-f3765018.html
_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev
best regards
Helmut
Reply | Threaded
Open this post in threaded view
|

Re: Adding a new python package

Jürgen E. Fischer
In reply to this post by Matthias Kuhn 🌍
Hi Matthias,

On Fri, 10. Jan 2020 at 12:29:47 +0100, Matthias Kuhn wrote:
> I would like to add a simple new python package to OSGeo4W (and potentially
> a couple of others more in the future).
 
Which ones?   I use pippkg.sh[0], which installs packages via pip and tars them
up (works for pure python packages or packages that don't bring in binary
dependencies we don't alread have.


> This mentions, that one will need access to the osgeo download server. Is
> there a formal process to get this access?

The key you use for qgis2 should also work on download.osgeo.org.


Jürgen

[0] http://download.osgeo.org/osgeo4w/pippkg.sh

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

signature.asc (844 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding a new python package

Matthias Kuhn 🌍
Hi Jürgen,

On 1/11/20 5:37 PM, Jürgen E. Fischer wrote:
> Hi Matthias,
>
> On Fri, 10. Jan 2020 at 12:29:47 +0100, Matthias Kuhn wrote:
>> I would like to add a simple new python package to OSGeo4W (and potentially
>> a couple of others more in the future).
>  
> Which ones?

packaging [1] is the one I would like to package first.

pum [2] and pirogue [3] might follow.


>     I use pippkg.sh[0], which installs packages via pip and tars them
> up (works for pure python packages or packages that don't bring in binary
> dependencies we don't alread have.
Thanks, that looks helpful.
>> This mentions, that one will need access to the osgeo download server. Is
>> there a formal process to get this access?
> The key you use for qgis2 should also work on download.osgeo.org.

Would you mind changing this to a new key? This one is gone for good on
a system crash way back unfortunately.

Matthias


[1] https://pypi.org/project/packaging/

[2] https://github.com/opengisch/pum

[3] https://github.com/opengisch/pirogue


_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

id_rsa_osgeo.pub (1022 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding a new python package

Jürgen E. Fischer
Hi Matthias,

On Sun, 12. Jan 2020 at 12:18:47 +0100, Matthias Kuhn wrote:
> packaging [1] is the one I would like to package first.
 
> pum [2] and pirogue [3] might follow.
 
> Would you mind changing this to a new key? This one is gone for good on a
> system crash way back unfortunately.

Done.

> [2] https://github.com/opengisch/pum

Why does pum depend on psycopg2-binary instead of psycopg2?


Jürgen

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode

norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Juergen Fischer, Nils Kutscher HR: Amtsgericht Aurich HRB 100827
Datenschutzerklaerung: https://www.norbit.de/83/

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

signature.asc (844 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding a new python package

Jürgen E. Fischer
Hi Matthias,

On Sun, 12. Jan 2020 at 18:09:36 +0100, Jürgen E. Fischer wrote:
> Why does pum depend on psycopg2-binary instead of psycopg2?

ah ok, psycopg2 will be called psycopg2-binary starting with 2.8.

packaging, pum, pirogue and psycopg2-binary added.  psycopg2 replaced with an
empty package depending on psycopg2-binary, pyparsing and pyyaml updated
(for python3 x86 and x86_64).

Jürgen

--
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode

norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Juergen Fischer, Nils Kutscher HR: Amtsgericht Aurich HRB 100827
Datenschutzerklaerung: https://www.norbit.de/83/

_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev

signature.asc (844 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Adding a new python package

Matthias Kuhn 🌍
Thanks Jürgen

I'll postpone my tests for how to package things for osgeo4w for another
day in this case :D

Matthias

On 1/12/20 6:34 PM, Jürgen E. Fischer wrote:

> Hi Matthias,
>
> On Sun, 12. Jan 2020 at 18:09:36 +0100, Jürgen E. Fischer wrote:
>> Why does pum depend on psycopg2-binary instead of psycopg2?
> ah ok, psycopg2 will be called psycopg2-binary starting with 2.8.
>
> packaging, pum, pirogue and psycopg2-binary added.  psycopg2 replaced with an
> empty package depending on psycopg2-binary, pyparsing and pyyaml updated
> (for python3 x86 and x86_64).
>
> Jürgen
>
_______________________________________________
osgeo4w-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/osgeo4w-dev