Skip to content

Commit 46a25bc

Browse files
authored
Merge pull request #73 from pinax/feat/support-django-4
feat: support Django 4
2 parents 12a695d + ad9e10f commit 46a25bc

File tree

6 files changed

+38
-7
lines changed

6 files changed

+38
-7
lines changed

.circleci/config.yml

+21
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ jobs:
6262
- image: circleci/python:3.6
6363
environment:
6464
TOXENV=py36-dj32
65+
py36dj40:
66+
<<: *common
67+
docker:
68+
- image: circleci/python:3.6
69+
environment:
70+
TOXENV=py36-dj40
6571
py37dj22:
6672
<<: *common
6773
docker:
@@ -86,6 +92,12 @@ jobs:
8692
- image: circleci/python:3.7
8793
environment:
8894
TOXENV=py37-dj32
95+
py37dj40:
96+
<<: *common
97+
docker:
98+
- image: circleci/python:3.7
99+
environment:
100+
TOXENV=py37-dj40
89101
py38dj22:
90102
<<: *common
91103
docker:
@@ -110,6 +122,12 @@ jobs:
110122
- image: circleci/python:3.8
111123
environment:
112124
TOXENV=py38-dj32
125+
py38dj40:
126+
<<: *common
127+
docker:
128+
- image: circleci/python:3.8
129+
environment:
130+
TOXENV=py38-dj40
113131

114132
workflows:
115133
version: 2
@@ -120,11 +138,14 @@ workflows:
120138
- py36dj30
121139
- py36dj31
122140
- py36dj32
141+
- py36dj40
123142
- py37dj22
124143
- py37dj30
125144
- py37dj31
126145
- py37dj32
146+
- py37dj40
127147
- py38dj22
128148
- py38dj30
129149
- py38dj31
130150
- py38dj32
151+
- py38dj40

AUTHORS

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ arthur <[email protected]>
1717
Graham Ullrich <[email protected]>
1818
Mfon Eti-mfon <[email protected]>
1919
Katherine Michel <[email protected]>
20-
20+
Agus Makmun <[email protected]>

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ Announcements have title and content, with options for filtering their display:
7777

7878
Django / Python | 3.6 | 3.7 | 3.8
7979
--------------- | --- | --- | ---
80-
2.2 | * | * | *
81-
3.0 | * | * | *
80+
2.2 | * | * | *
81+
3.0 | * | * | *
82+
4.0 | * | * | *
8283

8384

8485
## Documentation
@@ -272,6 +273,11 @@ Since `bootstrap` template tags and filters are no longer loaded, you'll also ne
272273

273274
## Change Log
274275

276+
### 4.0.1
277+
278+
* Support Django 4.0
279+
* Avoid extra queries when fetching dismissals #63
280+
275281
### 4.0.0
276282

277283
* Drop Django 1.11, 2.0, and 2.1, and Python 2,7, 3.4, and 3.5 support

runtests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"pinax.announcements.tests",
1919
"pinax.templates",
2020
],
21-
MIDDLEWARE = [
21+
MIDDLEWARE=[
2222
"django.contrib.sessions.middleware.SessionMiddleware",
2323
"django.contrib.auth.middleware.AuthenticationMiddleware",
2424
],

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import find_packages, setup
22

3-
VERSION = "4.0.0"
3+
VERSION = "4.0.1"
44
LONG_DESCRIPTION = """
55
.. image:: http://pinaxproject.com/pinax-design/patches/pinax-announcements.svg
66
:target: https://pypi.python.org/pypi/pinax-announcements/
@@ -64,6 +64,8 @@
6464
+-----------------+-----+-----+-----+
6565
| 3.2 | * | * | * |
6666
+-----------------+-----+-----+-----+
67+
| 4.0 | * | * | * |
68+
+-----------------+-----+-----+-----+
6769
"""
6870

6971
setup(
@@ -87,6 +89,7 @@
8789
"Framework :: Django :: 3.0",
8890
"Framework :: Django :: 3.1",
8991
"Framework :: Django :: 3.2",
92+
"Framework :: Django :: 4.0",
9093
"Intended Audience :: Developers",
9194
"License :: OSI Approved :: MIT License",
9295
"Operating System :: OS Independent",

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ show_missing = True
2828
[tox]
2929
envlist =
3030
checkqa,
31-
py{36,37,38}-dj{22,30,31,32}
32-
31+
py{36,37,38}-dj{22,30,31,32,40}
32+
3333
[testenv]
3434
passenv = CI CIRCLECI CIRCLE_*
3535
deps =
@@ -39,6 +39,7 @@ deps =
3939
dj30: Django>=3.0,<3.1
4040
dj31: Django>=3.1,<3.2
4141
dj32: Django>=3.2,<3.3
42+
dj40: Django>=4.0,<4.1
4243
master: https://github.com/django/django/tarball/master
4344

4445
usedevelop = True

0 commit comments

Comments
 (0)