Skip to content

Commit

Permalink
Fix make, tox, update requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Dec 22, 2023
1 parent 23aa009 commit dca5570
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r requirements-test.txt
-r docs/requirements.txt
django==5.0
3 changes: 3 additions & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tox==4.11.4
coverage==7.3.4
ruff==0.1.9
50 changes: 50 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[tox]
args_are_paths = false
envlist =
py38-{3.2,4.1,4.2},
py39-{3.2,4.1,4.2},
py310-{3.2,4.1,4.2,5.0,main},
py311-{4.1,4.2,5.0,main},
py312-{4.2,5.0,main},
docs,
lint,

[testenv]
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
usedevelop = true
pip_pre = true
setenv =
PYTHONPATH={toxinidir}
PYTHONWARNINGS=all
commands =
python manage.py test {posargs}
deps =
3.2: Django==3.2.*
4.0: Django==4.0.*
4.1: Django==4.1.*
4.2: Django==4.2.*
5.0: Django==5.0.*
main: https://github.com/django/django/archive/main.tar.gz
-r{toxinidir}/requirements-test.txt

[testenv:ruff]
basepython = python3.11
allowlist_externals = ruff
deps = ruff
commands = ruff .

[testenv:docs]
basepython = python3.11
allowlist_externals = make
setenv =
PYTHONWARNINGS=default
commands =
make docs
deps =
-r{toxinidir}/docs/requirements.txt

0 comments on commit dca5570

Please sign in to comment.