From dffec43cc0f59a23eb8499f9047be9edd15a919e Mon Sep 17 00:00:00 2001 From: Devid <13779643+sevdog@users.noreply.github.com> Date: Mon, 18 Mar 2024 09:55:47 +0100 Subject: [PATCH] Add support for django 5.0 (#57) --- .github/workflows/python-app.yml | 11 ++++++++++- README.rst | 4 ++-- setup.py | 1 + tox.ini | 2 ++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 6ef6746..5f9588e 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - django_version: [ '3.2', '4.0', '4.1', '4.2' ] + django_version: [ '3.2', '4.0', '4.1', '4.2', '5.0' ] python_version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ] exclude: @@ -24,6 +24,15 @@ jobs: - django_version: '4.2' python_version: '3.7' + - django_version: '5.0' + python_version: '3.7' + + - django_version: '5.0' + python_version: '3.8' + + - django_version: '5.0' + python_version: '3.9' + - django_version: '3.2' python_version: '3.12' diff --git a/README.rst b/README.rst index 36a4eb0..f601be4 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Resizes image origin to specified size. Compatible with sorl-thumbnail. Inherits Features ======== -- Tested on Django 3.2, 4.0, 4.1, 4.2 +- Tested on Django 3.2, 4.0, 4.1, 4.2, 5.0 Installation ============ @@ -30,7 +30,7 @@ settings.py DJANGORESIZED_DEFAULT_FORCE_FORMAT = 'JPEG' DJANGORESIZED_DEFAULT_FORMAT_EXTENSIONS = {'JPEG': ".jpg"} DJANGORESIZED_DEFAULT_NORMALIZE_ROTATION = True - + Usage ===== diff --git a/setup.py b/setup.py index 2f8dafc..2b9b100 100644 --- a/setup.py +++ b/setup.py @@ -28,6 +28,7 @@ 'Framework :: Django :: 4.1', 'Framework :: Django :: 4.0', 'Framework :: Django :: 4.2', + 'Framework :: Django :: 5.0', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', diff --git a/tox.ini b/tox.ini index 37b345d..dc39b46 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,7 @@ skipsdist = True envlist = py{37,38,39,310}-django-{32} py{38,39,310,311,312}-django-{40,41,42} + py{310,311,312}-django-{50} py310-flake8 [testenv] @@ -15,6 +16,7 @@ deps = django-40: Django>=4.0,<4.1 django-41: Django>=4.1,<4.2 django-42: Django>=4.2,<4.3 + django-50: Django>=5.0,<5.1 commands = flake8: flake8 django_resized --ignore=E501,W504 django: django-admin test --settings=django_resized.tests.settings {posargs}