Skip to content

Commit 6e4c452

Browse files
committed
Merge pull request pytest-dev#262 from blueyed/update-versions
Update versions
2 parents b9eb210 + dcf6230 commit 6e4c452

File tree

3 files changed

+2558
-751
lines changed

3 files changed

+2558
-751
lines changed

.travis.yml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,44 @@
22
sudo: false
33
language: python
44
python:
5-
- "3.4"
5+
- "3.5"
66
env:
7-
- TESTENV=pypy-master-sqlite_file
8-
- TESTENV=pypy3-1.8-sqlite_file
9-
- TESTENV=python2.6-1.6-sqlite_file
10-
- TESTENV=python2.7-1.3-sqlite_file
11-
- TESTENV=python2.7-1.4-sqlite_file
12-
- TESTENV=python2.7-1.5-sqlite_file
13-
- TESTENV=python2.7-1.6-sqlite_file
14-
- TESTENV=python2.7-1.7-sqlite_file
15-
- TESTENV=python2.7-1.8-sqlite_file
16-
- TESTENV=python2.7-master-mysql_innodb
17-
- TESTENV=python2.7-master-mysql_myisam
18-
- TESTENV=python2.7-master-sqlite_file
19-
- TESTENV=python3.2-1.6-sqlite_file
20-
- TESTENV=python3.3-1.6-sqlite_file
21-
- TESTENV=python3.4-1.5-sqlite_file
22-
- TESTENV=python3.4-1.6-sqlite_file
23-
- TESTENV=python3.4-1.7-sqlite_file
24-
- TESTENV=python3.4-1.8-sqlite_file
25-
- TESTENV=python3.4-master-postgres
26-
- TESTENV=python3.4-master-sqlite
27-
- TESTENV=python3.4-master-sqlite_file
7+
- TESTENV=pypy-2.8.0-master-sqlite_file
8+
- TESTENV=pypy3-2.8.0-1.8-sqlite_file
9+
- TESTENV=python2.6-2.8.0-1.6-sqlite_file
10+
- TESTENV=python2.7-2.8.0-1.3-sqlite_file
11+
- TESTENV=python2.7-2.8.0-1.4-sqlite_file
12+
- TESTENV=python2.7-2.8.0-1.5-sqlite_file
13+
- TESTENV=python2.7-2.8.0-1.6-sqlite_file
14+
- TESTENV=python2.7-2.8.0-1.7-sqlite_file
15+
- TESTENV=python2.7-2.8.0-1.8-sqlite_file
16+
- TESTENV=python2.7-2.8.0-master-mysql_innodb
17+
- TESTENV=python2.7-2.8.0-master-mysql_myisam
18+
- TESTENV=python2.7-2.8.0-master-sqlite_file
19+
- TESTENV=python3.2-2.8.0-1.6-sqlite_file
20+
- TESTENV=python3.3-2.8.0-1.6-sqlite_file
21+
- TESTENV=python3.4-2.8.0-1.5-sqlite_file
22+
- TESTENV=python3.4-2.8.0-1.6-sqlite_file
23+
- TESTENV=python3.4-2.8.0-1.7-sqlite_file
24+
- TESTENV=python3.4-2.8.0-1.8-sqlite_file
25+
- TESTENV=python3.4-2.8.0-master-sqlite_file
26+
- TESTENV=python3.5-2.7.3-master-sqlite_file
27+
- TESTENV=python3.5-2.8.0-master-postgres
28+
- TESTENV=python3.5-2.8.0-master-sqlite
29+
- TESTENV=python3.5-2.8.0-master-sqlite_file
2830
- TESTENV=checkqa-python2.7
2931
- TESTENV=checkqa-python3.4
3032
matrix:
3133
allow_failures:
32-
- env: TESTENV=pypy-master-sqlite_file
33-
- env: TESTENV=python2.7-master-mysql_innodb
34-
- env: TESTENV=python2.7-master-mysql_myisam
35-
- env: TESTENV=python2.7-master-sqlite_file
36-
- env: TESTENV=python3.4-master-postgres
37-
- env: TESTENV=python3.4-master-sqlite
38-
- env: TESTENV=python3.4-master-sqlite_file
34+
- env: TESTENV=pypy-2.8.0-master-sqlite_file
35+
- env: TESTENV=python2.7-2.8.0-master-mysql_innodb
36+
- env: TESTENV=python2.7-2.8.0-master-mysql_myisam
37+
- env: TESTENV=python2.7-2.8.0-master-sqlite_file
38+
- env: TESTENV=python3.4-2.8.0-master-sqlite_file
39+
- env: TESTENV=python3.5-2.7.3-master-sqlite_file
40+
- env: TESTENV=python3.5-2.8.0-master-postgres
41+
- env: TESTENV=python3.5-2.8.0-master-sqlite
42+
- env: TESTENV=python3.5-2.8.0-master-sqlite_file
3943
install:
4044
# Create pip wrapper script, using travis_retry (a function) and
4145
# inject it into tox.ini.

