mirror of
https://github.com/django-components/django-components.git
synced 2025-09-13 09:26:17 +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
|
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
|
||||||
|
|
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
|
# 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
|
||||||
|
```
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -7,6 +7,6 @@ setup(
|
||||||
'Private :: Do Not Upload',
|
'Private :: Do Not Upload',
|
||||||
],
|
],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'Django>=1.5'
|
'Django>=1.8'
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
3
tox.ini
3
tox.ini
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue