-
Notifications
You must be signed in to change notification settings - Fork 25
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
14 changed files
with
64 additions
and
161 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 |
---|---|---|
@@ -1,62 +1,40 @@ | ||
sudo: false | ||
dist: xenial | ||
language: python | ||
python: | ||
- "2.6" | ||
- "2.7" | ||
- "3.3" | ||
- "3.4" | ||
- "3.5" | ||
- "pypy" | ||
- "pypy3" | ||
env: | ||
matrix: | ||
- DJANGO="Django>=1.4,<1.5" | ||
- DJANGO="Django>=1.5,<1.6" | ||
- DJANGO="Django>=1.6,<1.7" | ||
- DJANGO="Django>=1.7,<1.8" | ||
- DJANGO="Django>=1.8,<1.9" | ||
- DJANGO="Django>=1.9,<1.10" | ||
- DJANGO="--pre django" | ||
install: | ||
- pip install $DJANGO | ||
- pip install coveralls | ||
- pip install -r dev-requirements.txt | ||
- pip install --upgrade -r dev-requirements.txt | ||
script: | ||
- inv test | ||
after_success: | ||
- coveralls | ||
matrix: | ||
fast_finish: true | ||
exclude: | ||
- python: "2.6" | ||
env: DJANGO="Django>=1.7,<1.8" | ||
- python: "2.6" | ||
env: DJANGO="Django>=1.8,<1.9" | ||
- python: "2.6" | ||
include: | ||
- python: "2.7" | ||
name: 'Linter (Python 2.7)' | ||
install: | ||
- pip install --upgrade -r dev-requirements.txt | ||
script: flake8 sudo tests | ||
- python: "3.7" | ||
name: 'Linter (Python 3.7)' | ||
install: | ||
- pip install --upgrade -r dev-requirements.txt | ||
script: flake8 sudo tests | ||
- python: "2.7" | ||
name: "Python 2.7, Django 1.9" | ||
env: DJANGO="Django>=1.9,<1.10" | ||
- python: "2.6" | ||
env: DJANGO="--pre django" | ||
- python: "3.3" | ||
env: DJANGO="Django>=1.4,<1.5" | ||
- python: "3.3" | ||
- python: "2.7" | ||
name: "Python 2.7, Django 1.10" | ||
env: DJANGO="Django>=1.10,<1.11" | ||
- python: "3.6" | ||
name: "Python 3.6, Django 1.9" | ||
env: DJANGO="Django>=1.9,<1.10" | ||
- python: "3.3" | ||
env: DJANGO="--pre django" | ||
- python: "3.4" | ||
env: DJANGO="Django>=1.4,<1.5" | ||
- python: "3.5" | ||
env: DJANGO="Django>=1.4,<1.5" | ||
- python: "3.5" | ||
env: DJANGO="Django>=1.5,<1.6" | ||
- python: "3.5" | ||
env: DJANGO="Django>=1.6,<1.7" | ||
- python: "3.5" | ||
env: DJANGO="Django>=1.7,<1.8" | ||
- python: "pypy3" | ||
env: DJANGO="Django>=1.4,<1.5" | ||
- python: "pypy3" | ||
- python: "3.6" | ||
name: "Python 3.6, Django 1.10" | ||
env: DJANGO="Django>=1.10,<1.11" | ||
- python: "3.7" | ||
name: "Python 3.7, Django 1.9" | ||
env: DJANGO="Django>=1.9,<1.10" | ||
- python: "pypy3" | ||
env: DJANGO="--pre django" | ||
allow_failures: | ||
- env: DJANGO="--pre django" | ||
- python: "3.7" | ||
name: "Python 3.7, Django 1.10" | ||
env: DJANGO="Django>=1.10,<1.11" |
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,8 +1,8 @@ | ||
[pytest] | ||
[tool:pytest] | ||
python_files = tests/*.py | ||
|
||
[flake8] | ||
max-line-length = 100 | ||
max-line-length = 110 | ||
|
||
[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
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,10 +1,8 @@ | ||
try: | ||
from django.conf.urls import url, patterns | ||
except ImportError: | ||
from django.conf.urls.defaults import url, patterns # noqa | ||
from django.conf.urls import url | ||
|
||
from sudo import views | ||
|
||
urlpatterns = patterns( | ||
'', | ||
url(r'^sudo/', 'sudo.views.sudo', name='sudo'), | ||
) | ||
|
||
urlpatterns = [ | ||
url(r'^sudo/', views.sudo, name='sudo'), | ||
] |
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