generate_configurations.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def is_pypy(self):
2323
return self.python_version.startswith('pypy')
2424

2525
# Python to run tox.
26-
RUN_PYTHON = '3.4'
26+
RUN_PYTHON = '3.5'
2727
PYTHON_MAIN_VERSIONS = ['python2.7', 'python3.4']
2828
PYTHON_VERSIONS = ['python2.6', 'python2.7', 'python3.2', 'python3.3',
29-
'python3.4', 'pypy', 'pypy3']
30-
PYTEST_VERSIONS = ['2.7.2']
29+
'python3.4', 'python3.5', 'pypy', 'pypy3']
30+
PYTEST_VERSIONS = ['2.7.3', '2.8.0']
3131
DJANGO_VERSIONS = ['1.3', '1.4', '1.5', '1.6', '1.7', '1.8', 'master']
3232
SETTINGS = ['sqlite', 'sqlite_file', 'mysql_myisam', 'mysql_innodb',
3333
'postgres']
@@ -78,7 +78,11 @@ def is_valid_env(env):
7878
env.django_version in ('1.7', '1.8', '1.9', 'master')):
7979
return False
8080

81-
# pypy3 is compatible with Python 3.2, but Django 1.9 only supports Python 2.7, 3.4, 3.5
81+
# Python 3.5 is only supported by Django 1.8+
82+
if env.python_version == 'python3.5':
83+
return env.django_version in ('1.8', '1.9', 'master')
84+
85+
# pypy3 is compatible with Python 3.2, but Django 1.9 only supports Python 2.7, 3.4+.
8286
if env.python_version == 'pypy3' and env.django_version in ('1.9', 'master'):
8387
return False
8488

@@ -87,7 +91,7 @@ def is_valid_env(env):
8791

8892
def requirements(env):
8993
yield 'pytest==%s' % (env.pytest_version)
90-
yield 'pytest-xdist==1.12'
94+
yield 'pytest-xdist==1.13.1'
9195
yield DJANGO_REQUIREMENTS[env.django_version]
9296
yield 'django-configurations==0.8'
9397

@@ -99,7 +103,7 @@ def requirements(env):
99103
if env.django_version == '1.3':
100104
yield 'psycopg2==2.4.1'
101105
else:
102-
yield 'psycopg2==2.5.2'
106+
yield 'psycopg2==2.6.1'
103107

104108
if env.settings in ('mysql_myisam', 'mysql_innodb'):
105109
yield 'mysql-python==1.2.5'
@@ -165,10 +169,14 @@ def generate_default_envs(envs):
165169

166170
def find_and_add(variations, env_getter):
167171
for variation in variations:
168-
for env in reversed(envs):
169-
if env_getter(env) == variation:
170-
result.add(env)
172+
for existing in result:
173+
if env_getter(existing) == variation:
171174
break
175+
else:
176+
for env in reversed(envs):
177+
if env_getter(env) == variation:
178+
result.add(env)
179+
break
172180

173181
# Add all Django versions for each main python version (2.x and 3.x).
174182
find_and_add(itertools.product(PYTHON_MAIN_VERSIONS, DJANGO_VERSIONS),

0 commit comments

Comments
 (0)