Merge pull request #2 from EmilStenstrom/supported-versions

Support Django 1.8 on Python 2.7, 3.3, and 3.4 only.
This commit is contained in:
Emil Stenström 2015-06-15 18:21:53 +02:00
commit be574fb520
4 changed files with 22 additions and 3 deletions

View file

@ -2,6 +2,7 @@ sudo: false
language: python language: python
python: python:
- "2.7" - "2.7"
- "3.3"
- "3.4" - "3.4"
install: pip install tox-travis install: pip install tox-travis
script: tox script: tox

View file

@ -45,9 +45,26 @@ In your templates, use your component by first importing the django_components t
# Running the tests # Running the tests
Install and run `tox`: Install `tox`:
```sh ```sh
pip install tox pip install tox
```
Then run all the tests over all Python versions:
```sh
tox tox
``` ```
Or just the particular version you wish to test:
```sh
tox -e py34
```
You can also have it watch the directory for changes and re-run the tests:
```sh
tox -e py34 -- -f
```

View file

@ -7,6 +7,6 @@ setup(
'Private :: Do Not Upload', 'Private :: Do Not Upload',
], ],
install_requires=[ install_requires=[
'Django>=1.5' 'Django>=1.8'
], ],
) )

View file

@ -1,7 +1,8 @@
[tox] [tox]
envlist = py27, py34 envlist = py{27,33,34}
[testenv] [testenv]
deps = deps =
pytest pytest
pytest-xdist
commands = py.test {posargs} commands = py.test {posargs}