[elbe-devel] [PATCH 0/5] Remove Python 2 support

bage at linutronix.de bage at linutronix.de
Fri Aug 28 18:05:32 CEST 2020


From: Bastian Germann <bage at linutronix.de>

Python 2 is end of life and most of it will be removed from Debian with
bullseye.

We should no longer support both Python versions as that imposes a large
testing burden, especially with the unicode string conversion that hit
Elbe several times and produced bugs in the last versions.

The last missing package python3-spyne that is not in buster has arrived
in bullseye now.
A buster build is available on http://debian.linutronix.de/elbe-common.

This series removes the basic Python 2 support.
There are many places left that have compatibility code, some of which is
marked as TODO:py3.

Bastian Germann (5):
  Set Linutronix as Maintainer
  debian: Remove Python 2 Debian packages
  debian: Only install python3 files/dependencies
  python3: Make py3 the only referenced version
  python3: Remove __future__ imports

 .gitignore                                    |   4 -
 README.adoc                                   |   4 +-
 .../memory-profiling-for-elbe-daemon.patch    |   4 +-
 debian/control                                | 142 ++++--------------
 debian/elbe-bootup-check.install              |   2 +-
 debian/elbe-daemon.install                    |  10 +-
 debian/elbe-debianize.install                 |  74 ++++-----
 debian/elbe-soap.install                      |  10 +-
 debian/elbe-updated.install                   |   6 +-
 debian/python-elbe-bin.install                |  19 ---
 debian/python-elbe-bin.lintian-overrides      |   2 -
 debian/python-elbe-bin.postinst               |   5 -
 debian/python-elbe-buildenv.install           |  33 ----
 debian/python-elbe-buildenv.postinst          |   4 -
 debian/python-elbe-common.install             |  37 -----
 debian/python-elbe-control.install            |   5 -
 debian/rules                                  |   2 +-
 elbe                                          |   4 +-
 elbe.spec                                     |  10 +-
 elbepack/aptpkgutils.py                       |   2 +-
 elbepack/aptprogress.py                       |   2 -
 elbepack/changelogxml.py                      |   2 -
 elbepack/commands/add.py                      |   2 -
 elbepack/commands/adjustpkgs.py               |   4 +-
 elbepack/commands/bootup-check.py             |   2 -
 elbepack/commands/buildchroot.py              |   2 -
 elbepack/commands/buildsdk.py                 |   2 -
 elbepack/commands/buildsysroot.py             |   2 -
 elbepack/commands/check_updates.py            |   2 -
 elbepack/commands/chg_archive.py              |   2 -
 elbepack/commands/chroot.py                   |   2 -
 elbepack/commands/control.py                  |   2 -
 elbepack/commands/daemon.py                   |   2 -
 elbepack/commands/db.py                       |   2 -
 elbepack/commands/debianize.py                |   2 -
 elbepack/commands/diff.py                     |   2 -
 elbepack/commands/fetch_initvm_pkgs.py        |   2 -
 elbepack/commands/gen_update.py               |   2 -
 elbepack/commands/genlicence.py               |   2 -
 elbepack/commands/get_archive.py              |   2 -
 elbepack/commands/hdimg.py                    |   2 -
 elbepack/commands/init.py                     |   2 -
 elbepack/commands/initvm.py                   |   2 -
 elbepack/commands/mkcdrom.py                  |   2 -
 elbepack/commands/parselicence.py             |   2 -
 elbepack/commands/pbuilder.py                 |   2 -
 elbepack/commands/pin_versions.py             |   2 -
 elbepack/commands/pkgdiff.py                  |   2 -
 elbepack/commands/preprocess.py               |   2 -
 elbepack/commands/prjrepo.py                  |   2 -
 elbepack/commands/remove_sign.py              |   2 -
 elbepack/commands/setsel.py                   |   2 -
 elbepack/commands/show.py                     |   2 -
 elbepack/commands/sign.py                     |   2 -
 elbepack/commands/validate.py                 |   2 -
 elbepack/commands/xsdtoasciidoc.py            |   2 -
 elbepack/daemons/soap/__init__.py             |   2 -
 elbepack/daemons/soap/esoap.py                |   2 -
 elbepack/db.py                                |   2 -
 elbepack/dbaction.py                          |   2 -
 elbepack/debinstaller.py                      |   2 -
 elbepack/egpg.py                              |   2 -
 elbepack/filesystem.py                        |   2 -
 elbepack/finetuning.py                        |   2 -
 elbepack/hdimg.py                             |   2 -
 elbepack/initvmaction.py                      |   2 -
 elbepack/pbuilderaction.py                    |   2 -
 elbepack/pkgutils.py                          |   2 -
 elbepack/rpcaptcache.py                       |   2 -
 elbepack/soapclient.py                        |   2 -
 elbepack/templates.py                         |   2 -
 elbepack/treeutils.py                         |   2 -
 elbepack/updated.py                           |   2 -
 elbepack/version.py                           |   8 +-
 elbepack/virtapt.py                           |   2 -
 elbepack/xmldefaults.py                       |   2 -
 elbepack/xmlpreprocess.py                     |   2 -
 test/updated.py                               |   4 +-
 78 files changed, 98 insertions(+), 407 deletions(-)
 delete mode 100644 debian/python-elbe-bin.install
 delete mode 100644 debian/python-elbe-bin.lintian-overrides
 delete mode 100644 debian/python-elbe-bin.postinst
 delete mode 100644 debian/python-elbe-buildenv.install
 delete mode 100644 debian/python-elbe-buildenv.postinst
 delete mode 100644 debian/python-elbe-common.install
 delete mode 100644 debian/python-elbe-control.install

-- 
2.28.0



More information about the elbe-devel mailing list