Skip to content

Commit bd87571

Browse files
committed
version_check.py: Bump required Python version from 2.1.1+ to 2.5+
1 parent 5e23bc1 commit bd87571

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Fixed:
5151
- Fix installation documentation (section Prerequisites) to require at
5252
least python 2.5, thanks to John P. Rouillard for discovering this.
5353
(committed by Ralf Schlatterbeck)
54+
- Fix version_check.py to require at least python 2.5 (anatoly techtonik)
5455
- Fixing the download button re-activating the cheeseshop plugin in the
5556
sphinx config. Thanks to Richard for the hint. (Bernhard Reiter)
5657
- issue2550783 devel template's schema.py permissions referenced the

roundup/version_check.py

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
11
#!/usr/bin/env python
2-
#
3-
# Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
4-
# This module is free software, and you may redistribute it and/or modify
5-
# under the same terms as Python, so long as this copyright message and
6-
# disclaimer are retained in their original form.
7-
#
8-
# IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR
9-
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING
10-
# OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE
11-
# POSSIBILITY OF SUCH DAMAGE.
12-
#
13-
# BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
14-
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15-
# FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16-
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17-
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
182

19-
"""Enforces the minimum Python version that Roundup requires.
20-
"""
21-
__docformat__ = 'restructuredtext'
3+
# Roundup requires Python 2.5+ as mentioned in doc\installation.txt
4+
VERSION_NEEDED = (2,5)
225

236
import sys
24-
if not hasattr(sys, 'version_info') or sys.version_info[:3] < (2,1,1):
7+
if sys.version_info < VERSION_NEEDED:
258
print "Content-Type: text/plain\n"
26-
print "Roundup requires Python 2.1.1 or newer."
9+
print "Roundup requires Python %s.%s or newer." % VERSION_NEEDED
2710
sys.exit(0)
28-
29-
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)