Update Django and Python version support

This commit is contained in:
Aleksi Häkli 2022-01-08 19:51:59 +02:00
parent e7ce4ee378
commit 69c7a02183
4 changed files with 18 additions and 17 deletions

View file

@ -8,9 +8,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', 'pypy-3.8']
django-version: ['3.2', '4.0']
python-version: ['3.7', '3.8', '3.9', '3.10', 'pypy-3.8']
django-version: ['3.2', '4.0', 'main']
include:
# Tox configuration for QA environment
- python-version: '3.8'
@ -29,11 +30,12 @@ jobs:
django-version: 'main'
experimental: true
exclude:
# Exclude Django 4.0 for Python 3.6 and 3.7
- python-version: '3.6'
django-version: '4.0'
# Exclude Django 4.0 for Python 3.7
- python-version: '3.7'
django-version: '4.0'
# Exclude Django 2.2 for Python 3.10
- python-version: '3.10'
django-version: '2.2'
steps:
- uses: actions/checkout@v2

View file

@ -1 +1 @@
axes_reset_username.py
axes_reset_username.py

View file

@ -10,13 +10,13 @@ DJANGO_SETTINGS_MODULE = "tests.settings"
legacy_tox_ini = """
[tox]
envlist =
py{36,37,38,39,310}-dj32
py{38,39,310}-dj{4.0, main}
py38-djqa
py{37,38,39,310,py3}-dj32
py{38,39,310,py3}-dj40
py{38,39,310}-djmain
py310-djqa
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
@ -41,17 +41,17 @@ usedevelop = true
commands = pytest
setenv =
PYTHONDONTWRITEBYTECODE=1
# Django development version is allowed to fail the test matrix
[testenv:py{38,39,py3}-djmain]
ignore_errors = true
ignore_outcome = true
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
# QA runs type checks, linting, and code formatting checks
[testenv:py38-djqa]
[testenv:py310-djqa]
deps = -r requirements-qa.txt
commands =
mypy axes
prospector
black -t py36 --check --diff axes
black -t py38 --check --diff axes
"""

View file

@ -52,7 +52,6 @@ setup(
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",