Drop Python 2.6 support #344

jodal opened this Issue Mar 18, 2013 · 2 comments


None yet
2 participants

jodal commented Mar 18, 2013

Most distros we care about (Ubuntu, Arch, etc) have had Python 2.7 as the default Python 2.x implementation for a long time. We also care about Debian, and a lot of the users running Mopidy on Debian use Debian stable. The current Debian stable version, squeeze, has Python 2.6 as default. The next Debian stable version, wheezy, has Python 2.7 as default. The trend of the RC bug count concerning wheezy (see http://bugs.debian.org/release-critical/) indicates that wheezy may become the new Debian stable in 1-3 months time. (Famous last words, I know.)

I propose that as soon as Debian wheezy is released, we drop support for Python 2.6 and require Python 2.7. This will have the following benefits:

  • Reduce the number of versions to support, so that we can spend more time on Python 3 support instead.
  • Python 2.7 is closer to Python 3, easing the migration path.
  • Remove need for bytestring kwargs dict hacks introduced to fix #302.
  • Gives us access to argparse, so we can replace deprecated optparse.
  • Remove need for unittest2 development dependency and from tests import unittest hack, as unittest2 is available as unittest in Python 2.7.

Feel free to add further benefits or drawbacks as comments. Please shout out if you think we should continue to support Python 2.6 after Debian stable gets Python 2.7.

jodal was assigned Apr 29, 2013


adamcik commented Apr 29, 2013

Anything more to do for this, or can we close it?


jodal commented Apr 29, 2013

Since we have #437 we can close it :-)

jodal closed this Apr 29, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment