Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
65 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.coverage | ||
.tox | ||
*.pyc | ||
*.egg-info | ||
htmlcov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,20 @@ | ||
sudo: false | ||
language: python | ||
matrix: | ||
include: | ||
- python: "2.7" | ||
env: TOXENV=flake8 | ||
- python: "2.7" | ||
env: TOXENV=coverage | ||
install: pip install tox coveralls | ||
after_success: coveralls | ||
- python: "2.7" | ||
env: TOXENV=py27-django18-sqlite | ||
- python: "2.7" | ||
env: TOXENV=py27-django18-postgres | ||
- python: "2.7" | ||
env: TOXENV=py27-django19-sqlite | ||
- python: "2.7" | ||
env: TOXENV=py27-django19-postgres | ||
- python: "3.4" | ||
env: TOXENV=py34-django18-sqlite | ||
- python: "3.4" | ||
env: TOXENV=py34-django18-postgres | ||
- python: "3.4" | ||
env: TOXENV=py34-django19-sqlite | ||
- python: "3.4" | ||
env: TOXENV=py34-django19-postgres | ||
- python: "3.5" | ||
env: TOXENV=py35-django18-sqlite | ||
- python: "3.5" | ||
env: TOXENV=py35-django18-postgres | ||
- python: "3.5" | ||
env: TOXENV=py35-django19-sqlite | ||
- python: "3.5" | ||
env: TOXENV=py35-django19-postgres | ||
|
||
python: | ||
- 2.7 | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
|
||
install: | ||
- pip install tox | ||
- pip install tox-travis coveralls | ||
|
||
before_script: | ||
- psql -c 'create database timezone_field_tests;' -U postgres | ||
|
||
script: | ||
- tox | ||
|
||
after_success: | ||
- coveralls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from timezone_field.fields import TimeZoneField | ||
from timezone_field.forms import TimeZoneFormField | ||
|
||
__version__ = '2.0' | ||
__version__ = '2.1' | ||
__all__ = ['TimeZoneField', 'TimeZoneFormField'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,37 @@ | ||
[tox] | ||
envlist = | ||
{py27,py34,py35}-django{18,19}-{sqlite,postgres}, | ||
flake8, coverage | ||
coverage-clean, | ||
py27-{django18,django19,django110,django111}-{sqlite,postgres}, | ||
py34-{django18,django19,django110,django111}-{sqlite,postgres}, | ||
py35-{django18,django19,django110,django111}-{sqlite,postgres}, | ||
py36-django111-{sqlite,postgres}, | ||
coverage-report, | ||
flake8 | ||
|
||
[testenv] | ||
basepython = | ||
py27: python2.7 | ||
py34: python3.4 | ||
py35: python3.5 | ||
commands = coverage run --include='*/timezone_field/*' {envbindir}/django-admin.py test tests | ||
deps = | ||
coverage | ||
django18: django>=1.8,<1.9 | ||
django19: django>=1.9,<1.10 | ||
postgres: psycopg2 | ||
django110: django>=1.10,<1.11 | ||
django111: django>=1.11,<2.0 | ||
postgres: psycopg2-binary | ||
setenv = | ||
PYTHONPATH = {toxinidir} | ||
DJANGO_SETTINGS_MODULE=tests.settings | ||
sqlite: TEST_DB_ENGINE=sqlite | ||
postgres: TEST_DB_ENGINE=postgres | ||
commands = {envbindir}/django-admin.py test tests | ||
|
||
[testenv:flake8] | ||
basepython = python2.7 | ||
commands = flake8 | ||
deps = flake8 | ||
commands = {envbindir}/flake8 {toxinidir}/timezone_field | ||
|
||
[testenv:coverage] | ||
basepython = python2.7 | ||
[testenv:coverage-clean] | ||
commands = coverage erase | ||
|
||
[testenv:coverage-report] | ||
commands = | ||
coverage erase | ||
coverage run --include='*/timezone_field/*' {envbindir}/django-admin.py test tests | ||
deps = | ||
coverage | ||
django>=1.8,<1.9 | ||
psycopg2 | ||
coverage report | ||
coverage html |