Skip to content

Commit ab68db9

Browse files
authored
feat: Add django 4.1 and Python 3.11 support (#1321)
* Add: Django 4.1, py 3.11 tests * Update readme, changelog
1 parent 7ffbca0 commit ab68db9

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,20 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
11+
python-version: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
1212
requirements-file: [
1313
django-2.2.txt,
1414
django-3.0.txt,
1515
django-3.1.txt,
1616
django-3.2.txt,
17-
django-4.0.txt
17+
django-4.0.txt,
18+
django-4.1.txt
1819
]
1920
exclude:
2021
- python-version: 3.7
2122
requirements-file: django-4.0.txt
23+
- python-version: 3.7
24+
requirements-file: django-4.1.txt
2225
- python-version: 3.9
2326
requirements-file: django-2.2.txt
2427
- python-version: 3.10
@@ -27,6 +30,12 @@ jobs:
2730
requirements-file: django-3.0.txt
2831
- python-version: 3.10
2932
requirements-file: django-3.1.txt
33+
- python-version: 3.11
34+
requirements-file: django-2.2.txt
35+
- python-version: 3.11
36+
requirements-file: django-3.0.txt
37+
- python-version: 3.11
38+
requirements-file: django-3.1.txt
3039
os: [
3140
ubuntu-20.04,
3241
]

CHANGELOG.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
CHANGELOG
33
=========
44

5-
6-
Unreleased
5+
unreleased
76
==========
8-
7+
* Add Django 4.1 support
8+
* Add python 3.11 tests
99
* Fix thumbnail generation for SVG images when used as a Divio addon.
1010

11-
1211
2.2.3 (2022-08-08)
1312
==================
1413
* Fix CSS styles (Modified SCSS had to be recompiled).

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ for all the details on how to install, configure and use django-filer.
5959

6060
.. |python| image:: https://img.shields.io/badge/python-3.7+-blue.svg
6161
:target: https://pypi.org/project/django-filer/
62-
.. |django| image:: https://img.shields.io/badge/django-2.2,%203.2,%204.0-blue.svg
62+
.. |django| image:: https://img.shields.io/badge/django-2.2,%203.2,%204.1-blue.svg
6363
:target: https://www.djangoproject.com/

filer/server/backends/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def serve(self, request, filer_file, **kwargs):
2525
statobj = os.stat(fullpath)
2626
response_params = {'content_type': filer_file.mime_type}
2727
if not was_modified_since(request.META.get('HTTP_IF_MODIFIED_SINCE'),
28-
statobj[stat.ST_MTIME], statobj[stat.ST_SIZE]):
28+
statobj[stat.ST_MTIME]):
2929
return HttpResponseNotModified(**response_params)
3030
response = HttpResponse(open(fullpath, 'rb').read(), **response_params)
3131
response["Last-Modified"] = http_date(statobj[stat.ST_MTIME])

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
'Programming Language :: Python :: 3.8',
2525
'Programming Language :: Python :: 3.9',
2626
'Programming Language :: Python :: 3.10',
27+
'Programming Language :: Python :: 3.11',
2728
'Framework :: Django',
2829
'Framework :: Django :: 2.2',
2930
'Framework :: Django :: 3.0',
3031
'Framework :: Django :: 3.1',
3132
'Framework :: Django :: 3.2',
3233
'Framework :: Django :: 4.0',
34+
'Framework :: Django :: 4.1',
3335
'Framework :: Django CMS',
3436
'Framework :: Django CMS :: 3.6',
3537
'Framework :: Django CMS :: 3.7',

tests/requirements/django-4.1.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-r base.txt
2+
3+
django>=4.1,<4.2
4+
django_polymorphic>=3.1
5+
https://github.com/jrief/django-app-helper/archive/refs/heads/develop.zip

0 commit comments

Comments
 (0)