Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #12006 > unrolled thread

Bug#936604: getmail: Python2 removal in sid/bullseye

Started byOsamu Aoki <osamu@debian.org>
First post2019-11-12 16:40 +0100
Last post2020-02-19 22:40 +0100
Articles 9 — 5 participants

Back to article view | Back to linux.debian.maint.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#936604: getmail: Python2 removal in sid/bullseye Osamu Aoki <osamu@debian.org> - 2019-11-12 16:40 +0100
    Bug#936604: getmail: Python2 removal in sid/bullseye Mattia Rizzolo <mattia@debian.org> - 2019-11-12 17:10 +0100
      Bug#936604: getmail: Python2 removal in sid/bullseye Osamu Aoki <osamu@debian.org> - 2019-11-13 15:20 +0100
    Bug#936604: getmail: Python2 removal in sid/bullseye Ondrej Novy <novy@ondrej.org> - 2019-11-13 09:40 +0100
      Bug#936604: getmail: Python2 removal in sid/bullseye Osamu Aoki <osamu@debian.org> - 2019-11-13 15:30 +0100
    Re: getmail: Python2 removal in sid/bullseye Iustin Pop <iustin@debian.org> - 2019-11-13 15:40 +0100
      Bug#936604: getmail: Python2 removal in sid/bullseye Osamu Aoki <osamu@debian.org> - 2019-11-13 16:30 +0100
        Bug#936604: getmail: Python2 removal in sid/bullseye Iustin Pop <iustin@debian.org> - 2019-11-14 00:00 +0100
      Bug#936604: getmail: Python2 removal in sid/bullseye Daniel Kahn Gillmor <dkg@fifthhorseman.net> - 2020-02-19 22:40 +0100

#12006 — Bug#936604: getmail: Python2 removal in sid/bullseye

FromOsamu Aoki <osamu@debian.org>
Date2019-11-12 16:40 +0100
SubjectBug#936604: getmail: Python2 removal in sid/bullseye
Message-ID<z1GqR-7uf-3@gated-at.bofh.it>
Hi,

It seems I need to discuss here before adding followings.

| Package: src:getmail
| Version: 5.13-1
| Severity: normal
| Tags: sid bullseye
| User: debian-python@lists.debian.org
| Usertags: py2keep

Upstream is active and prides to keep python 2.5 compatibility code in
it ... (Not just 2.7).  I (Osamu Aoki <osamu@debian.org>) and dkg even
made some effort to support both 2 and 3 but the idea was rejected by
upstream in 2018.  (Then we both lost motivation since upstream will not
include such code in near future)
  https://marc.info/?l=getmail&m=151542515929707&w=2

The upstream is somehow convinced that python2 will be there for some
time (Year ~2020 and later).
  https://marc.info/?l=getmail&m=151542154628352&w=2
| > Python2 will be EOL after 2020.
| [...]
| > But, if getmail stays as python2 code, many distros have no choice but
| > to drop getmail sometime after 2020.
| 
| Uh, no, they won't.  Python 2 may stop *development*, but it doesn't magically
| stop working in 2020.  I fully expect distros will keep shipping Python 2 for
| years after that, and undoubtedly there will still be lots of Python 2 code
| in the world running in 2030 and later.

The related binary packages are available in 2 binary names (depending on release)
 getmail4 (version=4,5) popcon installed ~2000
 getmail  (version=3,5) popcon installed ~1000

https://qa.debian.org/popcon-graph.php?packages=getmail%20getmail4&show_installed=on&want_legend=on&want_ticks=on&date_fmt=%25Y-%25m&beenhere=1

I think this qualifies for "py2keep".

The next upload of new upstream 5.14 should update dependency etc to
python2 instead of bare python.

If Debian and Fedora demonstrate its python3 removal, I am sure the
upstream may change his thought.  If you have some progress indicator,
that can be used to convince getmail upstream.  I or dkg need a solid
fact to restart conversation with the upstream.

Regards,

Osamu

[toc] | [next] | [standalone]


#12007

FromMattia Rizzolo <mattia@debian.org>
Date2019-11-12 17:10 +0100
Message-ID<z1GKd-7AW-1@gated-at.bofh.it>
In reply to#12006

[Multipart message — attachments visible in raw view] — view raw

