File: tox.ini

package info (click to toggle)
python-authlib 1.6.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,024 kB
  • sloc: python: 27,284; makefile: 53; sh: 14
file content (40 lines) | stat: -rw-r--r-- 821 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[tox]
requires >= 4.22
isolated_build = True
envlist =
    py{39,310,311,312,313,py39,py310}
    py{39,310,311,312,313,py39,py310}-{clients,flask,django,jose}
    docs
    coverage

[testenv]
dependency_groups =
    dev
    jose: jose
    clients: clients
    flask: flask
    django: django

setenv =
    TESTPATH=tests/core
    jose: TESTPATH=tests/jose
    clients: TESTPATH=tests/clients
    flask: TESTPATH=tests/flask
    django: TESTPATH=tests/django
commands =
    coverage run --source=authlib -p -m pytest {posargs: {env:TESTPATH}}

[testenv:docs]
dependency_groups =
    clients
    docs
    flask
commands =
    sphinx-build --builder html --write-all --jobs auto --fail-on-warning docs build/_html

[testenv:coverage]
skip_install = true
commands =
    coverage combine
    coverage report
    coverage html