Skip to content

Commit

Permalink
Support django 1.11.
Browse files Browse the repository at this point in the history
EDUCATOR-771
  • Loading branch information
cahrens committed Jul 11, 2017
1 parent c4fb8ca commit 14eca00
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ reports/
coverage/
htmlcov/
acceptance_tests/*.png
.tox/


12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
language: python

python:
- "2.7"
- 2.7

env:
- TOXENV=django18
- TOXENV=django111

matrix:
include:
- python: 2.7
env: TOXENV=quality

before_install:
- "export DISPLAY=:99.0"
Expand All @@ -16,7 +25,6 @@ install:

script:
- make test
- make quality

after_success: coveralls

Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Matt Drayer <[email protected]>
Zia Fazal <[email protected]>
Ahsan Ulhaq <[email protected]>
Christina Roberts <[email protected]>
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
all: requirements quality test

clean:
coverage erase
find . -name '*.pyc' -delete

quality:
pep8 --config=.pep8 organizations
pylint --rcfile=pylintrc organizations
tox -e quality

requirements:
pip install -e . # Install this package and its dependencies
pip install -r test-requirements.txt

test:
django-admin.py test organizations --settings=test_settings --with-coverage --cover-package=organizations
coverage report

.PHONY: clean, quality, requirements, test
tox
2 changes: 1 addition & 1 deletion organizations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
edx-organizations app initialization module
"""
__version__ = '0.4.4' # pragma: no cover
__version__ = '0.4.5' # pragma: no cover
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
],
packages=find_packages(exclude=['tests']),
install_requires=[
'django>=1.8,<1.9',
'django>=1.8,<2.0',
'django-model-utils>=1.4.0',
'djangorestframework>=3.2.0,<3.4.0',
'djangorestframework-oauth>=1.1.0,<2.0.0',
'edx-django-oauth2-provider>=0.5.0,<1.0.0',
'edx-django-oauth2-provider>=1.2.0',
'edx-drf-extensions>=0.5.1,<1.0.0',
'edx-opaque-keys>=0.1.2,<1.0.0',
'Pillow',
Expand Down
2 changes: 2 additions & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ factory-boy>=2.6.0,<3.0.0
httpretty>=0.8.14,<1.0.0
nose>=1.3.7,<2.0.0
pep8>=1.7.0,<2.0.0
tox>=2.3.1,<3.0.0

21 changes: 21 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tox]
envlist = py27-django{18,111}

[testenv]
setenv =
DJANGO_SETTINGS_MODULE = test_settings
PYTHONPATH = {toxinidir}

deps =
django18: Django>=1.8,<1.9
django111: Django>=1.11,<2.0
-rtest-requirements.txt

commands =
django-admin.py test organizations --with-coverage --cover-package=organizations
coverage report

[testenv:quality]
commands =
pep8 --config=.pep8 organizations
pylint --rcfile=pylintrc organizations

0 comments on commit 14eca00

Please sign in to comment.