public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Jon Turney <jon.turney@dronecode.org.uk>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Subject: python2 removal
Date: Sun, 15 Jan 2023 12:52:43 +0000	[thread overview]
Message-ID: <07106598-5bc3-055f-5875-abe5aa7baffc@dronecode.org.uk> (raw)


This has come up in discussion a few times, and is now well overdue, I 
think.

Python 2.7 is the last python2 version, which was sunsetted on January 
1, 2020.

1)  I will be making the following hopefully uncontroversial changes to 
cygport in it's next release:

* Make 'inherit python2{,-disutils,-wheel}' an error
* Make 'inherit python-wheel' with PYTHON_WHEEL_VERSIONS containing "2" 
or "2.*" an error.

2) Looking for packages whose names don't start with 'python', but where 
the current version installs something into 
/usr/lib/python2.7/site-packages/ and/or into /usr/bin/ with a shebang 
containing 'python2', the following packages appear to need rebuilding 
for python3:

package             source package     maintainer

alacarte                               ORPHANED (Yaakov Selkowitz)
avahi-ui-tools      avahi              ORPHANED (Yaakov Selkowitz)
buildbot-slave                         Jon Turney [1]
bzr-fastimport      python-fastimport  Ken Brown
bzr                                    Jari Aalto
caribou                                ORPHANED (Yaakov Selkowitz)
cfget                                  Jari Aalto
chm2pdf                                ORPHANED (Yaakov Selkowitz)
codeville                              Jari Aalto
cvs2svn                                ORPHANED (Yaakov Selkowitz)
d-feet                                 ORPHANED (Yaakov Selkowitz)
getmail                                Jari Aalto
gnome-activity-journal                 ORPHANED (Yaakov Selkowitz)
guake                                  ORPHANED (Yaakov Selkowitz)
kf5-kapidox                            ORPHANED (Yaakov Selkowitz)
mozo                                   ORPHANED (Yaakov Selkowitz)
net-snmp-python     net-snmp           David Rothenberger [2]
offlineimap                            Jari Aalto
picard                                 ORPHANED (Dr. Volker Zell)
planet                                 ORPHANED (Yaakov Selkowitz)
rpm-python          rpm                Pavel Fedin
spambayes                              ORPHANED  (Jari Aalto)
tailor                                 Jari Aalto
terminator                             Mike DePaulo
urlgrabber                             Jari Aalto
xml2po              gnome-doc-utils    ORPHANED (Yaakov Selkowitz)
xxdiff                                 ORPHANED (Yaakov Selkowitz)

[1] effectively obsoleted by buildbot-worker, so should just be removed.
[2] also needs rebuilding for perl 5.32

3) There might also still be some other packages lurking which just 
install a script with a shebang containing 'python', and assume that 
python is python2.  I don't know how we could identify those.

4) With that done, one would hope we could just expire all packages as
with names matching:

python27
python27-* (127 of)
python2-*
python-*

But there may be some cases not caught in step 2), where

- the package is not a python module (i.e. source package is not python-*)
- the package shouldn't be removed because it's a dependency of something

So those will need to be identified and inspected to determine what 
should happen to them.

5) Other post-cleanup tasks

e.g. python-beautifulsoup can become a virtual package for python-bs4, 
once that name isn't being used by the python2-only beautifulsoup 3.x.

             reply	other threads:[~2023-01-15 12:52 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-15 12:52 Jon Turney [this message]
2023-01-15 19:31 ` Ken Brown
2023-01-16 12:49   ` Jon Turney
2023-01-16 14:22     ` Ken Brown
2023-01-16 12:49 ` Jon Turney
2023-02-25 16:23   ` Jon Turney
2023-02-25 16:51     ` Adam Dinwoodie
2023-02-26 11:56       ` Jon Turney
2023-04-30 18:25       ` Jon Turney
2023-04-30 20:32         ` Adam Dinwoodie
2023-05-01 17:53           ` Jon Turney
2023-02-25 16:23   ` Jon Turney
     [not found]     ` <003a01d94a86$750f4b70$5f2de250$@samsung.com>
2023-02-27 13:36       ` Jon Turney
2023-02-25 16:23   ` Jon Turney
2023-03-07 17:27   ` Jon Turney
2023-01-17  2:27 ` David Rothenberger
2023-03-14 19:16 ` Jon Turney
2023-03-14 19:17 ` Jon Turney
2023-03-15 12:56   ` Brian Inglis
2023-03-15 16:46     ` marco atzeri
2023-03-16 13:29     ` ITA (was Re: python2 removal) Jon Turney
2023-03-16 15:53       ` ITA xlsx2csv " Brian Inglis
2023-03-16 18:57         ` Jon Turney
2023-03-16 21:12           ` Brian Inglis
2023-03-22  7:36           ` Jari Aalto
2023-03-22 16:23             ` Jon Turney
2023-04-02 15:47   ` python2 removal Jon Turney
2023-04-02 15:55     ` Jon Turney
2023-06-01 16:54       ` Jon Turney
2023-04-02 16:00     ` Jon Turney
2023-04-03  1:08     ` marco atzeri
2023-04-11  6:49       ` Marco Atzeri
2023-06-04 19:17     ` Jon Turney
2023-07-02 14:30       ` Jon Turney
2023-07-07 18:54         ` Marco Atzeri
2023-07-09 16:50           ` Jon Turney
2024-01-18 19:31             ` Jon Turney
2024-01-18 19:40               ` Jon Turney
2024-01-19 18:23                 ` Hamish McIntyre-Bhatty
2024-04-10 19:19                   ` Hamish McIntyre-Bhatty
2024-04-11 12:23                     ` Jon Turney
2023-06-11 18:06     ` Jon Turney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=07106598-5bc3-055f-5875-abe5aa7baffc@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).