Skip to content

Commit c45d4c8

Browse files
committed
Merge branch '1.5-support' of git://github.com/alej0varas/mock-django into alej0varas-1.5-support
Conflicts: .gitignore
2 parents 1036ab1 + eb59b6c commit c45d4c8

File tree

6 files changed

+69
-3
lines changed

6 files changed

+69
-3
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*.pyc
22
*.egg
33
*.egg-info/
4+
*~
45
/dist
56
/build
6-
*~
7+
.tox

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ python:
66
env:
77
- DJANGO=1.2.7
88
- DJANGO=1.3.1
9+
- DJANGO=1.4.5
10+
- DJANGO=1.5.1
911
install:
1012
- sudo apt-get install libevent-dev
1113
- sudo pip install Django==$DJANGO --use-mirrors

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Testing
2929
:alt: Build Status
3030
:target: http://travis-ci.org/dcramer/mock-django
3131

32-
``python setup.py test``
32+
``tox``

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
url='http://github.com/dcramer/mock-django',
2020
packages=find_packages(),
2121
install_requires=[
22-
'Django>=1.2,<1.5',
22+
'Django>=1.2',
2323
'mock',
2424
],
2525
tests_require=[

tests/requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nose
2+
unittest2

tox.ini

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
envlist = py27-1.5,py26-1.5,py27-1.4,py26-1.4,py27-1.3,py26-1.3,py27-1.2,py26-1.2
8+
9+
[testenv]
10+
commands = {envpython} runtests.py
11+
deps =
12+
nose
13+
unittest2
14+
15+
[testenv:py27-1.5]
16+
basepython = python2.7
17+
deps =
18+
-r{toxinidir}/tests/requirements.txt
19+
django==1.5
20+
21+
[testenv:py26-1.5]
22+
basepython = python2.6
23+
deps =
24+
-r{toxinidir}/tests/requirements.txt
25+
django==1.5
26+
27+
[testenv:py27-1.4]
28+
basepython = python2.7
29+
deps =
30+
-r{toxinidir}/tests/requirements.txt
31+
django==1.4
32+
33+
[testenv:py26-1.4]
34+
basepython = python2.6
35+
deps =
36+
-r{toxinidir}/tests/requirements.txt
37+
django==1.4
38+
39+
[testenv:py27-1.3]
40+
basepython = python2.7
41+
deps =
42+
-r{toxinidir}/tests/requirements.txt
43+
django==1.3
44+
45+
[testenv:py26-1.3]
46+
basepython = python2.6
47+
deps =
48+
-r{toxinidir}/tests/requirements.txt
49+
django==1.3
50+
51+
[testenv:py27-1.2]
52+
basepython = python2.7
53+
deps =
54+
-r{toxinidir}/tests/requirements.txt
55+
django==1.2
56+
57+
[testenv:py26-1.2]
58+
basepython = python2.6
59+
deps =
60+
-r{toxinidir}/tests/requirements.txt
61+
django==1.2

0 commit comments

Comments
 (0)