Skip to content

Commit

Permalink
Support Django 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored and codingjoe committed Sep 9, 2022
1 parent ab11cea commit 08822ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,15 @@ jobs:
- "3.8"
- "3.9"
django-version:
- "2.2.0"
- "3.2.0"
- "4.0a1"
- "2.2"
- "3.2"
- "4.0"
- "4.1"
exclude:
- python-version: "3.7"
django-version: "4.0a1"
django-version: "4.0"
- python-version: "3.7"
django-version: "4.1"
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -76,7 +79,7 @@ jobs:
pip install -e .[test]
pip install django~=${{ matrix.django-version }}
- name: Run tests
run: PATH=$PATH:$(pwd)/bin py.test
run: PATH=$PATH:$(pwd)/bin pytest
- run: codecov
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ classifier =
Framework :: Django :: 2.2
Framework :: Django :: 3.1
Framework :: Django :: 4.0
Framework :: Django :: 4.1

[options]
include_package_data = True
Expand Down
6 changes: 5 additions & 1 deletion tests/testapp/settings.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import os.path

import django

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DEBUG = True

Expand Down Expand Up @@ -37,5 +39,7 @@

SECRET_KEY = "123456"

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

0 comments on commit 08822ca

Please sign in to comment.