On Wed, Nov 13, 2019 at 12:37:27AM +0900, Osamu Aoki wrote:
> Upstream is active and prides to keep python 2.5 compatibility code in
> it ... (Not just 2.7).  I (Osamu Aoki <osamu@debian.org>) and dkg even
> made some effort to support both 2 and 3 but the idea was rejected by
> upstream in 2018.  (Then we both lost motivation since upstream will not
> include such code in near future)
>   https://marc.info/?l=getmail&m=151542515929707&w=2
> 
> The upstream is somehow convinced that python2 will be there for some
> time (Year ~2020 and later).
>   https://marc.info/?l=getmail&m=151542154628352&w=2

uh. meh.

I haven't looked at the code, but if you made the effort, how improbable
would it be for you to just keep the patches for py3 support yourself in
the packaging for the time being?

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
More about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

[toc] | [prev] | [next] | [standalone]


#12067

FromOsamu Aoki <osamu@debian.org>
Date2019-11-13 15:20 +0100
Message-ID<z21F2-3VD-39@gated-at.bofh.it>
In reply to#12007
Hi,

On Tue, Nov 12, 2019 at 04:57:17PM +0100, Mattia Rizzolo wrote:
> On Wed, Nov 13, 2019 at 12:37:27AM +0900, Osamu Aoki wrote:
> > Upstream is active and prides to keep python 2.5 compatibility code in
> > it ... (Not just 2.7).  I (Osamu Aoki <osamu@debian.org>) and dkg even
> > made some effort to support both 2 and 3 but the idea was rejected by
> > upstream in 2018.  (Then we both lost motivation since upstream will not
> > include such code in near future)
> >   https://marc.info/?l=getmail&m=151542515929707&w=2
> >
> > The upstream is somehow convinced that python2 will be there for some
> > time (Year ~2020 and later).
> >   https://marc.info/?l=getmail&m=151542154628352&w=2
>
> uh. meh.
>
> I haven't looked at the code, but if you made the effort, how improbable
> would it be for you to just keep the patches for py3 support yourself in
> the packaging for the time being?

Neither of us got to compete patches to be accepted by the upstream or
fully functioning code for all versions upstream wanted to support, if I
recall correctly.

Besides, patches applied were extensive.  Considering security
implication, not accepted by upstream was the killer.  The upstream
updates this package when security concerns are raised.

Anyway, if Debian compiles a transition statistics of python3 migration,
we can point upstream to it.

Do we have stat of number of packages:
 A) Packages using python3
 B) Packages using python2 but python3 version is also available.
 C) Packages using python2 but python3 version is not available and
    it is required by standard package building
 D) Packages using python2 but python3 version is not available and
    it is not required by standard package building,
    but it has high popcon over 1000.

If "C" portion is getting less than 1% and "D" portion is getting 1% of
"A" portion, I guess upstream may change mind.

If we know how Fedora has done, that may help convince upstream.

Regards,

Osamu

[toc] | [prev] | [next] | [standalone]


#12066

FromOndrej Novy <novy@ondrej.org>
Date2019-11-13 09:40 +0100
Message-ID<z1WlX-Eh-5@gated-at.bofh.it>
In reply to#12006

[Multipart message — attachments visible in raw view] — view raw

Hi,

út 12. 11. 2019 v 16:37 odesílatel Osamu Aoki <osamu@debian.org> napsal:

> Upstream is active and prides to keep python 2.5 compatibility code in
> it ... (Not just 2.7).  I (Osamu Aoki <osamu@debian.org>) and dkg even
> made some effort to support both 2 and 3 but the idea was rejected by
> upstream in 2018.


that's odd :/


> I think this qualifies for "py2keep".
>

i don't think so. Imho is better to support Py3 in Debian with our patches.

If Debian and Fedora demonstrate its python3 removal, I am sure the
> upstream may change his thought.  If you have some progress indicator,
> that can be used to convince getmail upstream.  I or dkg need a solid
> fact to restart conversation with the upstream.
>

yes, we have! :)

http://sandrotosi.me/debian/py2removal/py2removal_progress.png

Almost half of work is done in ~ 3 months.

-- 
Best regards
 Ondřej Nový

[toc] | [prev] | [next] | [standalone]


#12068

