[GRASS-dev] [release planning] GRASS GIS 8.0.0

Hi devs,

since we now have the 7.8 release branch, I suggest to get rid of
Python 2 support in master.

This will greatly simplify the code. Python 2 is EOL anyway in a few months.

Markus

Markus Neteler wrote

Hi devs,

since we now have the 7.8 release branch, I suggest to get rid of
Python 2 support in master.

+1

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

On Sun, Aug 4, 2019 at 9:20 AM Markus Neteler <neteler@osgeo.org> wrote:

Hi devs,

since we now have the 7.8 release branch, I suggest to get rid of
Python 2 support in master.

This will greatly simplify the code. Python 2 is EOL anyway in a few months.

It would require extra effort to remove it, I don’t see a great need to do that, it will make backporting harder too. Is there something specifically that bothers you? We can require Python3 but keep unofficially the compatibility as long as practical. But maybe I am missing something.

Anna

Markus


grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler@osgeo.org> wrote:

Hi devs,

since we now have the 7.8 release branch, I suggest to get rid of
Python 2 support in master.

This will greatly simplify the code. Python 2 is EOL anyway in a few months.

I guess the first step would be to change the deprecated shebang
#!/usr/bin/env python
to
#!/usr/bin/env python3

Markus M

On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler@osgeo.org> wrote:
>
> Hi devs,
>
> since we now have the 7.8 release branch, I suggest to get rid of
> Python 2 support in master.
>
> This will greatly simplify the code. Python 2 is EOL anyway in a few months.

I guess the first step would be to change the deprecated shebang
#!/usr/bin/env python
to
#!/usr/bin/env python3

Exactly.

markusN

PS: Those users insisting on Python 2 may then just run

find -name '*.py' | xargs sed -i 's,#!/usr/bin/env
python3,#!/usr/bin/env python2,' && \
    sed -i 's,python3,python2,' include/Make/Platform.make.in

On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler@osgeo.org> wrote:
>
> Hi devs,
>
> since we now have the 7.8 release branch, I suggest to get rid of
> Python 2 support in master.
>
> This will greatly simplify the code. Python 2 is EOL anyway in a few months.

I guess the first step would be to change the deprecated shebang
#!/usr/bin/env python
to
#!/usr/bin/env python3

I have created a related PR:
https://github.com/OSGeo/grass/pull/75

markusN

On Mon, Aug 5, 2019 at 9:11 AM Markus Neteler <neteler@osgeo.org> wrote:

On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
<markus.metz.giswork@gmail.com> wrote:
> On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler@osgeo.org> wrote:
> >
> > Hi devs,
> >
> > since we now have the 7.8 release branch, I suggest to get rid of
> > Python 2 support in master.
> >
> > This will greatly simplify the code. Python 2 is EOL anyway in a few months.
>
> I guess the first step would be to change the deprecated shebang
> #!/usr/bin/env python
> to
> #!/usr/bin/env python3

I have created a related PR:
https://github.com/OSGeo/grass/pull/75

FYI: It has been reviewed and merged.

I am tempted to apply it also to relbranch78... opinions?

markusN

On Mon, Aug 5, 2019 at 3:55 PM Markus Neteler <neteler@osgeo.org> wrote:

On Mon, Aug 5, 2019 at 9:11 AM Markus Neteler <neteler@osgeo.org> wrote:

On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
<markus.metz.giswork@gmail.com> wrote:

On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler@osgeo.org> wrote:

Hi devs,

since we now have the 7.8 release branch, I suggest to get rid of
Python 2 support in master.

This will greatly simplify the code. Python 2 is EOL anyway in a few months.

I guess the first step would be to change the deprecated shebang
#!/usr/bin/env python
to
#!/usr/bin/env python3

I have created a related PR:
https://github.com/OSGeo/grass/pull/75

FYI: It has been reviewed and merged.

I am tempted to apply it also to relbranch78… opinions?

+1 to apply it also to relbr78

Markus M

Markus Metz-3 wrote

On Mon, Aug 5, 2019 at 3:55 PM Markus Neteler &lt;

neteler@

&gt; wrote:

