From ad7ed35cfb70fb04601cedb1e7ca9bc0c63eca07 Mon Sep 17 00:00:00 2001 From: Devid <13779643+sevdog@users.noreply.github.com> Date: Mon, 23 Sep 2024 08:36:55 +0100 Subject: [PATCH] Tests against django 5.1 (#60) --- .github/workflows/python-app.yml | 11 ++++++++++- README.rst | 2 +- setup.py | 3 ++- tox.ini | 3 ++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5f9588e..b2a88c6 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', '5.0' ] + django_version: [ '3.2', '4.0', '4.1', '4.2', '5.0', '5.1' ] python_version: [ '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ] exclude: @@ -33,6 +33,15 @@ jobs: - django_version: '5.0' python_version: '3.9' + - django_version: '5.1' + python_version: '3.7' + + - django_version: '5.1' + python_version: '3.8' + + - django_version: '5.1' + python_version: '3.9' + - django_version: '3.2' python_version: '3.12' diff --git a/README.rst b/README.rst index f601be4..a37356b 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, 5.0 +- Tested on Django 3.2, 4.0, 4.1, 4.2, 5.0, 5.1 Installation ============ diff --git a/setup.py b/setup.py index 2b9b100..03b56db 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ name = 'django-resized', version = '1.0.3dev', packages = ['django_resized'], - requires = ['python (>= 3.7)', 'django (>= 1.7)'], + requires = ['python (>= 3.7)', 'django (>= 3.2)'], description = 'Resizes image origin to specified size.', long_description = open('README.rst').read(), author = 'Ilya Shalyapin', @@ -29,6 +29,7 @@ 'Framework :: Django :: 4.0', 'Framework :: Django :: 4.2', 'Framework :: Django :: 5.0', + 'Framework :: Django :: 5.1', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python', diff --git a/tox.ini b/tox.ini index dc39b46..1188721 100644 --- a/tox.ini +++ b/tox.ini @@ -3,7 +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} + py{310,311,312}-django-{50,51} py310-flake8 [testenv] @@ -17,6 +17,7 @@ deps = django-41: Django>=4.1,<4.2 django-42: Django>=4.2,<4.3 django-50: Django>=5.0,<5.1 + django-51: Django>=5.1,<5.2 commands = flake8: flake8 django_resized --ignore=E501,W504 django: django-admin test --settings=django_resized.tests.settings {posargs}