Changeset 553 for trunk/module/setup.py


Ignore:
Timestamp:
Nov 20, 2015, 6:16:03 AM (4 years ago)
Author:
cito
Message:

Require at least Python 2.6 for the trunk (5.x)

Support for even older Python versions is maintained in the 4.x branch.
The goal for 5.x is to be a single-source code for both Python 2 and 3,
and this is only possible by dropping support for Python 2.5 and older.
For instance, the new except .. as syntax works only since Python 2.6.
Otherwise we would need to use 2to3 and things would be very ugly.
Note that Python 2.6 is now 7 years old. We may want to drop Python 2.6
as well at some point if it turns out to be a burden.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/setup.py

    r550 r553  
    22# $Id$
    33
    4 """Setup script for PyGreSQL version 4.1
     4"""Setup script for PyGreSQL version 5.0
    55
    66PyGreSQL is an open-source Python module that interfaces to a
     
    2222  (the Windows installer has it as part of the database server feature)
    2323
    24 The supported versions are Python 2.5-3.4 and PostgreSQL 8.3-9.3.
     24The supported versions are Python 2.6-3.5 and PostgreSQL 9.0-9.5.
    2525
    2626Use as follows:
     
    3636"""
    3737
    38 version = '4.1.1'
     38version = '5.0a0'
    3939
    4040
    4141import sys
    4242
    43 if not (2, 5) <= sys.version_info[:2] <= (3, 4):
     43if not (2, 6) <= sys.version_info[:2] <= (3, 5):
    4444    raise Exception("Sorry, PyGreSQL %s"
    4545        " does not support this Python version" % version)
Note: See TracChangeset for help on using the changeset viewer.