Skip to content

Instantly share code, notes, and snippets.

@perrygeo
Created April 18, 2012 02:14
Show Gist options
  • Save perrygeo/2410616 to your computer and use it in GitHub Desktop.
Save perrygeo/2410616 to your computer and use it in GitHub Desktop.
Find lowest version of python required by codebase
# See http://stackoverflow.com/questions/804538/tool-to-determine-what-lowest-version-of-python-required
# https://github.com/ghewgill/pyqver
wget https://raw.github.com/ghewgill/pyqver/master/pyqver2.py
find /path/to/project/ -name "*.py" | xargs python pyqver2.py | sort > versions.txt
tail versions.txt
# last line will show you the minimum version required
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment