From cef3c5477abdba86bb9c74e6356109c6ae613a5d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 25 Aug 2022 17:34:00 +0100 Subject: [PATCH] Add Django 4.1 support --- .github/workflows/test.yml | 5 ++++- setup.py | 1 + tests/settings.py | 2 ++ tox.ini | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52f6b6b..c89d7fc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,7 @@ jobs: max-parallel: 5 matrix: python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.10'] - django-version: ['2.2', '3.2', '4.0'] + django-version: ['2.2', '3.2', '4.0', '4.1'] include: # Tox configuration for QA environment - python-version: '3.10' @@ -27,6 +27,9 @@ jobs: # Exclude Django 4.0 for Python 3.7 - python-version: '3.7' django-version: '4.0' + # Exclude Django 4.1 for Python 3.7 + - python-version: '3.7' + django-version: '4.1' # Exclude Django 2.2 for Python 3.10 - python-version: '3.10' django-version: '2.2' diff --git a/setup.py b/setup.py index 46e5b52..8fd6b6c 100755 --- a/setup.py +++ b/setup.py @@ -21,6 +21,7 @@ "Framework :: Django :: 2.2", "Framework :: Django :: 3.2", "Framework :: Django :: 4.0", + "Framework :: Django :: 4.1", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", diff --git a/tests/settings.py b/tests/settings.py index 90a4656..c19d0dc 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -7,3 +7,5 @@ ] SECRET_KEY = "spam-eggs" + +USE_TZ = True diff --git a/tox.ini b/tox.ini index 688c5e2..a0f5602 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ envlist = py{37,38,39,py3}-dj22 py{37,38,39,310,py3}-dj32 py{38,39,310,py3}-dj40 + py{38,39,310,py3}-dj41 py{310,py3}-djmain py310-djqa @@ -19,6 +20,7 @@ DJANGO = 2.2: dj22 3.2: dj32 4.0: dj40 + 4.1: dj41 main: djmain qa: djqa @@ -28,6 +30,7 @@ deps = dj22: django>=2.2,<2.3 dj32: django>=3.2,<3.3 dj40: django>=4.0,<4.1 + dj41: django>=4.1,<4.2 djmain: https://github.com/django/django/archive/main.tar.gz usedevelop = True setenv =