File: tox.ini

package info (click to toggle)
python-openstep-plist 0.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 200 kB
  • sloc: python: 768; sh: 14; makefile: 4
file content (73 lines) | stat: -rw-r--r-- 1,653 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[tox]
project_name = openstep_plist
envlist = py{38,39,310,311,312}-cov,coverage
minversion = 3.4.0
isolated_build = true
skip_missing_interpreters = true

[testenv]
skip_install =
    cov: true
    nocov: false
deps =
    cython >= 0.28.5
    pytest
    pytest-randomly
    cov: coverage
changedir= {toxinidir}
setenv =
    cov: PYTHONPATH=src
    cov: CYTHON_ANNOTATE=1
    cov: CYTHON_TRACE=1
commands =
    cov: python setup.py build_ext -i
    nocov: pytest {posargs}
    cov: coverage run --parallel -m pytest {posargs}

[testenv:coverage]
skip_install = true
deps =
    cython
    coverage
    diff_cover
setenv =
    PYTHONPATH=src
passenv =
    DIFF_AGAINST
changedir = {toxinidir}
commands =
    coverage erase
    coverage combine
    coverage report
    coverage xml -o {toxworkdir}/coverage.xml
    coverage html
    diff-cover --compare-branch {env:DIFF_AGAINST:origin/master} {toxworkdir}/coverage.xml

[testenv:codecov]
skip_install = true
deps =
    {[testenv:coverage]deps}
    codecov
setenv = {[testenv:coverage]setenv}
passenv = TOXENV CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* CODECOV_*
changedir = {toxinidir}
commands =
    coverage combine
    codecov --env TOXENV

[testenv:wheel]
description = build wheel package for upload to PyPI
skip_install = true
deps =
    setuptools >= 36.4.0
    pip >= 18.0
    wheel >= 0.31.0
changedir = {toxinidir}
commands =
    python -c 'import os, glob; whl = glob.glob(".tox/dist/*.whl"); whl and os.remove(whl[0])'
    pip wheel --pre --no-deps --no-cache-dir --wheel-dir {distdir} --find-links {distdir} --no-binary {[tox]project_name} {[tox]project_name}

[pytest]
addopts =
    -v
    -r a