Python 2 / PyPy removal help page

Announcement: https://lists.debian.org/debian-python/2019/07/msg00080.html

Transition: https://release.debian.org/transitions/html/python2-rm.html

Fedora: https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3

Python 2 Countdown: https://pythonclock.org/

Check list

Quick list of things to do while removing Python / ?PyPy binary package:

Suggested commands for also finding autopkgtests

To search for all runtime Depends/Recommends, and all mentions in the Sources index (Build-Depends*, Testsuite-Triggers, and the package itself):

Where $module is *binary* package name.

grep-dctrl -w -F Depends,Recommends -s Source "python-$module" 
/var/lib/apt/lists/*_debian_dists_{unstable,sid}_main_binary-amd64_Packages 
grep-dctrl -w -s Package "python-$module" 
/var/lib/apt/lists/*_debian_dists_{unstable,sid}_main_source_Sources

Outputs only this package's source name => ready to be removed Outputs other source package(s) => not ready yet Outputs nothing => package doesn't exist (either it's already been removed, or you mis-spelt it)

apt-cache rdepends python-$module can slow and does not find autopkgtest depends.

(Suggested by Rebecca Palmer on the debian-python mailing list)

usertags (debian-python@lists.debian.org)

Every package should be tagged with:

Add more tags for better classifications:

FAQ

My package is affected only because it uses python-sphinx to generate documentation, what should I do?

just replace it with python3-sphinx