Skip to content

Commit e43fc52

Browse files
committed
Drop Django 1.3 support
1 parent 1d0c6e0 commit e43fc52

File tree

4 files changed

+330
-711
lines changed

4 files changed

+330
-711
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ env:
77
- TESTENV=pypy-2.8.0-master-sqlite_file
88
- TESTENV=pypy3-2.8.0-1.8-sqlite_file
99
- TESTENV=python2.6-2.8.0-1.6-sqlite_file
10-
- TESTENV=python2.7-2.8.0-1.3-sqlite_file
1110
- TESTENV=python2.7-2.8.0-1.4-sqlite_file
1211
- TESTENV=python2.7-2.8.0-1.5-sqlite_file
1312
- TESTENV=python2.7-2.8.0-1.6-sqlite_file

docs/changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
NEXT
5+
-----
6+
7+
Compatibility
8+
^^^^^^^^^^^^^
9+
10+
* Drop support for Django 1.3. While pytest-django supports a wide range of
11+
Django versions, extended for Django 1.3 was dropped in february 2013.
12+
413
2.8.0
514
-----
615

generate_configurations.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@ def is_pypy(self):
2828
PYTHON_VERSIONS = ['python2.6', 'python2.7', 'python3.2', 'python3.3',
2929
'python3.4', 'python3.5', 'pypy', 'pypy3']
3030
PYTEST_VERSIONS = ['2.7.3', '2.8.0']
31-
DJANGO_VERSIONS = ['1.3', '1.4', '1.5', '1.6', '1.7', '1.8', '1.9', 'master']
31+
DJANGO_VERSIONS = ['1.4', '1.5', '1.6', '1.7', '1.8', '1.9', 'master']
3232
SETTINGS = ['sqlite', 'sqlite_file', 'mysql_myisam', 'mysql_innodb',
3333
'postgres']
3434
DJANGO_REQUIREMENTS = {
35-
'1.3': 'Django>=1.3,<1.4',
3635
'1.4': 'Django>=1.4,<1.5',
3736
'1.5': 'Django>=1.5,<1.6',
3837
'1.6': 'Django>=1.6,<1.7',
@@ -63,7 +62,7 @@ def is_valid_env(env):
6362

6463
if env.is_py3():
6564
# Django <1.5 does not support Python 3
66-
if env.django_version in ('1.3', '1.4'):
65+
if env.django_version == '1.4':
6766
return False
6867

6968
# MySQL on Python 3 is not supported by Django
@@ -100,11 +99,7 @@ def requirements(env):
10099
yield 'south==1.0.2'
101100

102101
if env.settings == 'postgres':
103-
# Django 1.3 does not work with recent psycopg2 versions
104-
if env.django_version == '1.3':
105-
yield 'psycopg2==2.4.1'
106-
else:
107-
yield 'psycopg2==2.6.1'
102+
yield 'psycopg2==2.6.1'
108103

109104
if env.settings in ('mysql_myisam', 'mysql_innodb'):
110105
yield 'mysql-python==1.2.5'

0 commit comments

Comments
 (0)