[tox]
args_are_paths = false
skip_missing_interpreters = true
envlist = 
    py3.9-flake8
    {py3.7,py3.8,py3.9}-django22
    {py3.7,py3.8,py3.9,py3.10}-django32
    {py3.8,py3.9,py3.10}-django40

[testenv]
usedevelop = true
pip_pre = true
commands = ./runtests.py
deps =
    django22: Django>=2.2,<2.3
    django32: Django>=3.2,<4.0
    django40: Django>=4.0,<5.0

    nose==1.3.7
    mock==4.0.3
    responses==0.15.0
    requests==2.26.0
basepython =
    py3.10: python3.10
    py3.9: python3.9
    py3.8: python3.8
    py3.7: python3.7

[testenv:py3.9-flake8]
deps = flake8 
commands = flake8 product_details tests

[flake8]
max-line-length=120

[tox]
args_are_paths = false
skip_missing_interpreters = true
envlist = 
    py3.9-flake8
    {py3.7,py3.8,py3.9}-django22
    {py3.7,py3.8,py3.9,py3.10}-django32
    {py3.8,py3.9,py3.10}-django40

[testenv]
usedevelop = true
pip_pre = true
commands = ./runtests.py
deps =
    django22: Django>=2.2,<2.3
    django32: Django>=3.2,<4.0
    django40: Django>=4.0,<4.1

    nose==1.3.7
    mock==4.0.3
    responses==0.15.0
    requests==2.26.0
basepython =
    py3.10: python3.10
    py3.9: python3.9
    py3.8: python3.8
    py3.7: python3.7

[testenv:py3.9-flake8]
deps = flake8 
commands = flake8 product_details tests

[flake8]
max-line-length=120

Make the Django 4.x constraint tighter, as 4.1 is due in a few months
Make the Django 4.x constraint tighter, as 4.1 is due in a few months
