django-cas-server/tox.ini
Kumi 06d428f465
Update to v2.0.1: Support Django 5.0, migrate IDs to BigAutoField
Upgraded application version to 2.0.1, expanding compatibility to include Django 5.0. Introduced a new database migration that switches identity fields in several models to BigAutoField, addressing potential ID overflow issues as the scale increases. Also streamlined the installation requirements, removing the upper bound constraint on Django for future flexibility, and updated the project URL to reflect the new repository location. Added Django 5.0 to the testing matrix to ensure continuous integration covers the latest Django version.

#1234 Update Django compatibility
#5678 Migrate ID fields to BigAutoField
2023-12-19 21:37:24 +01:00

238 lines
4.4 KiB
INI

[tox]
envlist=
flake8,
check_rst,
py3-django111,
py3-django22,
py3-django31,
py3-django32,
py3-django40,
py3-django41,
py3-django50,
##################
# generic config #
##################
[flake8]
max-line-length=100
exclude=migrations
[base]
deps =
-r{toxinidir}/requirements-dev.txt
[post_cmd]
commands=
find {toxworkdir} -name '*.pyc' -delete
mkdir -p {toxinidir}/tox_logs/
bash -c "mv {toxworkdir}/{envname}/log/* {toxinidir}/tox_logs/"
whitelist_externals=
find
bash
mkdir
[testenv]
commands=
py.test -rw {posargs:cas_server/tests/}
{[post_cmd]commands}
whitelist_externals={[post_cmd]whitelist_externals}
###################
# genercic checks #
###################
[testenv:flake8]
basepython=python3
deps=flake8
skip_install=True
commands=
flake8 {toxinidir}/cas_server
{[post_cmd]commands}
whitelist_externals={[post_cmd]whitelist_externals}
[testenv:check_rst]
basepython=python3
deps=
docutils
Pygments
skip_install=True
commands=
rst2html.py --strict {toxinidir}/README.rst /dev/null
rst2html.py --halt=warning {toxinidir}/CHANGELOG.rst /dev/null
{[post_cmd]commands}
whitelist_externals={[post_cmd]whitelist_externals}
[testenv:coverage]
basepython=python3
passenv=
COVERAGE_TOKEN
CI_BUILD_REF_NAME
TRAVIS_BRANCH
TRAVIS_PULL_REQUEST
deps=
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt
skip_install=True
commands=
py.test --cov=cas_server --cov-report term --cov-report html
{toxinidir}/.update_coverage "{toxinidir}" "django-cas-server"
{[post_cmd]commands}
whitelist_externals={[post_cmd]whitelist_externals}
####################
# Python 2 support #
####################
[testenv:py27-django111]
basepython=python2.7
deps =
Django>=1.11,<1.12
{[base]deps}
##################################
# Generic Python 3 for local use #
##################################
[testenv:py3-django111]
basepython=python3
deps =
Django>=1.11,<1.12
{[base]deps}
[testenv:py3-django22]
basepython=python3
deps =
Django>=2.2,<2.3
{[base]deps}
[testenv:py3-django31]
basepython=python3
deps =
Django>=3.1,<3.2
{[base]deps}
[testenv:py3-django32]
basepython=python3
deps =
Django>=3.2,<3.3
{[base]deps}
[testenv:py3-django40]
basepython=python3
deps =
Django>=4.0,<4.1
{[base]deps}
[testenv:py3-django41]
basepython=python3
deps =
Django>=4.1,<4.2
{[base]deps}
[testenv:py3-django50]
basepython=python3
deps =
Django>=5.0,<5.1
{[base]deps}
#########################
# Debian strech support #
#########################
[testenv:py35-django111]
basepython=python3.5
deps =
Django>=1.11,<1.12
{[base]deps}
####################################
# Ubuntu bionic and EPEL 7 support #
####################################
[testenv:py36-django111]
basepython=python3.6
deps =
Django>=1.11,<1.12
{[base]deps}
##################
# RHEL 8 support #
##################
[testenv:py36-django22]
basepython=python3.6
deps =
Django>=2.2,<3.0
{[base]deps}
#########################
# Debian buster support #
#########################
[testenv:py37-django111]
basepython=python3.7
deps =
Django>=1.11,<1.12
{[base]deps}
##########################################
# Ubuntu focal and Ubuntu groovy support #
##########################################
[testenv:py38-django22]
basepython=python3.8
deps =
Django>=2.2,<3.0
{[base]deps}
#########################################################
# Debian bullseye and Ubuntu hirsute and impish support #
#########################################################
[testenv:py39-django22]
basepython=python3.9
deps =
Django>=2.2,<3.0
{[base]deps}
####################################
# Ubuntu jammy and kinetic support #
####################################
[testenv:py310-django32]
basepython=python3.10
deps =
Django>=3.2,<3.3
{[base]deps}
#######################################
# Django additional supported version #
#######################################
[testenv:py39-django31]
basepython=python3.9
deps =
Django>=3.1,<3.2
{[base]deps}
[testenv:py39-django32]
basepython=python3.9
deps =
Django>=3.2,<3.3
{[base]deps}
[testenv:py310-django40]
basepython=python3.10
deps =
Django>=4.0,<4.1
{[base]deps}
[testenv:py310-django41]
basepython=python3.10
deps =
Django>=4.1,<4.2
{[base]deps}