File: tox.ini

package info (click to toggle)
napari-plugin-manager 0.1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,484 kB
  • sloc: python: 3,360; makefile: 46
file content (57 lines) | stat: -rw-r--r-- 1,401 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
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = pip-py{310,311,312,313}-{PyQt5,PyQt6,PySide6}-napari_{latest,repo}, conda-{py310,py311,py312}-{PyQt5,PySide2,PySide6}-napari_{latest,repo}
toxworkdir=/tmp/.tox
isolated_build = true

[gh-actions]
python =
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313

[gh-actions:env]
NAPARI =
    latest: napari_latest
    repo: napari_repo
TOOL =
    pip: pip
    conda: conda

[testenv]
passenv =
    QT_API
    CI
    GITHUB_ACTIONS
    AZURE_PIPELINES
    DISPLAY
    XAUTHORITY
    NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
    PYVISTA_OFF_SCREEN

setenv =
    TOX_ENV_NAME = {envname}

deps =
    napari_repo: git+https://github.com/napari/napari.git
extras = testing
commands = coverage run --parallel-mode -m pytest -v --color=yes

# Conditional PIP dependencies based on environment variables
[testenv:pip-{py310,py311,py312,py313}-{PyQt5,PyQt6,PySide6}-napari_{latest,repo}]
deps =
    PyQt5: PyQt5
    PyQt5: PyQt5-sip
    PyQt6: PyQt6
    PySide6: PySide6 > 6.7
    napari_latest: napari
    napari_repo: git+https://github.com/napari/napari.git

# Conditional dependencies for CONDA
[testenv:conda-{py310,py311,py312}-{PyQt5,PySide2,PySide6}-napari_{latest,repo}]
conda_deps =
    {py310,py311,py312}-PyQt5: pyqt
    {py310,py311}-PySide2: pyside2
    PySide6: pyside6 > 6.7
    napari_latest: napari