changeset 4682:0c2cad65ebba

version_check.py: Bump required Python version from 2.1.1+ to 2.5+
author anatoly techtonik <techtonik@gmail.com>
date Wed, 28 Nov 2012 00:12:23 +0300
parents 6c74a8bff423
children 2f66d44616ad
files CHANGES.txt roundup/version_check.py
diffstat 2 files changed, 5 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Tue Nov 27 23:51:54 2012 +0300
+++ b/CHANGES.txt	Wed Nov 28 00:12:23 2012 +0300
@@ -51,6 +51,7 @@
 - Fix installation documentation (section Prerequisites) to require at
   least python 2.5, thanks to John P. Rouillard for discovering this.
   (committed by Ralf Schlatterbeck)
+- Fix version_check.py to require at least python 2.5 (anatoly techtonik)
 - Fixing the download button re-activating the cheeseshop plugin in the 
   sphinx config. Thanks to Richard for the hint. (Bernhard Reiter)
 - issue2550783 devel template's schema.py permissions referenced the
--- a/roundup/version_check.py	Tue Nov 27 23:51:54 2012 +0300
+++ b/roundup/version_check.py	Wed Nov 28 00:12:23 2012 +0300
@@ -1,29 +1,10 @@
 #!/usr/bin/env python
-#
-# Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
-# This module is free software, and you may redistribute it and/or modify
-# under the same terms as Python, so long as this copyright message and
-# disclaimer are retained in their original form.
-#
-# IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
-# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
-# OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-# BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
-# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE.  THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
-# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
-# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 
-"""Enforces the minimum Python version that Roundup requires.
-"""
-__docformat__ = 'restructuredtext'
+# Roundup requires Python 2.5+ as mentioned in doc\installation.txt
+VERSION_NEEDED = (2,5)
 
 import sys
-if not hasattr(sys, 'version_info') or sys.version_info[:3] < (2,1,1):
+if sys.version_info < VERSION_NEEDED:
     print "Content-Type: text/plain\n"
-    print "Roundup requires Python 2.1.1 or newer."
+    print "Roundup requires Python %s.%s or newer." % VERSION_NEEDED
     sys.exit(0)
-
-# vim: set filetype=python ts=4 sw=4 et si

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