Support Python 3.13 and Django 5.1.

This commit is contained in:
David Wobrock authored and David Wobrock committed 2025-03-02 18:11:07 +01:00
1 parent c9d5bce6d1
commit 816dd65e3c
4 files changed
+18 -10

No files matched your search

+7 -7
View File
@@ -28,7 +28,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12'] python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
name: Build with Python ${{ matrix.python-version }} name: Build with Python ${{ matrix.python-version }}
steps: steps:
@@ -52,12 +52,12 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python 3.11 - name: Set up Python 3.12
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.12'
- name: Install dependencies - name: Install dependencies
run: python -m pip install tox==4.6.3 run: python -m pip install tox==4.24.1
- name: Lint with tox - name: Lint with tox
run: tox run: tox
env: env:
@@ -89,12 +89,12 @@ jobs:
# Fetch all tags and branches because tests rely on it # Fetch all tags and branches because tests rely on it
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Set up Python 3.11 - name: Set up Python 3.12
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with:
python-version: '3.11' python-version: '3.12'
- name: Install dependencies and coverage - name: Install dependencies and coverage
run: python -m pip install tox==4.6.3 run: python -m pip install tox==4.24.1
- name: Test with tox with coverage - name: Test with tox with coverage
run: tox run: tox
env: env:
+4 -1
View File
@@ -1,6 +1,9 @@
## 5.x.y ## 5.x.y
- ... Miscellaneous:
- Add support for Python 3.13
- Add support for Django 5.1
## 5.1.0 ## 5.1.0
+3 -1
View File
@@ -10,7 +10,7 @@ authors = [
{ name="3YOURMIND GmbH", email="fb@3yourmind.com" }, { name="3YOURMIND GmbH", email="fb@3yourmind.com" },
] ]
maintainers = [{name = "David Wobrock", email = "david.wobrock@gmail.com"}] maintainers = [{name = "David Wobrock", email = "david.wobrock@gmail.com"}]
license = {text = "Apache License 2.0"} license = {text = "Apache-2.0"}
readme = "README.md" readme = "README.md"
requires-python = ">=3.7" requires-python = ">=3.7"
dependencies = [ dependencies = [
@@ -28,6 +28,7 @@ classifiers = [
"Framework :: Django :: 4.1", "Framework :: Django :: 4.1",
"Framework :: Django :: 4.2", "Framework :: Django :: 4.2",
"Framework :: Django :: 5.0", "Framework :: Django :: 5.0",
"Framework :: Django :: 5.1",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.7",
@@ -36,6 +37,7 @@ classifiers = [
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
] ]
keywords = [ keywords = [
"django", "django",
+4 -1
View File
@@ -5,6 +5,7 @@ envlist =
py{38,39,310,311,312}-django41 py{38,39,310,311,312}-django41
py{38,39,310,311,312}-django42 py{38,39,310,311,312}-django42
py{310,311,312}-django50 py{310,311,312}-django50
py{310,311,312,313}-django51
lint lint
coverage coverage
@@ -16,6 +17,7 @@ python =
3.10: py310 3.10: py310
3.11: py311 3.11: py311
3.12: py312 3.12: py312
3.13: py313
[testenv] [testenv]
allowlist_externals = ./manage.py allowlist_externals = ./manage.py
@@ -29,9 +31,10 @@ deps =
django41: django>=4.1,<4.2 django41: django>=4.1,<4.2
django42: django>=4.2,<4.3 django42: django>=4.2,<4.3
django50: django>=5.0,<5.1 django50: django>=5.0,<5.1
django51: django>=5.1,<5.2
[testenv:lint] [testenv:lint]
basepython = python3.11 basepython = python3.12
deps = pre-commit deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure commands = pre-commit run --all-files --show-diff-on-failure