FromOsamu Aoki <osamu@debian.org>
Date2019-11-13 15:30 +0100
Message-ID<z21OF-3YL-1@gated-at.bofh.it>
In reply to#12066
Hi,

On Wed, Nov 13, 2019 at 09:27:08AM +0100, Ondrej Novy wrote:
> Hi,
>
> út 12. 11. 2019 v 16:37 odesílatel Osamu Aoki <osamu@debian.org> napsal:
>
>     Upstream is active and prides to keep python 2.5 compatibility code in
>     it ... (Not just 2.7).  I (Osamu Aoki <osamu@debian.org>) and dkg even
>     made some effort to support both 2 and 3 but the idea was rejected by
>     upstream in 2018.
>
>
> that's odd :/
>
>
>     I think this qualifies for "py2keep".
>
>
> i don't think so. Imho is better to support Py3 in Debian with our patches.

dkj: Do you?  (Not me)

>     If Debian and Fedora demonstrate its python3 removal, I am sure the
>     upstream may change his thought.  If you have some progress indicator,
>     that can be used to convince getmail upstream.  I or dkg need a solid
>     fact to restart conversation with the upstream.
>
>
> yes, we have! :)
>
> http://sandrotosi.me/debian/py2removal/py2removal_progress.png
>
> Almost half of work is done in ~ 3 months.

This is interesting.  I will inform upstream about this progress.

But how much od current ~1800 packages fall into high popcon and build
dependency category.   Are these all high pop conpackages?

Osamu

[toc] | [prev] | [next] | [standalone]


#12069 — Re: getmail: Python2 removal in sid/bullseye

FromIustin Pop <iustin@debian.org>
Date2019-11-13 15:40 +0100
SubjectRe: getmail: Python2 removal in sid/bullseye
Message-ID<z21Ym-41R-19@gated-at.bofh.it>
In reply to#12006
On 2019-11-13 15:06:54, Thomas Goirand wrote:
> On 11/12/19 4:37 PM, Osamu Aoki wrote:
> > The related binary packages are available in 2 binary names (depending on release)
> >  getmail4 (version=4,5) popcon installed ~2000
> >  getmail  (version=3,5) popcon installed ~1000
> > 
> > https://qa.debian.org/popcon-graph.php?packages=getmail%20getmail4&show_installed=on&want_legend=on&want_ticks=on&date_fmt=%25Y-%25m&beenhere=1
> > 
> > I think this qualifies for "py2keep".
> 
> IMO, this qualifies for RM-RoM. getmail is an alternative to fetchmail,
> which is still available in Debian (and with 4 times the number of
> installed package in popcon...). So I see no reason to keep getmail
> then. Maybe tell this to upstream, and they may think another time.

Uh, no. Functionality-wise, they're quite different. getmail is (AFAIK)
the only tool that works for gmail with ASPs disabled (i.e. with OAUTH).

Heck, I'd be very willing to maintain Py3 patches myself, because I need
this tool.

regards,
iustin

[toc] | [prev] | [next] | [standalone]


#12071

FromOsamu Aoki <osamu@debian.org>
Date2019-11-13 16:30 +0100
Message-ID<z22KK-4xx-13@gated-at.bofh.it>
In reply to#12069
On Wed, Nov 13, 2019 at 03:31:04PM +0100, Iustin Pop wrote:
> On 2019-11-13 15:06:54, Thomas Goirand wrote:
> > On 11/12/19 4:37 PM, Osamu Aoki wrote:
> > > The related binary packages are available in 2 binary names (depending on release)
> > >  getmail4 (version=4,5) popcon installed ~2000
> > >  getmail  (version=3,5) popcon installed ~1000
> > >
> > > https://qa.debian.org/popcon-graph.php?packages=getmail%20getmail4&show_installed=on&want_legend=on&want_ticks=on&date_fmt=%25Y-%25m&beenhere=1
> > >
> > > I think this qualifies for "py2keep".
> >
> > IMO, this qualifies for RM-RoM. getmail is an alternative to fetchmail,
> > which is still available in Debian (and with 4 times the number of
> > installed package in popcon...). So I see no reason to keep getmail
> > then. Maybe tell this to upstream, and they may think another time.
>
> Uh, no. Functionality-wise, they're quite different. getmail is (AFAIK)
> the only tool that works for gmail with ASPs disabled (i.e. with OAUTH).
>
> Heck, I'd be very willing to maintain Py3 patches myself, because I need
> this tool.

