Skip to content

Commit

Permalink
Add support for django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdog committed Mar 14, 2024
1 parent 799a2e1 commit 3b23dff
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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'

Expand Down
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
============
Expand All @@ -30,7 +30,7 @@ settings.py
DJANGORESIZED_DEFAULT_FORCE_FORMAT = 'JPEG'
DJANGORESIZED_DEFAULT_FORMAT_EXTENSIONS = {'JPEG': ".jpg"}
DJANGORESIZED_DEFAULT_NORMALIZE_ROTATION = True
Usage
=====
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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}

0 comments on commit 3b23dff

Please sign in to comment.