File: tox.ini

package info (click to toggle)
python-consul 1.5.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 480 kB
  • sloc: python: 2,842; makefile: 197
file content (26 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (2)
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
[tox]
envlist = lint,py39,py10,py11,py12,py13
toxworkdir = {env:TEMPDIR:/tmp/.tox}-{env:JOB_NAME:build}-{env:BUILD_NUMBER:current}/{env:BUILD_ID:unknown}

[testenv]
deps =
    -r tests-requirements.txt
commands =
    coverage erase
    pytest -nauto --reruns=3 tests
    coverage report

# Linter environment
[testenv:lint]
deps = -r tests-requirements.txt
commands =
    pre-commit run --all-files

# Bundle environment puts stuff in 'dist'.
[testenv:bundle]
skip_install = True
commands =
    # Creates a source archive in sdist/.
    {envpython} setup.py sdist --dist-dir=sdist --format=gztar
    # Puts binary archives in dist/.
    {envpython} setup.py bdist --dist-dir=dist --format=gztar