-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
102 lines (97 loc) · 2.59 KB
/
tox.ini
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[tox]
minversion = 1.8
envlist =
py310,
py311,
py312,
py313,
packaging
isolated_build = True
[testenv]
# This is required in order to get UTF-8 output inside of the subprocesses
# that our tests use.
setenv = LC_CTYPE = en_US.UTF-8
# Pass Display down to have it for the tests available
passenv = DISPLAY,TRAVIS,TRAVIS_JOB_ID,TRAVIS_BRANCH,LDFLAGS,CFLAGS
allowlist_externals=convert
deps =
pytest >= 6.2.1, < 8.0.0
pytest-cov <= 3.0.0
pytest-asyncio
pytest-rerunfailures
pytest-lazy-fixture
setuptools >= 40.5.0
xcffib >= 0.10.1
mypy
bowler
# CI has libxcommon-dev 1.4.0 so we need to match here
xkbcommon < 1.1
pywayland == 0.4.17
dbus-fast
PyGObject
requests
pint
stravalib <= 1.1.0
iwlib
psutil
pulsectl-asyncio
xcffib >= 1.4.0
cairocffi >= 1.6.0
wheel
# pywayland has to be installed before pywlroots
commands =
pip install --no-build-isolation pywlroots==0.17.0
pip install --no-build-isolation --config-setting backend=wayland git+https://github.com/qtile/qtile.git
; pip install -e git+https://github.com/qtile/qtile.git#egg=qtile
pip install .
python3 -m pytest --cov qtile_extras --cov-report term-missing --cov-report=xml --backend=x11 --backend=wayland -k "not test_decoration_output" {posargs}
[testenv:packaging]
deps =
check-manifest
twine
build
commands =
check-manifest
python -m build . --sdist
twine check dist/*
[testenv:decorations]
# This is required in order to get UTF-8 output inside of the subprocesses
# that our tests use.
setenv = LC_CTYPE = en_US.UTF-8
# Pass Display down to have it for the tests available
passenv = DISPLAY,TRAVIS,TRAVIS_JOB_ID,TRAVIS_BRANCH,LDFLAGS,CFLAGS
allowlist_externals =
convert
mkdir
rm
deps =
pytest >= 6.2.1, < 8.0.0
pytest-asyncio
pytest-rerunfailures
pytest-lazy-fixture
setuptools >= 40.5.0
xcffib >= 0.10.1
# CI has libxkbcommon 1.4.0
xkbcommon < 1.1
pywayland == 0.4.17
dbus_fast
requests
pint
stravalib <= 1.1.0
xcffib >= 1.4.0
cairocffi >= 1.6.0
wheel
commands =
pip install --no-build-isolation pywlroots==0.17.0
pip install --no-build-isolation --config-setting backend=wayland git+https://github.com/qtile/qtile.git
pip install .
# Generate images
rm -rf {toxinidir}/decoration_images || true
mkdir {toxinidir}/decoration_images
pytest --backend=x11 --backend=wayland -k "test_decoration_output" --generate-ci {posargs}
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313, packaging