Changeset 653


Ignore:
Timestamp:
Nov 27, 2015, 5:40:27 PM (4 years ago)
Author:
cito
Message:

Specify supported Python versions for the 4.x branch

Tests for Python 2.4, 2.5, 2.6., 2.7 are running now, so we can specify these
versions as supported in this branch. The trunk will only support Python >= 2.6.
The test are not compatible with Python 2.3, but the basic functionality still
works in Python 2.3, so old code to support Python < 2.4 has been left in place.

A config file for testing with tox has been added. Unfortunately, tox supports
only Python 2.6 and 2.7. So Python 2.4 and 2.5 need to be tested manually.

Location:
branches/4.x
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/docs/announce.txt

    r516 r653  
    2323 - NetBSD
    2424 - FreeBSD
    25  - openSUSE 12.2
     25 - openSUSE
     26 - Ubuntu
    2627 - Windows 7 with both MinGW and Visual Studio
    27  - PostgreSQL 8.4, 9.0 and 9.2 32 and 64bit
    28  - Python 2.5, 2.6 and 2.7 32 and 64bit
     28 - PostgreSQL 8.4 and 9.3 64bit
     29 - Python 2.4, 2.5, 2.6 and 2.7 32 and 64bit
    2930
    3031| D'Arcy J.M. Cain
  • branches/4.x/docs/changelog.txt

    r638 r653  
    55-----------
    66- Set a better default for the user option "escaping-funcs".
    7 - Greatly improve unit testing.
    87- Force build to compile with no errors.
    98- Fix decimal point handling.
    109- Add option to return boolean values as bool objects.
     10- Add option to return money values as string.
    1111- Fix notification handler (Thanks Patrick TJ McPhee).
     12- Fix a small issue with large objects.
     13- Greatly improve unit testing, tests run with Python 2.4 to 2.7 again.
    1214
    1315Version 4.1.1 (2013-01-08)
  • branches/4.x/docs/install.txt

    r636 r653  
    1212
    1313The current version of PyGreSQL has been tested with Python 2.7 and
    14 PostGreSQL 9.2. Older version should work as well, but you will need
    15 at least Python 2.5 and PostgreSQL 8.3.
     14PostGreSQL 9.3. Older version should work as well, but you will need
     15at least Python 2.4 and PostgreSQL 8.3.
    1616
    1717PyGreSQL will be installed as three modules, a dynamic module called
  • branches/4.x/module/pg.py

    r625 r653  
    3535try:
    3636    frozenset
    37 except NameError:  # Python < 2.4
     37except NameError:  # Python < 2.4, unsupported
    3838    from sets import ImmutableSet as frozenset
    3939try:
    4040    from decimal import Decimal
    4141    set_decimal(Decimal)
    42 except ImportError:  # Python < 2.4
     42except ImportError:  # Python < 2.4, unsupported
    4343    Decimal = float
    4444try:
  • branches/4.x/module/pgdb.py

    r522 r653  
    6767try:
    6868    frozenset
    69 except NameError:  # Python < 2.4
     69except NameError:  # Python < 2.4, unsupported
    7070    from sets import ImmutableSet as frozenset
    7171from datetime import date, time, datetime, timedelta
    7272from time import localtime
    73 try:  # use Decimal if available
     73try:
    7474    from decimal import Decimal
    7575    set_decimal(Decimal)
    76 except ImportError:  # otherwise (Python < 2.4)
     76except ImportError:  # Python < 2.4, unsupported
    7777    Decimal = float  # use float instead of Decimal
    7878try:
  • branches/4.x/module/setup.py

    r640 r653  
    2222  (the Windows installer has it as part of the database server feature)
    2323
    24 The supported versions are Python 2.5-2.7 and PostgreSQL 8.3-9.4.
     24The supported versions are Python 2.4-2.7 and PostgreSQL 8.3-9.4.
    2525
    2626Use as follows:
     
    4141import sys
    4242
    43 if not (2, 3) <= sys.version_info[:2] < (3, 0):
     43if not (2, 4) <= sys.version_info[:2] <= (2, 7):
    4444    raise Exception("Sorry, PyGreSQL %s"
    4545        " does not support this Python version" % version)
     
    186186        "Operating System :: OS Independent",
    187187        "Programming Language :: C",
    188         "Programming Language :: Python",
     188        'Programming Language :: Python',
     189        'Programming Language :: Python :: 2',
     190        'Programming Language :: Python :: 2.4',
     191        'Programming Language :: Python :: 2.5',
     192        'Programming Language :: Python :: 2.6',
     193        'Programming Language :: Python :: 2.7',
    189194        "Programming Language :: SQL",
    190195        "Topic :: Database",
  • branches/4.x/module/tests/test_classic_functions.py

    r647 r653  
    2222import pg  # the module under test
    2323
     24try:
     25    from decimal import Decimal
     26except ImportError:  # Python < 2.4, unsupported
     27    Decimal = None
    2428try:
    2529    from collections import namedtuple
     
    313317    def testGetDecimal(self):
    314318        r = pg.get_decimal()
    315         self.assertIs(r, pg.Decimal)
     319        self.assertIs(r, Decimal)
    316320
    317321    def testSetDecimal(self):
Note: See TracChangeset for help on using the changeset viewer.