GNU bug report logs - #70722
[PATCH] ; Migrate to python3 for (package-test-update-archives-async)

Previous Next

Package: emacs;

Reported by: Lin Sun <sunlin7.mail <at> gmail.com>

Date: Thu, 2 May 2024 18:13:01 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70722 in the body.
You can then email your comments to 70722 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#70722; Package emacs. (Thu, 02 May 2024 18:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lin Sun <sunlin7.mail <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 May 2024 18:13:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun <sunlin7.mail <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] ; Migrate to python3 for (package-test-update-archives-async)
Date: Thu, 2 May 2024 18:11:04 +0000
[Message part 1 (text/plain, inline)]
Hi,
The test case "package-test-update-archives-async" still tries to
search "python2" for testing, while python2 was at the end of its life
years ago.
So move the test case from python2 to python3.
Please help review the patch. Thanks
[0001-Migrate-to-python3-for-package-test-update-archives-.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70722; Package emacs. (Thu, 02 May 2024 18:56:01 GMT) Full text and rfc822 format available.

Message #8 received at 70722 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lin Sun <sunlin7.mail <at> gmail.com>
Cc: 70722 <at> debbugs.gnu.org
Subject: Re: bug#70722: [PATCH] ;
 Migrate to python3 for (package-test-update-archives-async)
Date: Thu, 02 May 2024 21:54:57 +0300
> From: Lin Sun <sunlin7.mail <at> gmail.com>
> Date: Thu, 2 May 2024 18:11:04 +0000
> 
> The test case "package-test-update-archives-async" still tries to
> search "python2" for testing, while python2 was at the end of its life
> years ago.
> So move the test case from python2 to python3.

I'd prefer to make the test support both Python 2.x and Python 3.x.
The fact that python.org end-of-life'd Python 2 doesn't mean we have
to jump to attention and follow suit.  Old systems might still have
Python 2 installed, and there's no need to drop them.

I do agree that we should try looking for Python 3 first, and only
afterwards for Python 2.

Also, I think the test should start by looking for just "python",
before the versioned variants.

E.g., on my system (executable-find "python3") returns nil, although I
have Python 3.x installed -- but it's installed under the name
"python".

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70722; Package emacs. (Mon, 06 May 2024 00:29:01 GMT) Full text and rfc822 format available.

Message #11 received at 70722 <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun <sunlin7.mail <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 70722 <at> debbugs.gnu.org
Subject: Re: bug#70722: [PATCH] ;
 Migrate to python3 for (package-test-update-archives-async)
Date: Mon, 6 May 2024 00:28:07 +0000
[Message part 1 (text/plain, inline)]
On Thu, May 2, 2024 at 6:55 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > From: Lin Sun <sunlin7.mail <at> gmail.com>
> > Date: Thu, 2 May 2024 18:11:04 +0000
> >
> > The test case "package-test-update-archives-async" still tries to
> > search "python2" for testing, while python2 was at the end of its life
> > years ago.
> > So move the test case from python2 to python3.
>
> I'd prefer to make the test support both Python 2.x and Python 3.x.
> The fact that python.org end-of-life'd Python 2 doesn't mean we have
> to jump to attention and follow suit.  Old systems might still have
> Python 2 installed, and there's no need to drop them.
>
> I do agree that we should try looking for Python 3 first, and only
> afterwards for Python 2.
>
> Also, I think the test should start by looking for just "python",
> before the versioned variants.
>
> E.g., on my system (executable-find "python3") returns nil, although I
> have Python 3.x installed -- but it's installed under the name
> "python".
Thanks for the comment, and it's true that python2 will still exist
for many years.
And I had changed the test case to adapt python/python3/python2 automatically.
Please help review the new patch. Thanks.
[0001-Support-python3-for-package-test-update-archives-asy.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70722; Package emacs. (Thu, 09 May 2024 08:35:01 GMT) Full text and rfc822 format available.

Message #14 received at 70722 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lin Sun <sunlin7.mail <at> gmail.com>, kobarity <kobarity <at> gmail.com>
Cc: 70722 <at> debbugs.gnu.org
Subject: Re: bug#70722: [PATCH] ;
 Migrate to python3 for (package-test-update-archives-async)
Date: Thu, 09 May 2024 11:33:08 +0300
> From: Lin Sun <sunlin7.mail <at> gmail.com>
> Date: Mon, 6 May 2024 00:28:07 +0000
> Cc: 70722 <at> debbugs.gnu.org
> 
> On Thu, May 2, 2024 at 6:55 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> >
> > > From: Lin Sun <sunlin7.mail <at> gmail.com>
> > > Date: Thu, 2 May 2024 18:11:04 +0000
> > >
> > > The test case "package-test-update-archives-async" still tries to
> > > search "python2" for testing, while python2 was at the end of its life
> > > years ago.
> > > So move the test case from python2 to python3.
> >
> > I'd prefer to make the test support both Python 2.x and Python 3.x.
> > The fact that python.org end-of-life'd Python 2 doesn't mean we have
> > to jump to attention and follow suit.  Old systems might still have
> > Python 2 installed, and there's no need to drop them.
> >
> > I do agree that we should try looking for Python 3 first, and only
> > afterwards for Python 2.
> >
> > Also, I think the test should start by looking for just "python",
> > before the versioned variants.
> >
> > E.g., on my system (executable-find "python3") returns nil, although I
> > have Python 3.x installed -- but it's installed under the name
> > "python".
> Thanks for the comment, and it's true that python2 will still exist
> for many years.
> And I had changed the test case to adapt python/python3/python2 automatically.
> Please help review the new patch. Thanks.

Thanks.

kobarity, any comments, or should I install this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70722; Package emacs. (Thu, 09 May 2024 16:01:02 GMT) Full text and rfc822 format available.

Message #17 received at 70722 <at> debbugs.gnu.org (full text, mbox):

From: kobarity <kobarity <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Lin Sun <sunlin7.mail <at> gmail.com>
Cc: 70722 <at> debbugs.gnu.org
Subject: Re: bug#70722: [PATCH] ;
 Migrate to python3 for (package-test-update-archives-async)
Date: Fri, 10 May 2024 01:00:13 +0900
[Message part 1 (text/plain, inline)]
Eli Zaretskii wrote:
> 
> > From: Lin Sun <sunlin7.mail <at> gmail.com>
> > Date: Mon, 6 May 2024 00:28:07 +0000
> > Cc: 70722 <at> debbugs.gnu.org
> > 
> > On Thu, May 2, 2024 at 6:55 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> > >
> > > > From: Lin Sun <sunlin7.mail <at> gmail.com>
> > > > Date: Thu, 2 May 2024 18:11:04 +0000
> > > >
> > > > The test case "package-test-update-archives-async" still tries to
> > > > search "python2" for testing, while python2 was at the end of its life
> > > > years ago.
> > > > So move the test case from python2 to python3.
> > >
> > > I'd prefer to make the test support both Python 2.x and Python 3.x.
> > > The fact that python.org end-of-life'd Python 2 doesn't mean we have
> > > to jump to attention and follow suit.  Old systems might still have
> > > Python 2 installed, and there's no need to drop them.
> > >
> > > I do agree that we should try looking for Python 3 first, and only
> > > afterwards for Python 2.
> > >
> > > Also, I think the test should start by looking for just "python",
> > > before the versioned variants.
> > >
> > > E.g., on my system (executable-find "python3") returns nil, although I
> > > have Python 3.x installed -- but it's installed under the name
> > > "python".
> > Thanks for the comment, and it's true that python2 will still exist
> > for many years.
> > And I had changed the test case to adapt python/python3/python2 automatically.
> > Please help review the new patch. Thanks.
> 
> Thanks.
> 
> kobarity, any comments, or should I install this?

I agree with the policy to support both Python 2/3.
How about a patch like the one attached?
[0001-Support-Python-3-in-package-test-update-archives-asy.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#70722; Package emacs. (Thu, 09 May 2024 16:20:02 GMT) Full text and rfc822 format available.

Message #20 received at 70722 <at> debbugs.gnu.org (full text, mbox):

From: Lin Sun <sunlin7.mail <at> gmail.com>
To: kobarity <kobarity <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 70722 <at> debbugs.gnu.org
Subject: Re: bug#70722: [PATCH] ;
 Migrate to python3 for (package-test-update-archives-async)
Date: Thu, 9 May 2024 16:19:04 +0000
On Thu, May 9, 2024 at 4:00 PM kobarity <kobarity <at> gmail.com> wrote:
>
>
> Eli Zaretskii wrote:
> >
> > > From: Lin Sun <sunlin7.mail <at> gmail.com>
> > > Date: Mon, 6 May 2024 00:28:07 +0000
> > > Cc: 70722 <at> debbugs.gnu.org
> > >
> > > On Thu, May 2, 2024 at 6:55 PM Eli Zaretskii <eliz <at> gnu.org> wrote:
> > > >
> > > > > From: Lin Sun <sunlin7.mail <at> gmail.com>
> > > > > Date: Thu, 2 May 2024 18:11:04 +0000
> > > > >
> > > > > The test case "package-test-update-archives-async" still tries to
> > > > > search "python2" for testing, while python2 was at the end of its life
> > > > > years ago.
> > > > > So move the test case from python2 to python3.
> > > >
> > > > I'd prefer to make the test support both Python 2.x and Python 3.x.
> > > > The fact that python.org end-of-life'd Python 2 doesn't mean we have
> > > > to jump to attention and follow suit.  Old systems might still have
> > > > Python 2 installed, and there's no need to drop them.
> > > >
> > > > I do agree that we should try looking for Python 3 first, and only
> > > > afterwards for Python 2.
> > > >
> > > > Also, I think the test should start by looking for just "python",
> > > > before the versioned variants.
> > > >
> > > > E.g., on my system (executable-find "python3") returns nil, although I
> > > > have Python 3.x installed -- but it's installed under the name
> > > > "python".
> > > Thanks for the comment, and it's true that python2 will still exist
> > > for many years.
> > > And I had changed the test case to adapt python/python3/python2 automatically.
> > > Please help review the new patch. Thanks.
> >
> > Thanks.
> >
> > kobarity, any comments, or should I install this?
>
> I agree with the policy to support both Python 2/3.
> How about a patch like the one attached?

Hi Kobarity,  your patch is a better one!  :thumbsup:




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 11 May 2024 10:09:01 GMT) Full text and rfc822 format available.

Notification sent to Lin Sun <sunlin7.mail <at> gmail.com>:
bug acknowledged by developer. (Sat, 11 May 2024 10:09:02 GMT) Full text and rfc822 format available.

Message #25 received at 70722-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: kobarity <kobarity <at> gmail.com>
Cc: sunlin7.mail <at> gmail.com, 70722-done <at> debbugs.gnu.org
Subject: Re: bug#70722: [PATCH] ;
 Migrate to python3 for (package-test-update-archives-async)
Date: Sat, 11 May 2024 13:07:58 +0300
> Date: Fri, 10 May 2024 01:00:13 +0900
> From: kobarity <kobarity <at> gmail.com>
> Cc: 70722 <at> debbugs.gnu.org
> 
> > kobarity, any comments, or should I install this?
> 
> I agree with the policy to support both Python 2/3.
> How about a patch like the one attached?

Thanks, installed on the master branch, and closing the bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 08 Jun 2024 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.