annotate roundup/version_check.py @ 4901:fa268ea457db

Add note about dropping support for Python v2.5 After some discussion on the roundup-devel mailing list it was agreed that support for Python v2.5 should be dropped in the v1.6 release of Roundup. Dropping support for Python v2.5 should allow a number of cleanups to the code base as well a provide and opportunity to start porting Roundup to Python v3.
author John Kristensen <john@jerrykan.com>
date Wed, 25 Jun 2014 13:19:42 +1000
parents 0c2cad65ebba
children 4566360871dc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
449
141aacfdb34f Centralised the python version check code, bumped version to 2.1.1
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
1 #!/usr/bin/env python
2005
fc52d57c6c3e documentation cleanup
Richard Jones <richard@users.sourceforge.net>
parents: 1090
diff changeset
2
4682
0c2cad65ebba version_check.py: Bump required Python version from 2.1.1+ to 2.5+
anatoly techtonik <techtonik@gmail.com>
parents: 4570
diff changeset
3 # Roundup requires Python 2.5+ as mentioned in doc\installation.txt
0c2cad65ebba version_check.py: Bump required Python version from 2.1.1+ to 2.5+
anatoly techtonik <techtonik@gmail.com>
parents: 4570
diff changeset
4 VERSION_NEEDED = (2,5)
449
141aacfdb34f Centralised the python version check code, bumped version to 2.1.1
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
5
141aacfdb34f Centralised the python version check code, bumped version to 2.1.1
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
6 import sys
4682
0c2cad65ebba version_check.py: Bump required Python version from 2.1.1+ to 2.5+
anatoly techtonik <techtonik@gmail.com>
parents: 4570
diff changeset
7 if sys.version_info < VERSION_NEEDED:
449
141aacfdb34f Centralised the python version check code, bumped version to 2.1.1
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
8 print "Content-Type: text/plain\n"
4682
0c2cad65ebba version_check.py: Bump required Python version from 2.1.1+ to 2.5+
anatoly techtonik <techtonik@gmail.com>
parents: 4570
diff changeset
9 print "Roundup requires Python %s.%s or newer." % VERSION_NEEDED
449
141aacfdb34f Centralised the python version check code, bumped version to 2.1.1
Richard Jones <richard@users.sourceforge.net>
parents:
diff changeset
10 sys.exit(0)

Roundup Issue Tracker: http://roundup-tracker.org/