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


Groups > linux.debian.maint.python > #12017

Bug#936604: FYI: Python 3 migration of distributuion

Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Osamu Aoki <osamu@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#936604: FYI: Python 3 migration of distributuion
Date Sun, 17 Nov 2019 06:40:01 +0100
Message-ID <z3lih-3nK-1@gated-at.bofh.it> (permalink)
References <z22KJ-4xx-1@gated-at.bofh.it> <z24My-5I3-9@gated-at.bofh.it> <z1GqR-7uf-5@gated-at.bofh.it> <z24My-5I3-9@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sun Nov 17 05:33:09 2019
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.2
Reply-To Osamu Aoki <osamu@debian.org>, 936604@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
X-Debian-Pr-Message followup 936604
X-Debian-Pr-Package src:getmail
X-Debian-Pr-Keywords bullseye sid
X-Debian-Pr-Source getmail
X-Spam-Bayes score:0.0000 Tokens: new, 8; hammy, 150; neutral, 140; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--H*u:1.10.1, 0.000-+--H*UA:1.10.1, 0.000-+--H*u:2018-07-13, 0.000-+--H*UA:2018-07-13
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.10.1 (2018-07-13)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1569498
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 48
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc Iustin Pop <iustin@debian.org>, 936604@bugs.debian.org, debian-python <debian-python@lists.debian.org>
X-Original-Date Sun, 17 Nov 2019 14:28:44 +0900
X-Original-Message-ID <20191117052844.GA3549@goofy.osamu.debian.net>
X-Original-References <20191113152107.GA3944@goofy.osamu.debian.net> <20191113171143.GA10850@pyropus.ca> <E1i3bBC-0002u6-QH@paradis.debian.org> <20191113171143.GA10850@pyropus.ca>
Xref csiph.com linux.debian.bugs.dist:983581 linux.debian.maint.python:12017

Cross-posted to 2 groups.

Show key headers only | View raw


Hi,

On Wed, Nov 13, 2019 at 11:11:43AM -0600, Charles Cazabon wrote:
> Osamu Aoki <osamu@debian.org> wrote:
> >
> > Currently, getmail is a candidate for removal from the upcoming Debian
> > release if it is not updated to support python 3 by someone (not
> > necessary by upstream).
>
> Thanks for the update, Osamu.  I have actually been playing with a prototype
> refactoring of getmail to not just support but require a recent Python 3.x
> version.  Such a project would give me the opportunity to remove a lot of
> historical cruft and backwards-compatibility code that getmail has accumulated
> over 20+ years.

That's great.  (I thought you rejected idea to move to 3.0.)

I tried to do it around getmail 5.5 days.  (I didn't finish it)

> Unfortunately, it's difficult to find the hours to devote to this task.  I
> don't know when, or even if, I could have a beta release ready.
>
> > If you convert python 2 code for 2.7 style, then we can support both
> > python 2 and 3.
>
> I'm not very interested in doing this, as it means not using a lot of 3.x
> features, or not using them in the most Pythonic way.  My thought was that
> this project would target at least Python 3.7; anyone who didn't want to run
> 3.7 could still run "legacy" getmail under Python 2.7.

I understand.  When I tried to convert this to Python3, the first thing
I did was clean out all backward compatibility codes, too.  It is too
much work to keep them.

Also if it is Python3 only, we don't need to add things like:

from __future__ import division
 from future import standard_library

If you have a public git repository, maybe some Debian developer may
help you.  If you want, I can set up one at salsa.debian.org (or
github.com) where ever you are comfortable.

At least, if we have a place to share work in progress, we don't
duplicate efforts.


Osamu

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#936604: FYI: Python 3 migration of distributuion Osamu Aoki <osamu@debian.org> - 2019-11-17 06:40 +0100
  Bug#936604: FYI: Python 3 migration of distributuion Osamu Aoki <osamu@debian.org> - 2019-11-19 14:50 +0100
    Re: FYI: Python 3 migration of distributuion Michael Kesper <mkesper@schokokeks.org> - 2019-11-19 15:00 +0100

csiph-web