On Mon, Aug 5, 2019 at 9:11 AM Markus Neteler &lt;

neteler@

&gt; wrote:

> On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
> &lt;

markus.metz.giswork@

&gt; wrote:

> > On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler &lt;

neteler@

&gt;
wrote:

> > >
> > > Hi devs,
> > >
> > > since we now have the 7.8 release branch, I suggest to get rid of
> > > Python 2 support in master.
> > >
> > > This will greatly simplify the code. Python 2 is EOL anyway in a

few months.

> >
> > I guess the first step would be to change the deprecated shebang
> > #!/usr/bin/env python
> > to
> > #!/usr/bin/env python3
>
> I have created a related PR:
> https://github.com/OSGeo/grass/pull/75

FYI: It has been reviewed and merged.

I am tempted to apply it also to relbranch78... opinions?

+1 to apply it also to relbr78

Markus M

_______________________________________________
grass-dev mailing list

grass-dev@.osgeo

https://lists.osgeo.org/mailman/listinfo/grass-dev

+1

-----
best regards
Helmut
--
Sent from: http://osgeo-org.1560.x6.nabble.com/Grass-Dev-f3991897.html

Hi,

ne 4. 8. 2019 v 15:20 odesílatel Markus Neteler <neteler@osgeo.org> napsal:

since we now have the 7.8 release branch, I suggest to get rid of
Python 2 support in master.

This will greatly simplify the code. Python 2 is EOL anyway in a few months.

+1

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Hi,

po 5. 8. 2019 v 17:28 odesílatel Markus Metz
<markus.metz.giswork@gmail.com> napsal:

> I am tempted to apply it also to relbranch78... opinions?

+1 to apply it also to relbr78

I am not sure. Do we plan to change package dependency (Debian,
Ubuntu, Fedora) from Python2 to Python3?

Ma

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

On 8/5/19 8:23 PM, Martin Landa wrote:

po 5. 8. 2019 v 17:28 odesílatel Markus Metz napsal:

I am tempted to apply it also to relbranch78... opinions?

+1 to apply it also to relbr78

I am not sure. Do we plan to change package dependency (Debian,
Ubuntu, Fedora) from Python2 to Python3?

The grass package in Debian will be switched to Python 3 ASAP. 7.8 looks
like the first release that will make that possible.

Kind Regards,

Bas

--
GPG Key ID: 4096R/6750F10AE88D4AF1
Fingerprint: 8182 DE41 7056 408D 6146 50D1 6750 F10A E88D 4AF1

Hi,

Sebastiaan Couwenberg <sebastic@xs4all.nl> schrieb am Mo., 5. Aug. 2019, 20:43:

On 8/5/19 8:23 PM, Martin Landa wrote:

po 5. 8. 2019 v 17:28 odesílatel Markus Metz napsal:

I am tempted to apply it also to relbranch78… opinions?

+1 to apply it also to relbr78

I am not sure. Do we plan to change package dependency (Debian,
Ubuntu, Fedora) from Python2 to Python3?

The grass package in Debian will be switched to Python 3 ASAP. 7.8 looks
like the first release that will make that possible.

Yes, finally that’s available.

And in Fedora, those packages without Python 3 support will be removed these days.

Best,
Markus

On Mon, Aug 5, 2019 at 3:55 PM Markus Neteler <neteler@osgeo.org> wrote:

On Mon, Aug 5, 2019 at 9:11 AM Markus Neteler <neteler@osgeo.org> wrote:
> On Mon, Aug 5, 2019 at 8:38 AM Markus Metz
> > On Sun, Aug 4, 2019 at 3:20 PM Markus Neteler <neteler@osgeo.org> wrote:
> > > This will greatly simplify the code. Python 2 is EOL anyway in a few months.
> >
> > I guess the first step would be to change the deprecated shebang
> > #!/usr/bin/env python
> > to
> > #!/usr/bin/env python3
>
> I have created a related PR:
> https://github.com/OSGeo/grass/pull/75

FYI: It has been reviewed and merged.

Backported to relbr7.8 in:

https://github.com/OSGeo/grass/commit/be0e59081095e20bc4531752747df960b4e90cce

markusN