Skip to content

Commit

Permalink
Add Django5 support
Browse files Browse the repository at this point in the history
Add Django5 support
  • Loading branch information
pfouque committed Oct 14, 2023
2 parents f8eafed + 2e0e474 commit 08ef33f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
env:
PYTHON_VERSION: ${{ matrix.python-version }}

Expand All @@ -41,11 +42,12 @@ jobs:
- name: Django 3.2.x Test
run: |
tox -e "py${PYTHON_VERSION/\./}-django32"
if: ${{ env.PYTHON_VERSION == '3.7' || env.PYTHON_VERSION == '3.8' || env.PYTHON_VERSION == '3.9' || env.PYTHON_VERSION == '3.10' }}

- name: Django 4.0.x Test
run: |
tox -e "py${PYTHON_VERSION/\./}-django40"
if: ${{ env.PYTHON_VERSION == '3.8' || env.PYTHON_VERSION == '3.9' || env.PYTHON_VERSION == '3.10' || env.PYTHON_VERSION == '3.11' }}
if: ${{ env.PYTHON_VERSION == '3.8' || env.PYTHON_VERSION == '3.9' || env.PYTHON_VERSION == '3.10' }}

- name: Django 4.1.x Test
run: |
Expand All @@ -57,10 +59,15 @@ jobs:
tox -e "py${PYTHON_VERSION/\./}-django42"
if: ${{ env.PYTHON_VERSION == '3.8' || env.PYTHON_VERSION == '3.9' || env.PYTHON_VERSION == '3.10' || env.PYTHON_VERSION == '3.11' }}

- name: Django 5.0.x Test
run: |
tox -e "py${PYTHON_VERSION/\./}-django50"
if: ${{ env.PYTHON_VERSION == '3.10' || env.PYTHON_VERSION == '3.11' || env.PYTHON_VERSION == '3.12' }}

- name: Django main Test
run: |
tox -e "py${PYTHON_VERSION/\./}-djangomain"
if: ${{ env.PYTHON_VERSION == '3.10' || env.PYTHON_VERSION == '3.11' }}
if: ${{ env.PYTHON_VERSION == '3.10' || env.PYTHON_VERSION == '3.11' || env.PYTHON_VERSION == '3.12' }}

- name: social-core master Test
run: |
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def load_requirements():
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
zip_safe=False,
)
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
[tox]
envlist =
py{37,38,39,310,311}-django32
py{38,39,310,311}-django40
py{37,38,39,310}-django32
py{38,39,310}-django40
py{38,39,310,311}-django41
py{38,39,310,311}-django42
py{310,311}-djangomain
py{310,311}-socialmaster
py{310,311,312}-django50
py{310,311,312}-djangomain
py{310,311,312}-socialmaster

[testenv]
passenv = *
Expand All @@ -15,7 +16,8 @@ deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2a1,<4.3
django42: Django>=4.2,<4.3
django50: Django>=5.0a1,<5.1
djangomain: https://github.com/django/django/archive/main.tar.gz
socialmaster: https://github.com/python-social-auth/social-core/archive/master.tar.gz
-r{toxinidir}/requirements-dev.txt

0 comments on commit 08ef33f

Please sign in to comment.