Skip to content

Commit

Permalink
Merge branch 'master' into feature/oidc-rp-initiated-logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Qup42 committed Apr 18, 2023
2 parents e1e8b31 + 9dd1033 commit cb395dc
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
django-version: ['2.2', '3.2', '4.0', '4.1', 'main']
django-version: ['2.2', '3.2', '4.0', '4.1', '4.2', 'main']
exclude:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django

Expand All @@ -23,6 +23,8 @@ jobs:
django-version: '4.0'
- python-version: '3.7'
django-version: '4.1'
- python-version: '3.7'
django-version: '4.2'
- python-version: '3.7'
django-version: 'main'

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.3.0
hooks:
- id: black
exclude: ^(oauth2_provider/migrations/|tests/migrations/)
Expand Down
7 changes: 1 addition & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ capabilities to your Django projects. Django OAuth Toolkit makes extensive use o
`OAuthLib <https://github.com/idan/oauthlib>`_, so that everything is
`rfc-compliant <http://tools.ietf.org/html/rfc6749>`_.

Note: If you have issues installing Django 4.0.0, it is because we only support
Django 4.0.1+ due to a regression in Django 4.0.0. Besides 4.0.0, Django 2.2+ is supported.
`Explanation <https://github.com/jazzband/django-oauth-toolkit/pull/1046#issuecomment-998015272>`_.


Reporting security issues
-------------------------

Expand All @@ -49,7 +44,7 @@ Requirements
------------

* Python 3.7+
* Django 2.2, 3.2, or >=4.0.1
* Django 2.2, 3.2, 4.0 (4.0.1+ due to a regression), 4.1, or 4.2
* oauthlib 3.1+

Installation
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ classifiers =
Framework :: Django :: 3.2
Framework :: Django :: 4.0
Framework :: Django :: 4.1
Framework :: Django :: 4.2
Intended Audience :: Developers
License :: OSI Approved :: BSD License
Operating System :: OS Independent
Expand Down
6 changes: 5 additions & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import django


ADMINS = ()

MANAGERS = ADMINS
Expand All @@ -23,7 +26,8 @@
SITE_ID = 1

USE_I18N = True
USE_L10N = True
if django.VERSION < (4, 0):
USE_L10N = True
USE_TZ = True

MEDIA_ROOT = ""
Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ envlist =
py{37,38,39,310}-dj32,
py{38,39,310}-dj40,
py{38,39,310,311}-dj41,
py{38,39,310,311}-dj42,
py{310,311}-djmain,

[gh-actions]
Expand All @@ -25,6 +26,7 @@ DJANGO =
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
main: djmain

[pytest]
Expand All @@ -51,6 +53,7 @@ deps =
dj32: Django>=3.2,<3.3
dj40: Django>=4.0.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<4.3
djmain: https://github.com/django/django/archive/main.tar.gz
djangorestframework
oauthlib>=3.1.0
Expand Down

0 comments on commit cb395dc

Please sign in to comment.