Skip to content

Commit

Permalink
Merge pull request #73 from pinax/feat/support-django-4
Browse files Browse the repository at this point in the history
feat: support Django 4
  • Loading branch information
agusmakmun authored Apr 22, 2024
2 parents 12a695d + ad9e10f commit 46a25bc
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 7 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
- image: circleci/python:3.6
environment:
TOXENV=py36-dj32
py36dj40:
<<: *common
docker:
- image: circleci/python:3.6
environment:
TOXENV=py36-dj40
py37dj22:
<<: *common
docker:
Expand All @@ -86,6 +92,12 @@ jobs:
- image: circleci/python:3.7
environment:
TOXENV=py37-dj32
py37dj40:
<<: *common
docker:
- image: circleci/python:3.7
environment:
TOXENV=py37-dj40
py38dj22:
<<: *common
docker:
Expand All @@ -110,6 +122,12 @@ jobs:
- image: circleci/python:3.8
environment:
TOXENV=py38-dj32
py38dj40:
<<: *common
docker:
- image: circleci/python:3.8
environment:
TOXENV=py38-dj40

workflows:
version: 2
Expand All @@ -120,11 +138,14 @@ workflows:
- py36dj30
- py36dj31
- py36dj32
- py36dj40
- py37dj22
- py37dj30
- py37dj31
- py37dj32
- py37dj40
- py38dj22
- py38dj30
- py38dj31
- py38dj32
- py38dj40
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ arthur <[email protected]>
Graham Ullrich <[email protected]>
Mfon Eti-mfon <[email protected]>
Katherine Michel <[email protected]>

Agus Makmun <[email protected]>
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ Announcements have title and content, with options for filtering their display:

Django / Python | 3.6 | 3.7 | 3.8
--------------- | --- | --- | ---
2.2 | * | * | *
3.0 | * | * | *
2.2 | * | * | *
3.0 | * | * | *
4.0 | * | * | *


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

## Change Log

### 4.0.1

* Support Django 4.0
* Avoid extra queries when fetching dismissals #63

### 4.0.0

* Drop Django 1.11, 2.0, and 2.1, and Python 2,7, 3.4, and 3.5 support
Expand Down
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"pinax.announcements.tests",
"pinax.templates",
],
MIDDLEWARE = [
MIDDLEWARE=[
"django.contrib.sessions.middleware.SessionMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
],
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import find_packages, setup

VERSION = "4.0.0"
VERSION = "4.0.1"
LONG_DESCRIPTION = """
.. image:: http://pinaxproject.com/pinax-design/patches/pinax-announcements.svg
:target: https://pypi.python.org/pypi/pinax-announcements/
Expand Down Expand Up @@ -64,6 +64,8 @@
+-----------------+-----+-----+-----+
| 3.2 | * | * | * |
+-----------------+-----+-----+-----+
| 4.0 | * | * | * |
+-----------------+-----+-----+-----+
"""

setup(
Expand All @@ -87,6 +89,7 @@
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ show_missing = True
[tox]
envlist =
checkqa,
py{36,37,38}-dj{22,30,31,32}
py{36,37,38}-dj{22,30,31,32,40}

[testenv]
passenv = CI CIRCLECI CIRCLE_*
deps =
Expand All @@ -39,6 +39,7 @@ deps =
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
master: https://github.com/django/django/tarball/master

usedevelop = True
Expand Down

0 comments on commit 46a25bc

Please sign in to comment.