Please take over packaging from me then.  You are welcome.

Osamu

[toc] | [prev] | [next] | [standalone]


#12073

FromIustin Pop <iustin@debian.org>
Date2019-11-14 00:00 +0100
Message-ID<z29Me-dP-7@gated-at.bofh.it>
In reply to#12071
On 2019-11-14 00:24:15, Osamu Aoki wrote:
> On Wed, Nov 13, 2019 at 03:31:04PM +0100, Iustin Pop wrote:
> > On 2019-11-13 15:06:54, Thomas Goirand wrote:
> > > On 11/12/19 4:37 PM, Osamu Aoki wrote:
> > > > The related binary packages are available in 2 binary names (depending on release)
> > > >  getmail4 (version=4,5) popcon installed ~2000
> > > >  getmail  (version=3,5) popcon installed ~1000
> > > >
> > > > https://qa.debian.org/popcon-graph.php?packages=getmail%20getmail4&show_installed=on&want_legend=on&want_ticks=on&date_fmt=%25Y-%25m&beenhere=1
> > > >
> > > > I think this qualifies for "py2keep".
> > >
> > > IMO, this qualifies for RM-RoM. getmail is an alternative to fetchmail,
> > > which is still available in Debian (and with 4 times the number of
> > > installed package in popcon...). So I see no reason to keep getmail
> > > then. Maybe tell this to upstream, and they may think another time.
> >
> > Uh, no. Functionality-wise, they're quite different. getmail is (AFAIK)
> > the only tool that works for gmail with ASPs disabled (i.e. with OAUTH).
> >
> > Heck, I'd be very willing to maintain Py3 patches myself, because I need
> > this tool.
> 
> Please take over packaging from me then.  You are welcome.

I would gladly help with co-maintenance, but taking over packaging would
be my least preferred option.

Thanksfully, it seems the upstream is willing to move to Python 3, so I
think situation is pretty good, actually.

thank you!

[toc] | [prev] | [next] | [standalone]


#12321

FromDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Date2020-02-19 22:40 +0100
Message-ID<zBFey-6Wm-11@gated-at.bofh.it>
In reply to#12069

[Multipart message — attachments visible in raw view] — view raw

On Wed 2019-11-13 15:31:04 +0100, Iustin Pop wrote:
> On 2019-11-13 15:06:54, Thomas Goirand wrote:
>> On 11/12/19 4:37 PM, Osamu Aoki wrote:
>> > The related binary packages are available in 2 binary names (depending on release)
>> >  getmail4 (version=4,5) popcon installed ~2000
>> >  getmail  (version=3,5) popcon installed ~1000
>> > 
>> > https://qa.debian.org/popcon-graph.php?packages=getmail%20getmail4&show_installed=on&want_legend=on&want_ticks=on&date_fmt=%25Y-%25m&beenhere=1
>> > 
>> > I think this qualifies for "py2keep".
>> 
>> IMO, this qualifies for RM-RoM. getmail is an alternative to fetchmail,
>> which is still available in Debian (and with 4 times the number of
>> installed package in popcon...). So I see no reason to keep getmail
>> then. Maybe tell this to upstream, and they may think another time.
>
> Uh, no. Functionality-wise, they're quite different. getmail is (AFAIK)
> the only tool that works for gmail with ASPs disabled (i.e. with OAUTH).
>
> Heck, I'd be very willing to maintain Py3 patches myself, because I need
> this tool.

Thanks for the clarification about what you need from this tool.  I
stopped using getmail several months ago, and i'm in the process of
taking my name out of the uploaders list.  Sorry to bail on it, Osamu!
I just don't feel write being named as responsible for it when i no
longer even have python2 on many systems that i care about.

Upstream appears to indicate that getmail for python3 is likely to be a
nearly complete rewrite.

For myself, i've been using the very simple imap-dl (now in mailscripts
0.18, i'm the main author, and Sean Whitton is a very capable
maintainer).  But imap-dl doesn't have the OAUTH mechanism for gmail
built in.  If you wanted to port that mechanism into imap-dl, i'd be
happy to review it, though!

Regards,

      --dkg

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.maint.python


csiph-web