diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3e8637..3324157 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,11 @@ jobs: - "Django>=3.0,<3.1" - "Django>=3.1,<3.2" - "Django>=3.2,<3.3" + - "Django>=4.2,<4.3" exclude: + # Django 4.2 drops Python 3.7 support + - python-version: "3.7" + django-version: "Django>=4.2,<4.3" # Django 3.1+ supports Python 3.9. # https://docs.djangoproject.com/en/3.1/releases/3.1.3/ - python-version: "3.9" @@ -48,6 +52,14 @@ jobs: PYTHONWARNINGS: error DJANGO_SETTINGS_MODULE: cove.settings SECRET_KEY: 7ur)dt+e%1^e6$8_sd-@1h67_5zixe2&39%r2$$8_7v6fr_7ee + if: ${{ matrix.django-version != 'Django>=4.2,<4.3' }} + # Don't set PYTHONWARNING for Django 4.2, as that has some known + # deprecation warnings for 5.0 + - run: "py.test -n 2 cove --cov" + env: + DJANGO_SETTINGS_MODULE: cove.settings + SECRET_KEY: 7ur)dt+e%1^e6$8_sd-@1h67_5zixe2&39%r2$$8_7v6fr_7ee + if: ${{ matrix.django-version == 'Django>=4.2,<4.3' }} - run: "sudo apt-get update" - run: "sudo apt-get install gettext" # Check that changes to .po files have been compiled diff --git a/CHANGELOG.md b/CHANGELOG.md index cfa8f48..f98d649 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Add + +- Support Django 4.2 https://github.com/OpenDataServices/lib-cove-web/issues/112 + # [0.27.0] - 2023-03-06 ## Changed diff --git a/setup.py b/setup.py index c781233..ea4cad4 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,7 @@ ], python_requires=">=3.7", install_requires=[ - "Django>=2.2,<3.3", + "Django>=2.2,<4.3", "django-bootstrap3", "requests", "django-environ",