File: tox.ini

package info (click to toggle)
python-pytest-click 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: python: 111; sh: 6; makefile: 2
file content (30 lines) | stat: -rw-r--r-- 664 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
[tox]
isolated_build = true
envlist = py{37,38,39,310,py3}, coverage-report

[testenv]
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/pytest_click
    LC_ALL=en_US.utf-8
    LANG=en_US.utf-8
deps =
    pytest
    coverage
    click
commands =
  coverage run --source=pytest_click -m pytest {posargs:test}

[testenv:coverage-report]
description = Report coverage over all measured test runs.
basepython = python3.8
deps = coverage
skip_install = true
depends = py{37,38,39,310}
commands =
    coverage combine
    coverage report
    coverage xml -i {posargs:}

[testenv:build]
deps = pep517
commands = python -m pep517.build --source . --binary --out-dir dist/