Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Check which of your dependencies already support python 3.
Python Perl Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
tests
.gitignore
.travis.yml
CHANGELOG
LICENCE
MANIFEST.in
README.rst
requirements.txt
runtests.sh
setup.py
tox.ini

README.rst

Py3support

Check which of your dependencies already support python 3.

Usage

Example:

$ py3support requirements.txt

Python 3 support level: 50% (2/4)

Python 3
========
  requests==1.0.4
  docutils==0.10

Python 2
========
  Flask==0.9

Unknown
=======
  PIL==1.1.6

How it works

The only easy way to tell if package supports python 3 is to trust author's classifiers. This tool hits PyPI index to check what python versions do your dependencies support. NOTE: We do not need to inspect dependencies of packages in requirements.txt, because we rely on classifiers only.

Caveats

Some packages might support python 3, but do not have required metadata, some packages might state py3 support, but it's not there yet (gunicorn). After all, a lot of package authors don't provide python version classifiers at all.

Todo

  • Check python 3 compatibility for latest version in PyPI
  • If not requirements.txt exists make use of pip freeze
  • py3support check Flask==0.9
  • Handle development versions -e
  • Add progressbar
  • Search for python 3 forks at github
  • Handle package names with wrong CaSe (?)
Something went wrong with that request. Please try again.