-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtox.ini
97 lines (95 loc) · 3.05 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
[tox]
envlist =
py{38,39,310,311,312,313}-{codestyle,test,docs}-{pyqt514,pyqt515,pyside514,pyside515,pyqt63,pyqt64,pyqt65,pyqt66,pyqt67,pyqt68,pyside66,pyside67,pyside68}-all-{dev,legacy}
requires = pip >= 18.0
setuptools >= 30.3.0
[testenv]
# Pass through the following environment variables which are needed for the CI
passenv =
DISPLAY
HOME
# Set to 1 to get more debug information from PyQt
setenv =
test: QT_DEBUG_PLUGINS = 0
dev: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
whitelist_externals =
find
rm
sed
make
changedir =
test: .tmp/{envname}
docs: doc
deps =
pyqt514: PyQt5==5.14.*
pyqt515: PyQt5==5.15.*
pyqt63: PyQt6==6.3.*
pyqt63: PyQt6-Qt6==6.3.*
pyqt64: PyQt6==6.4.*
pyqt64: PyQt6-Qt6==6.4.*
pyqt65: PyQt6-Qt6==6.5.*
pyqt65: PyQt6==6.5.*
pyqt66: PyQt6-Qt6==6.6.*
pyqt66: PyQt6==6.6.*
pyqt67: PyQt6-Qt6==6.7.*
pyqt67: PyQt6==6.7.*
pyqt68: PyQt6-Qt6==6.8.*
pyqt68: PyQt6==6.8.*
pyside514: PySide2==5.14.*
pyside515: PySide2==5.15.*
pyside63: PySide6==6.3.*
pyside64: PySide6==6.4.*
pyside65: PySide6==6.5.*
pyside66: PySide6==6.6.*
pyside67: PySide6==6.7.*
pyside68: PySide6==6.8.*
dev: numpy>=0.0.dev0
dev: scipy>=0.0.dev0
dev: astropy>=0.0.dev0
dev: git+https://github.com/glue-viz/glue
# Fix from https://github.com/pyenchant/pyenchant/pull/302 to find newer Homebrew installations
docs: pyenchant>=3.3.0rc1
lts: astropy==5.0.*
lts: matplotlib==3.5.*
# Pin numpy-lts until permanent solution for #2353/#2428
lts: numpy==1.24.*
legacy: numpy==1.17.*
legacy: matplotlib==3.2.*
legacy: scipy==1.1.*
legacy: pandas==1.2.*
legacy: echo==0.5.*
legacy: astropy==4.0.*
legacy: setuptools==30.3.*
legacy: qtpy==1.9.*
legacy: ipython==7.16.*
legacy: ipykernel==5.3.*
legacy: qtconsole==4.3.*
legacy: dill==0.2.*
legacy: xlrd==1.2.*
legacy: h5py==2.10.*
legacy: mpl-scatter-density==0.7.*
legacy: openpyxl==3.0.*
all: pytest-qt
extras =
test
all: all
docs: docs
allowlist_externals =
sh
commands =
test: pip freeze
test-!skipexitcode: pytest --pyargs glue_qt --cov glue_qt --cov-config={toxinidir}/setup.cfg {posargs}
# The skipexitcode mode consists of ignoring the exit code of the pytest
# command and just checking whether any errors or failures were present.
test-skipexitcode: sh -c 'pytest --pyargs glue_qt --cov glue_qt --cov-config={toxinidir}/setup.cfg --junit-xml={toxinidir}/{envname}.xml {posargs} || true'
test-skipexitcode: python {toxinidir}/.github/workflows/check_failures.py {toxinidir}/{envname}.xml
docs: sphinx-build -W -n -b html -d _build/doctrees . _build/html
[testenv:codestyle]
skipsdist = true
skip_install = true
description = Run all style and file checks with pre-commit
deps =
pre-commit
commands =
pre-commit install-hooks
pre-commit run --color always --all-files --show-diff-on-failure