Skip to content

Commit 409dcde

Browse files
authored
Test on new versions of Django and Python (#23)
1 parent d534f28 commit 409dcde

File tree

5 files changed

+32
-15
lines changed

5 files changed

+32
-15
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions/setup-python@v4
1515
with:
16-
python-version: '3.12'
16+
python-version: '3.13'
1717
- name: Install tox
1818
run: |
1919
python -m pip install --upgrade pip
@@ -42,12 +42,15 @@ jobs:
4242
strategy:
4343
matrix:
4444
python-version:
45-
- 3.7
46-
- 3.8
47-
- 3.9
45+
- '3.7'
46+
- '3.8'
47+
- '3.9'
4848
- '3.10'
4949
- '3.11'
5050
- '3.12'
51+
- '3.13'
52+
- 'pypy3.9'
53+
- 'pypy3.10'
5154
name: Python ${{ matrix.python-version }}
5255
steps:
5356
- uses: actions/checkout@v3
@@ -61,4 +64,4 @@ jobs:
6164
python -m pip install --upgrade pip
6265
python -m pip install --upgrade 'tox>=4.0'
6366
- name: Run tests
64-
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
67+
run: tox run -f py$(echo ${{ matrix.python-version }} | sed "s/^py//" | tr -d .)

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
default_language_version:
2-
python: python3.12
2+
python: python3.13
33
minimum_pre_commit_version: 2.4.0
44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.6.0
6+
rev: v5.0.0
77
hooks:
88
- id: check-yaml
99
- id: check-json
@@ -20,13 +20,13 @@ repos:
2020
- id: isort
2121

2222
- repo: https://github.com/psf/black
23-
rev: 24.4.2
23+
rev: 24.10.0
2424
hooks:
2525
- id: black
2626

2727
# Flake8 includes pyflakes, pycodestyle, mccabe, pydocstyle, bandit
2828
- repo: https://github.com/pycqa/flake8
29-
rev: 7.1.0
29+
rev: 7.1.1
3030
hooks:
3131
- id: flake8
3232
additional_dependencies: ["flake8-bandit"]

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ The format of this changelog is based on [Keep a Changelog](http://keepachangelo
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Added
9+
- Test on Django 5.0 and 5.1.
10+
- Test on Python 3.12 and 3.13 (for Django versions with support).
11+
- Testing with Pypy 3.10 on Django < 4.1 (see note about Pypy in 'Removed' section).
12+
13+
### Removed
14+
- Stop building a universal wheel.
15+
- Remove testing with Pypy for Django >= 4.1. There is a Pypy bug preventing Django from working:
16+
https://code.djangoproject.com/ticket/33889
817

918
## [2.0.0]
1019
### Changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def get_version():
6767
"Programming Language :: Python :: 3.10",
6868
"Programming Language :: Python :: 3.11",
6969
"Programming Language :: Python :: 3.12",
70+
"Programming Language :: Python :: 3.13",
7071
"Topic :: Utilities",
7172
],
7273
)

tox.ini

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
[tox]
22
envlist =
3-
{py36,py37,py38,py39,py310,pypy39}-django-3.2
4-
{py38,py39,py310,pypy39}-django-4.0
5-
{py38,py39,py310,py311,pypy39}-django-4.1
6-
{py38,py39,py310,py311,pypy39}-django-4.2
3+
{py36,py37,py38,py39,py310,pypy39,pypy310}-django-3.2
4+
{py38,py39,py310,pypy39,pypy310}-django-4.0
5+
{py38,py39,py310,py311}-django-4.1
6+
{py38,py39,py310,py311}-django-4.2
77
{py310,py311,py312}-django-5.0
8-
{py310,py311,py312}-django-main
8+
{py310,py311,py312,py313}-django-5.1
9+
{py310,py311,py312,py313}-django-main
910
skip_missing_interpreters = true
1011

1112
[testenv]
@@ -17,13 +18,16 @@ basepython =
1718
py310: python3.10
1819
py311: python3.11
1920
py312: python3.12
21+
py313: python3.13
2022
pypy39: pypy3.9
23+
pypy310: pypy3.10
2124
deps=
2225
django-3.2: Django>=3.2,<3.3
2326
django-4.0: Django>=4.0,<4.1
2427
django-4.1: Django>=4.1,<4.2
2528
django-4.2: Django>=4.2,<4.3
2629
django-5.0: Django>=5.0,<5.1
30+
django-5.1: Django>=5.1,<5.2
2731
django-main: https://github.com/django/django/archive/main.tar.gz
2832
backports.zoneinfo;python_version<"3.9"
2933
coverage
@@ -37,6 +41,6 @@ commands =
3741
[testenv:pre-commit]
3842
deps =
3943
pre-commit
40-
basepython = python3.12
44+
basepython = python3.13
4145
commands =
4246
pre-commit run --all-files --show-diff-on-failure

0 commit comments

Comments
 (0)