mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Add support for Python 3.12 and Django 5.0
This commit is contained in:
parent
048b1f9e99
commit
0de5ab364c
3 changed files with 28 additions and 20 deletions
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
|
|
@ -13,30 +13,36 @@ jobs:
|
|||
fail-fast: false
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
python-version: ['3.8', '3.9', '3.10', '3.11']
|
||||
django-version: ['3.2', '4.1', '4.2']
|
||||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
||||
django-version: ['3.2', '4.2', '5.0']
|
||||
include:
|
||||
# Tox configuration for QA environment
|
||||
- python-version: '3.11'
|
||||
- python-version: '3.12'
|
||||
django-version: 'qa'
|
||||
# Django main
|
||||
- python-version: '3.11'
|
||||
- python-version: '3.12'
|
||||
django-version: 'main'
|
||||
experimental: true
|
||||
# PyPy 3.8
|
||||
- python-version: 'pypy-3.8'
|
||||
# PyPy 3.10
|
||||
- python-version: 'pypy-3.10'
|
||||
django-version: '3.2'
|
||||
experimental: true
|
||||
- python-version: 'pypy-3.8'
|
||||
django-version: '4.1'
|
||||
experimental: true
|
||||
- python-version: 'pypy-3.8'
|
||||
- python-version: 'pypy-3.10'
|
||||
django-version: '4.2'
|
||||
experimental: true
|
||||
- python-version: 'pypy-3.10'
|
||||
django-version: '5.0'
|
||||
experimental: true
|
||||
exclude:
|
||||
# Exclude Python 3.11 for Django 3.2 and Django 4.0
|
||||
- python-version: '3.11'
|
||||
django-version: '3.2'
|
||||
- python-version: '3.12'
|
||||
django-version: '3.2'
|
||||
- python-version: '3.8'
|
||||
django-version: '5.0'
|
||||
- python-version: '3.9'
|
||||
django-version: '5.0'
|
||||
|
||||
|
||||
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ DJANGO_SETTINGS_MODULE = "tests.settings"
|
|||
legacy_tox_ini = """
|
||||
[tox]
|
||||
envlist =
|
||||
py{38,39,310,py38}-dj32
|
||||
py{38,39,310,311,py38}-dj41
|
||||
py{38,39,310,311,py38}-dj42
|
||||
py{38,39,310,py310}-dj32
|
||||
py{38,39,310,311,py310}-dj42
|
||||
py{310,311,py310}-dj50
|
||||
py311-djmain
|
||||
py311-djqa
|
||||
|
||||
|
|
@ -22,7 +22,8 @@ python =
|
|||
3.9: py39
|
||||
3.10: py310
|
||||
3.11: py311
|
||||
pypy-3.8: pypy38
|
||||
3.12: py312
|
||||
pypy-3.10: pypy310
|
||||
|
||||
[gh-actions:env]
|
||||
DJANGO =
|
||||
|
|
@ -37,8 +38,8 @@ DJANGO =
|
|||
deps =
|
||||
-r requirements-test.txt
|
||||
dj32: django>=3.2,<3.3
|
||||
dj41: django>=4.1,<4.2
|
||||
dj42: django>=4.1,<4.2
|
||||
dj50: django>=5.0,<5.1
|
||||
djmain: https://github.com/django/django/archive/main.tar.gz
|
||||
usedevelop = true
|
||||
commands = pytest
|
||||
|
|
@ -47,13 +48,13 @@ setenv =
|
|||
# Django development version is allowed to fail the test matrix
|
||||
ignore_outcome =
|
||||
djmain: True
|
||||
pypy38: True
|
||||
pypy310: True
|
||||
ignore_errors =
|
||||
djmain: True
|
||||
pypy38: True
|
||||
pypy310: True
|
||||
|
||||
# QA runs type checks, linting, and code formatting checks
|
||||
[testenv:py311-djqa]
|
||||
[testenv:py312-djqa]
|
||||
deps = -r requirements-qa.txt
|
||||
commands =
|
||||
mypy axes
|
||||
|
|
|
|||
3
setup.py
3
setup.py
|
|
@ -48,8 +48,8 @@ setup(
|
|||
"Environment :: Plugins",
|
||||
"Framework :: Django",
|
||||
"Framework :: Django :: 3.2",
|
||||
"Framework :: Django :: 4.1",
|
||||
"Framework :: Django :: 4.2",
|
||||
"Framework :: Django :: 5.0",
|
||||
"Intended Audience :: Developers",
|
||||
"Intended Audience :: System Administrators",
|
||||
"License :: OSI Approved :: MIT License",
|
||||
|
|
@ -60,6 +60,7 @@ setup(
|
|||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: Implementation :: CPython",
|
||||
"Programming Language :: Python :: Implementation :: PyPy",
|
||||
"Topic :: Internet :: Log Analysis",
|
||||
|
|
|
|||
Loading…
Reference in a new issue