Skip to content

Commit

Permalink
Tests against django 5.1 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdog authored Sep 23, 2024
1 parent 554910e commit ad7ed35
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 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', '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:

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

Expand Down
2 changes: 1 addition & 1 deletion 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, 5.0
- Tested on Django 3.2, 4.0, 4.1, 4.2, 5.0, 5.1

Installation
============
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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}

0 comments on commit ad7ed35

Please sign in to comment.