mirror of
https://github.com/django-components/django-components.git
synced 2025-08-30 10:47:20 +00:00
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:
commit
be574fb520
4 changed files with 22 additions and 3 deletions
|
@ -2,6 +2,7 @@ sudo: false
|
|||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
install: pip install tox-travis
|
||||
script: tox
|
||||
|
|
19
README.md
19
README.md
|
@ -45,9 +45,26 @@ In your templates, use your component by first importing the django_components t
|
|||
|
||||
# Running the tests
|
||||
|
||||
Install and run `tox`:
|
||||
Install `tox`:
|
||||
|
||||
```sh
|
||||
pip install tox
|
||||
```
|
||||
|
||||
Then run all the tests over all Python versions:
|
||||
|
||||
```sh
|
||||
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
|
||||
```
|
||||
|
|
2
setup.py
2
setup.py
|
@ -7,6 +7,6 @@ setup(
|
|||
'Private :: Do Not Upload',
|
||||
],
|
||||
install_requires=[
|
||||
'Django>=1.5'
|
||||
'Django>=1.8'
|
||||
],
|
||||
)
|
||||
|
|
3
tox.ini
3
tox.ini
|
@ -1,7 +1,8 @@
|
|||
[tox]
|
||||
envlist = py27, py34
|
||||
envlist = py{27,33,34}
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
pytest
|
||||
pytest-xdist
|
||||
commands = py.test {posargs}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue