Skip to content

Commit 7a13a57

Browse files
committed
support for Django 4.1 in tests and github actions
1 parent 4eb71ec commit 7a13a57

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: Test
22

33
on:
44
push:
5-
branches: ["queues"]
5+
branches: ["queues", "_django_4_1"]
66
pull_request:
7-
branches: ["queues"]
7+
branches: ["queues", "_django_4_1"]
88

99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
python-version: ["3.7", "3.8", "3.9", "3.10"]
14+
python-version: ["3.8", "3.9", "3.10", "3.11"]
1515
steps:
1616
- name: Checkout code
1717
uses: actions/checkout@v3
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install dependencies
2323
run: |
2424
python -m pip install --upgrade pip
25-
python -m pip install tox tox-gh-actions coveralls
25+
python -m pip install "tox>=4.3,<4.4" "tox-gh-actions>=3.0,<3.1" coveralls
2626
- name: Test with tox
2727
run: tox
2828
- name: Upload coverage data to coveralls.io

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ demo/minio-data
1616
celerybeat-schedule
1717

1818
# tests related
19+
.python-version
1920
.tox
2021
.coverage
2122
cover

demo/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ boto3==1.26.1
1212
-e ..
1313

1414
# tests, dev and docs
15-
tox==3.25.1
15+
tox>=4.3,<4.4
1616
flake8==4.0.1
1717
ipdb==0.13.9
1818
ipython==8.4

docs/changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Changed
1313
* Send and queue emails with Celery instead of with Cron.
1414
* Drop priority headers (useless with queues).
1515
* Storage backends to save emails in databases, file storages, etc.
16-
* Minimum versions: Python 3.7, Django 3.2, Celery 5.0.
16+
* Supported versions: Python 3.8~3.11, Django 3.2~4.1, Celery 5.0~5.2.
1717
* Migrate CI/CD from Travis to Github Actions.
1818
* Docker Compose for external dependencies in development environment.
1919
* Get django_yubin version programmatically.

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ def get_version():
4747
'License :: OSI Approved :: Apache Software License',
4848
'Operating System :: OS Independent',
4949
'Programming Language :: Python',
50-
'Programming Language :: Python :: 3.7',
5150
'Programming Language :: Python :: 3.8',
5251
'Programming Language :: Python :: 3.9',
5352
'Programming Language :: Python :: 3.10',
53+
'Programming Language :: Python :: 3.11',
5454
'Framework :: Django',
5555
'Framework :: Django :: 3.2',
56+
'Framework :: Django :: 4.0',
5657
'Framework :: Django :: 4.1',
5758
]
5859
)

tox.ini

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
[tox]
2-
envlist =
3-
py37-dj32
4-
py38-dj32
5-
py39-dj32
6-
py310-dj32
2+
envlist = py{38,39,310}-dj{32,40,41}, py311-dj41
73
skip_missing_interpreters = true
84

95
[gh-actions]
106
python =
11-
3.7: py37-dj32
12-
3.8: py38-dj32
13-
3.9: py39-dj32
14-
3.10: py310-dj32
7+
3.8: py38
8+
3.9: py39
9+
3.10: py310
10+
3.11: py311
1511

1612
[testenv]
1713
deps =
1814
coverage
1915
dj32: Django>=3.2,<4
16+
dj40: Django>=4.0,<4.1
17+
dj41: Django>=4.1,<4.2
2018
commands=
2119
coverage run --rcfile={toxinidir}/.coveragerc {toxinidir}/runtests.py {posargs}
2220
coverage report --omit=test*,*migrations*

0 commit comments

Comments
 (0)