From e0335ac4a7e32f1da6fd2c73694efea9a51c2d45 Mon Sep 17 00:00:00 2001 From: Oussama Jarrousse Date: Wed, 27 Dec 2023 11:54:23 +0100 Subject: [PATCH] added django3, 4, 5 to the tox environments list --- README.md | 4 ++-- tox.ini | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0c5002..90072b7 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ A Django app that handles MFA, it supports TOTP, U2F, FIDO2 U2F (Web Authn), Ema [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/django-mfa2.svg)](https://anaconda.org/conda-forge/django-mfa2) [![Conda Version](https://img.shields.io/conda/vn/conda-forge/django-mfa2.svg)](https://anaconda.org/conda-forge/django-mfa2) + Web Authencation API (WebAuthn) is state-of-the art techology that is expected to replace passwords. ![Andriod Fingerprint](https://cdn-images-1.medium.com/max/800/1*1FWkRE8D7NTA2Kn1DrPjPA.png) @@ -205,8 +206,7 @@ In the root folder, `pytest.ini` contains configurations for running the tests, To run the tests, install the packages in requirements and requirements_testing.txt: ```bash -pip install -r requirements.txt -pip install -r requirements_testing.txt +pip install -r requirements.txt -r requirements_testing.txt ``` then simply run pytest diff --git a/tox.ini b/tox.ini index 23946b5..ab6f7cd 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,10 @@ # Choose your Python versions. They have to be available # on the system the tests are run on. # comma separated -envlist = py39, py310, py311 +envlist = + python{3.6,3.7,3.8,3.9}-django3 + python{3.8,3.9,3.10,3.11}-django4 + python{3.8,3.9,3.10,3.11}-django5 # Tell tox to not require a setup.py file ;skipsdist = True @@ -34,6 +37,7 @@ isolated_build = True deps = -rrequirements.txt + -rrequirements_testing.txt # https://tox.wiki/en/latest/example/basic.html#ignoring-a-command-exit-code commands =