Skip to content

Commit 5a0a19b

Browse files
committed
Update Python & Django versions in CI
1 parent a6fcf1c commit 5a0a19b

File tree

5 files changed

+31
-41
lines changed

5 files changed

+31
-41
lines changed

.github/workflows/ci.yml

+18-14
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,34 @@ jobs:
1616
strategy:
1717
matrix:
1818
include:
19-
- name: Python 3.8 / Django 3.0
19+
- name: Python 3.8 / Django 4.2
2020
python_version: "3.8"
21-
tox_env: py38-django30
21+
tox_env: py38-django42
2222

23-
- name: Python 3.9 / Django 3.1
23+
- name: Python 3.9 / Django 4.2
2424
python_version: "3.9"
25-
tox_env: py39-django31
25+
tox_env: py39-django42
2626

27-
- name: Python 3.10 / Django 3.2
27+
- name: Python 3.10 / Django 4.2
2828
python_version: "3.10"
29-
tox_env: py310-django32
30-
31-
- name: Python 3.10 / Django 4.0
32-
python_version: "3.10"
33-
tox_env: py310-django40
34-
35-
- name: Python 3.11 / Django 4.1
36-
python_version: "3.11"
37-
tox_env: py311-django41
29+
tox_env: py310-django42
3830

3931
- name: Python 3.11 / Django 4.2
4032
python_version: "3.11"
4133
tox_env: py311-django42
4234

35+
- name: Python 3.12 / Django 4.2
36+
python_version: "3.12"
37+
tox_env: py312-django42
38+
39+
- name: Python 3.12 / Django 5.0
40+
python_version: "3.12"
41+
tox_env: py312-django50
42+
43+
- name: Python 3.12 / Django 5.1
44+
python_version: "3.12"
45+
tox_env: py312-django51
46+
4347
name: "${{ matrix.name }}"
4448
runs-on: ubuntu-latest
4549

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Requirements
4040
------------
4141

4242
+ **Postgresql only**
43-
+ Django, tested from 2.2 to 4.2
44-
+ With Python, tested from 3.8 to 3.11
43+
+ Django, tested from 4.2 to 5.1
44+
+ With Python, tested from 3.8 to 3.12
4545

4646
Documentation
4747
-------------

poetry.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-12
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,14 @@ classifiers = [
1818
"License :: OSI Approved :: MIT License",
1919
"Development Status :: 5 - Production/Stable",
2020
"Framework :: Django",
21-
"Framework :: Django :: 2.2",
22-
"Framework :: Django :: 3.0",
23-
"Framework :: Django :: 3.1",
24-
"Framework :: Django :: 3.2",
25-
"Framework :: Django :: 4.0",
26-
"Framework :: Django :: 4.1",
2721
"Framework :: Django :: 4.2",
28-
"Programming Language :: Python :: 3",
29-
"Programming Language :: Python :: 3.8",
30-
"Programming Language :: Python :: 3.9",
31-
"Programming Language :: Python :: 3.10",
32-
"Programming Language :: Python :: 3.11",
22+
"Framework :: Django :: 5.0",
23+
"Framework :: Django :: 5.1",
3324
]
3425

3526
[tool.poetry.dependencies]
3627
python = "^3.8"
37-
django = "^2.2 || ^3.0 || ^4.0"
28+
django = "*"
3829

3930
[tool.poetry.group.dev.dependencies]
4031
build = "*"

tox.ini

+7-12
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[tox]
22
isolated_build = true
33
envlist =
4-
py38-django30
5-
py39-django31
6-
py310-django{32,40}
7-
py311-django{41,42}
4+
py38-django42
5+
py39-django42
6+
py310-django42
7+
py311-django42
8+
py312-django{42,50,51}
89
linters
910
docs
1011

@@ -16,16 +17,10 @@ setenv =
1617
DATABASE_URL = {env:DATABASE_URL:postgres://postgres:[email protected]:5432/db}
1718
commands_pre =
1819
poetry install
19-
django22: pip install psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
20-
django30: pip install psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
2120

22-
django22: pip install Django==2.2.*
23-
django30: pip install Django==3.0.*
24-
django31: pip install Django==3.1.*
25-
django32: pip install Django==3.2.*
26-
django40: pip install Django==4.0.*
27-
django41: pip install Django==4.1.*
2821
django42: pip install Django==4.2.*
22+
django42: pip install Django==5.0.*
23+
django42: pip install Django==5.1.*
2924
djangostable: pip install Django
3025
commands =
3126
poetry run pytest

0 commit comments

Comments
 (0)