Skip to content

Commit

Permalink
Update Python support matrix
Browse files Browse the repository at this point in the history
Deprecate support for Python 3.8
Add support for Python 3.13
  • Loading branch information
aleksihakli committed Dec 2, 2024
1 parent 4c3a36c commit c2d4e93
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.9

- name: Install dependencies
run: |
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,21 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
django-version: ['4.2', '5.0', '5.1']
include:
# Tox configuration for QA environment
- python-version: '3.12'
- python-version: '3.13'
django-version: 'qa'
# Django main
- python-version: '3.12'
- python-version: '3.13'
django-version: 'main'
experimental: true
exclude:
- python-version: '3.8'
django-version: '5.0'
- python-version: '3.9'
django-version: '5.0'
- python-version: '3.8'
django-version: '5.1'
- python-version: '3.13'
django-version: '5.0'
- python-version: '3.9'
django-version: '5.1'

Expand Down
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ Changes
=======


7.0.1 (2024-12-02)
------------------

- Add Python 3.13 support.
[aleksihakli]
- Deprecate Python 3.8 support.
[aleksihakli]


7.0.0 (2024-10-02)
------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/1_requirements.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Requirements
============

Axes requires a supported Django version and runs on Python versions 3.8 and above.
Axes requires a supported Django version and runs on Python versions 3.9 and above.

Refer to the project source code repository in
`GitHub <https://github.com/jazzband/django-axes/>`_ and see the
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.8
python_version = 3.9
ignore_missing_imports = True

[mypy-axes.migrations.*]
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ DJANGO_SETTINGS_MODULE = "tests.settings"
legacy_tox_ini = """
[tox]
envlist =
py{38,39,310,311,312}-dj42
py{39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312}-dj51
py{310,311,312,313}-dj51
py311-djmain
py311-djqa
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[gh-actions:env]
DJANGO =
Expand All @@ -36,9 +36,9 @@ DJANGO =
[testenv]
deps =
-r requirements-test.txt
dj32: django>=3.2,<3.3
dj42: django>=4.1,<4.2
dj50: django>=5.0,<5.1
dj51: django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = true
commands = pytest
Expand All @@ -51,10 +51,10 @@ ignore_errors =
djmain: True
# QA runs type checks, linting, and code formatting checks
[testenv:py312-djqa]
[testenv:py313-djqa]
deps = -r requirements-qa.txt
commands =
mypy axes
prospector
black -t py38 --check --diff axes
black -t py39 --check --diff axes
"""
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: Log Analysis",
"Topic :: Security",
Expand Down

0 comments on commit c2d4e93

Please sign in to comment.