-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (119 loc) · 2.74 KB
/
pyproject.toml
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[project]
name = "iblqt"
description = "A collection of extensions to the Qt framework."
dependencies = [
"qtpy>=2.4.1",
"pandas>2.0",
"numpy<2.0.0",
"pyqtgraph>=0.13.7",
]
keywords = ["pyqt", "qt", "pyside", "qtpy"]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Florian Rau", email = "[email protected]"},
]
dynamic = ["version"]
[project.urls]
Homepage = "https://github.com/int-brain-lab/iblqt/"
Documentation = "https://int-brain-lab.github.io/iblqt/"
Repository = "https://github.com/int-brain-lab/iblqt.git"
Issues = "https://github.com/int-brain-lab/iblqt/issues"
Changelog = "https://github.com/int-brain-lab/iblqt/blob/main/CHANGELOG.md"
[tool.pdm]
distribution = true
#ignore_package_warnings = ["PySide*", "shiboken2"]
[tool.pdm.version]
source = "file"
path = "iblqt/__init__.py"
[tool.pdm.dev-dependencies]
dev = [
"iblqt[doc, lint, test, typing]",
]
doc = [
"sphinx>=7.0.0",
"myst-parser>=4.0.0",
"sphinx-autodoc-typehints>=2.3.0",
"sphinx-qt-documentation>=0.4.1",
"sphinx-rtd-theme>=2.0.0",
]
lint = [
"ruff>=0.6.2",
]
test = [
"pytest>=8.3.2",
"pytest-cov>=5.0.0",
"pytest-qt>=4.4.0",
"tox-pdm>=0.7.2",
"tox>=4.23.2",
]
typing = [
"mypy>=1.11.2",
"pandas-stubs>=2.2.2.240807",
]
pyqt5 = [
"PyQt5>=5.15.11",
"PyQt5-stubs>=5.15.6.0",
]
pyqt6 = [
"PyQt6>=6.7.1",
]
pyside2 = [
"PySide2>=5.15.2.1; python_version < '3.11'",
]
pyside6 = [
"PySide6>=6.8.1; python_version < '3.14'",
]
[tool.ruff]
include = ["pyproject.toml", "iblqt/**/*.py", "tests/**/*.py"]
[tool.ruff.format]
quote-style = "single"
[tool.ruff.lint]
extend-select = ["D"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D"] # pydocstyle
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
files = ["iblqt/**/*.py", "tests/**/*.py"]
[tool.pytest.ini_options]
addopts = "--cov=iblqt --cov-report=html --cov-report=xml"
minversion = "6.0"
testpaths = [ "tests" ]
[tool.coverage.run]
source_pkgs = [ "iblqt" ]
relative_files = true
[tool.tox]
legacy_tox_ini = """
[tox]
env_list = clean,py{310}-{pyqt5,pyqt6,pyside2,pyside6}
[testenv]
groups = test
commands = pytest tests/ --cov --cov-append
setenv=
pyqt5: PYTEST_QT_API=pyqt5
pyqt6: PYTEST_QT_API=pyqt6
pyside2: PYTEST_QT_API=pyside2
pyside6: PYTEST_QT_API=pyside6
QT_QPA_PLATFORM=offscreen
passenv=
DISPLAY
XAUTHORITY
COLUMNS
[testenv:clean]
skip_install = true
commands = coverage erase
[testenv:py{310}-pyqt5]
deps = PyQt5
[testenv:py{310}-pyqt6]
deps = PyQt6
[testenv:py{310}-pyside2]
platform = ^((?!darwin).)*$
deps = PySide2
[testenv:py{310}-pyside6]
deps = PySide6
"""