-
Notifications
You must be signed in to change notification settings - Fork 755
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 #556 from carltongibson/develop
Version 1.0 Release
- Loading branch information
Showing
46 changed files
with
2,098 additions
and
1,503 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
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,45 +1,16 @@ | ||
language: python | ||
|
||
sudo: false | ||
|
||
language: python | ||
python: '3.5' | ||
cache: pip | ||
|
||
python: | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
|
||
env: | ||
- DJANGO='https://github.com/django/django/archive/master.tar.gz' REST_FRAMEWORK='djangorestframework>=3.4,<3.5' | ||
- DJANGO="django>=1.10.0,<1.11.0" REST_FRAMEWORK="djangorestframework>=3.4,<3.5" | ||
- DJANGO="django>=1.9.0,<1.10.0" REST_FRAMEWORK="djangorestframework>=3.4,<3.5" | ||
- DJANGO="django>=1.8.0,<1.9.0" REST_FRAMEWORK="djangorestframework>=3.4,<3.5" | ||
- DJANGO="django>=1.8.0,<1.9.0" REST_FRAMEWORK="djangorestframework>=3.3,<3.4" | ||
|
||
install: | ||
- travis_retry pip install -Ur requirements/test-ci.txt | ||
- travis_retry pip install $DJANGO $REST_FRAMEWORK | ||
- pip install coverage tox | ||
|
||
script: | ||
- $W coverage run --source django_filters runtests.py -v 2 | ||
- coverage report | ||
- coverage erase | ||
- tox | ||
|
||
notifications: | ||
email: false | ||
|
||
matrix: | ||
exclude: | ||
- python: "3.3" | ||
env: DJANGO='https://github.com/django/django/archive/master.tar.gz' REST_FRAMEWORK='djangorestframework>=3.4,<3.5' | ||
- python: "3.3" | ||
env: DJANGO="django>=1.10.0,<1.11.0" REST_FRAMEWORK="djangorestframework>=3.4,<3.5" | ||
- python: "3.3" | ||
env: DJANGO="django>=1.9.0,<1.10.0" REST_FRAMEWORK="djangorestframework>=3.4,<3.5" | ||
include: | ||
- python: "3.5" | ||
env: W='python -W error -m' DJANGO='https://github.com/django/django/archive/master.tar.gz' REST_FRAMEWORK='djangorestframework>=3.4,<3.5' | ||
allow_failures: | ||
- env: W='python -W error -m' DJANGO='https://github.com/django/django/archive/master.tar.gz' REST_FRAMEWORK='djangorestframework>=3.4,<3.5' | ||
- env: DJANGO='https://github.com/django/django/archive/master.tar.gz' REST_FRAMEWORK='djangorestframework>=3.4,<3.5' | ||
fast_finish: true | ||
after_success: | ||
- coverage combine | ||
- coverage report |
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,7 @@ | ||
.PHONY: deps, test | ||
|
||
deps: | ||
pip install -r ./requirements/test.txt | ||
|
||
test: | ||
./runtests.py |
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
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 @@ | ||
|
||
ALL_FIELDS = '__all__' | ||
|
||
|
||
class STRICTNESS: | ||
class IGNORE: | ||
pass | ||
|
||
class RETURN_NO_RESULTS: | ||
pass | ||
|
||
class RAISE_VALIDATION_ERROR: | ||
pass | ||
|
||
# Values of False & True chosen for backward compatability reasons. | ||
# Originally, these were the only options. | ||
_LEGACY = { | ||
False: IGNORE, | ||
True: RETURN_NO_RESULTS, | ||
"RAISE": RAISE_VALIDATION_ERROR, | ||
} |
Oops, something went wrong.