Python 2.2 reached the end of its life on 30 May 2003. It's about time to drop support for Python 2.2.
This site shows the top 360 most-downloaded packages on PyPI (source) showing which have dropped support for Python 2.2.
Packages that are backports (for example, enum34) or known to be deprecated are not included (for example, distribute). If your package is incorrectly listed, please create a ticket.
This is not an official website, just a nice visual way to measure progress. To see the authoritative guide on wheels and other aspects of python packaging, see the Python Packaging User Guide.
Remove the Trove classifier from setup.py.
'Programming Language :: Python :: 2.2'
Remove Python 2.2 from your CI. For example Travis CI's .travis.yml:
python: - 2.2
And for example from Appveyor's appveyor.yml:
C:\Python22 C:\Python22-x64
And tox.ini:
envlist=py22
Remove old Python 2.2-specific code and documentation. Common files to check:
Search your code for stuff like:
if sys.version_info < (2, 3): # Python 2.2 stuff if platform.python_version == "2.2": # Python 2.2 stuff ver = platform.python_version_tuple() if float('{0}.{1}'.format(*ver[:2])) < 2.3: # Python 2.2 stuff try: # Python 2.2 import something except ImportError: # Python 2.3+ import something_else // In C code #if PY_VERSION_HEX < 0x02030000 -#endif
Also search for 2.2
and 22
.
If you test with coverage, look for code which was tested before removing 2.2 from your CI.
Finally, consider dropping support for Python 2.6 and 3.3, which reached EOL on 2013-10-29 and 2017-09-29 respectively.
Fantastic, a problem found is a problem fixed. Please create a ticket!
You can also submit a pull request.
Thanks to Python Wheels and Python 3 Wall of Superpowers for the concept and making their code open source.