File: tox.ini

package info (click to toggle)
python-ghostscript 0.8.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 368 kB
  • sloc: python: 1,570; sh: 36; makefile: 11
file content (68 lines) | stat: -rw-r--r-- 1,159 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
[tox]
minversion=2.3.1
envlist = py,linters

[testenv]
deps =
    pytest!=3.0.5
commands =
    pytest {posargs}


#---- Documentation ----
[testenv:docs]
basepython = python3
deps =
    -rdocs/source/requirements.txt
commands =
    sphinx-build -E -W -c docs/source/ -b html docs/source/ docs/build/html
    sphinx-build -E -W -c docs/source/ -b man docs/source/ docs/build/man

[testenv:serve-docs]
basepython = python3
skip_install = true
changedir = docs/build/html
deps =
commands =
    python -m http.server {posargs}


#---- Linters ----
[testenv:readme]
basepython = python3
deps =
    build
    twine
commands =
    python -m build
    twine check dist/*

[testenv:linters]
basepython = python3
skip_install = true
deps =
    {[testenv:readme]deps}
commands =
    {[testenv:readme]commands}


#---- Release tooling ----
[testenv:build]
basepython = python3
skip_install = true
deps =
    build
    twine
commands =
    python -m build
    twine check dist/*

[testenv:release]
basepython = python3
skip_install = true
deps =
    {[testenv:build]deps}
    twine >= 1.5.0
commands =
    {[testenv:build]commands}
    twine upload --skip-existing dist/*