forked from caffeinehit/django-oauth2-provider
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #11 from stormsherpa/update_python38_django4
Update for modern Django 4.0+
- Loading branch information
Showing
12 changed files
with
93 additions
and
44 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,7 +1,7 @@ | ||
dist: xenial | ||
dist: focal | ||
sudo: false | ||
language: python | ||
python: | ||
- "3.6" | ||
- "3.8" | ||
install: pip install tox-travis | ||
script: 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
pipeline { | ||
agent { | ||
label "python" | ||
} | ||
stages { | ||
stage('Virtualenv'){ | ||
steps { | ||
sh '/usr/bin/virtualenv toxtest -p /usr/bin/python3' | ||
sh 'toxtest/bin/pip install tox==3.28.0 pathlib2' | ||
} | ||
} | ||
stage('Test'){ | ||
parallel { | ||
stage('Unit Test Django 3.0'){ | ||
steps { | ||
sh 'toxtest/bin/tox -e py3.8-django{3.0}' | ||
} | ||
} | ||
stage('Unit Test Django 3.1'){ | ||
steps { | ||
sh 'toxtest/bin/tox -e py3.8-django{3.1}' | ||
} | ||
} | ||
stage('Unit Test Django 3.2'){ | ||
steps { | ||
sh 'toxtest/bin/tox -e py3.8-django{3.2}' | ||
} | ||
} | ||
stage('Unit Test Django 4.0'){ | ||
steps { | ||
sh 'toxtest/bin/tox -e py3.8-django{4.0}' | ||
} | ||
} | ||
stage('Unit Test Django 4.1'){ | ||
steps { | ||
sh 'toxtest/bin/tox -e py3.8-django{4.1}' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
cleanup { | ||
cleanWs() | ||
} | ||
} | ||
} |
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 +1,2 @@ | ||
__version__ = "3.2" | ||
__version__ = "4.0" | ||
# The major version is expected to follow the current django major version:q |
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,4 +1,4 @@ | ||
Django>=2.1 | ||
shortuuid>=0.4 | ||
six>=0.11.0 | ||
sqlparse>=0.2.4 | ||
Django==3.2 | ||
shortuuid==1.0.11 | ||
six>=0.16.0 | ||
sqlparse>=0.4.3 |
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,10 @@ | ||
from django.conf.urls import url, include | ||
from django.urls import path, include | ||
from django.contrib import admin | ||
|
||
admin.autodiscover() | ||
|
||
urlpatterns = [ | ||
url(r'^admin/', admin.site.urls), | ||
url(r'^oauth2/', include('provider.oauth2.urls', namespace='oauth2')), | ||
url(r'^tests/', include('provider.oauth2.tests.urls', namespace='tests')), | ||
path('admin/', admin.site.urls), | ||
path('oauth2/', include('provider.oauth2.urls', namespace='oauth2')), | ||
path('tests/', include('provider.oauth2.tests.urls', namespace='tests')), | ||
] |
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