From 1d36f3e5753121c59cb240e3c191562dede0d18c Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Tue, 12 Nov 2024 10:56:11 +0100 Subject: [PATCH] Drop support for Django 4.2 --- pyproject.toml | 5 +++-- tox.ini | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b9c7b9ba2..4cad40e15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,8 @@ requires-python = ">=3.10" license = {text = "GPL-3.0-or-later"} classifiers = [ "Framework :: Django", - "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", @@ -22,7 +23,7 @@ classifiers = [ "Topic :: System :: Monitoring", ] dependencies = [ - "Django>=4.2.16,<5.2", + "Django>=5.0.9,<5.2", "dj-database-url>=0.5.0", "django-cors-headers>=3.2", "django-filter", diff --git a/tox.ini b/tox.ini index 3d33dddba..45a9b56e7 100644 --- a/tox.ini +++ b/tox.ini @@ -51,10 +51,9 @@ setenv = PIP_CONSTRAINT=constraints.txt commands = - pip-compile --resolver backtracking --output-file requirements-django42.txt {posargs} pyproject.toml requirements/django42.txt constraints.txt pip-compile --resolver backtracking --output-file requirements-django50.txt {posargs} pyproject.toml requirements/django50.txt constraints.txt pip-compile --resolver backtracking --output-file requirements-django51.txt {posargs} pyproject.toml requirements/django51.txt constraints.txt - cp requirements-django42.txt requirements.txt + cp requirements-django51.txt requirements.txt [testenv:coverage-xml] deps = @@ -79,7 +78,6 @@ setenv = LANG=C.UTF-8 PYTHONPATH = {toxinidir}/src PYTHONWARNINGS=once::DeprecationWarning - django42: DJANGO_VER=42 django50: DJANGO_VER=50 django51: DJANGO_VER=51