-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from edx/christina/django-upgrade
Support django 1.11.
- Loading branch information
Showing
8 changed files
with
43 additions
and
11 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 |
---|---|---|
|
@@ -53,4 +53,6 @@ reports/ | |
coverage/ | ||
htmlcov/ | ||
acceptance_tests/*.png | ||
.tox/ | ||
|
||
|
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,3 +1,4 @@ | ||
Matt Drayer <[email protected]> | ||
Zia Fazal <[email protected]> | ||
Ahsan Ulhaq <[email protected]> | ||
Christina Roberts <[email protected]> |
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,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 |
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,4 +1,4 @@ | ||
""" | ||
edx-organizations app initialization module | ||
""" | ||
__version__ = '0.4.4' # pragma: no cover | ||
__version__ = '0.4.5' # pragma: no cover |
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 |
---|---|---|
|
@@ -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 | ||
|
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,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 |