-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (69 loc) · 1.62 KB
/
pyproject.toml
File metadata and controls
77 lines (69 loc) · 1.62 KB
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
[build-system]
requires = ["scikit-build-core >= 0.11"]
build-backend = "scikit_build_core.build"
[project]
name = "QtBridge"
version = "0.0.1"
requires-python = ">=3.9, <=3.15"
description = "Python package providing the backend Python API to interact with QML frontend"
authors = [
{ name = "QtBridge Python Team", email = "qtbridge@qt.io" },
]
license = "LicenseRef-Commercial OR LGPL-3.0-only"
dependencies = [
"shiboken6 > 6.10",
"PySide6-Essentials > 6.10",
"numpy"
]
[tool.scikit-build]
cmake.version = ">=3.18"
cmake.source-dir = "."
build-dir = "build/{wheel_tag}"
build.verbose = true
wheel.py-api = "cp310" # align with PySide6 and shiboken6
wheel.cmake = true
build.requires = [
"shiboken6>=6.11,<6.12",
"PySide6-Essentials>=6.11,<6.12",
]
wheel.exclude = [
"*.cpp",
"*.h",
"CMakeLists.txt",
"*.cmake",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-qt",
"pytest-forked>=1.5; sys_platform == 'linux'",
"mypy",
"black",
"flake8"
]
# this enables pip install -e ".[table]"
table = [
"polars"
]
docs = [
"sphinx>=7.3,<9", # getting rid of warning
"furo>=2025.12.19",
"myst-parser>=3.0",
"sphinx-copybutton>=0.5",
"sphinx-autodoc-typehints>=2.0",
]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
# E501 (line-too-long) is in E5xx which ruff excludes by default
extend-select = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --tb=short"
qt_api = "pyside6"
markers = [
"forked: run test in a forked subprocess (no-op on macOS)",
]
[tool.scikit-build.cmake.define]
QT_NO_PRIVATE_MODULE_WARNING = "ON"