-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (53 loc) · 1.59 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
# ===== Project info
[project]
dynamic = ["version"]
name = "rendercanvas"
description = "One canvas API, multiple backends"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "Almar Klein" }, { name = "Korijn van Golen" }]
keywords = [
"canvas",
"rendering",
"graphics",
"wgpu",
"qt",
"wx",
"glfw",
"jupyter",
]
requires-python = ">= 3.9"
dependencies = [] # no dependencies!
[project.optional-dependencies]
# For users
jupyter = ["jupyter_rfb>=0.4.2"]
glfw = ["glfw>=1.9"]
# For devs / ci
lint = ["ruff", "pre-commit"]
examples = ["numpy", "wgpu", "glfw", "pyside6"]
docs = ["sphinx>7.2", "sphinx_rtd_theme", "sphinx-gallery"]
tests = ["pytest", "numpy", "wgpu", "glfw"]
dev = ["rendercanvas[lint,tests,examples,docs]"]
[project.entry-points."pyinstaller40"]
hook-dirs = "rendercanvas.__pyinstaller:get_hook_dirs"
tests = "rendercanvas.__pyinstaller:get_test_dirs"
[project.urls]
Homepage = "https://github.com/pygfx/rendercanvas"
Documentation = "https://rendercanvas.readthedocs.io"
Repository = "https://github.com/pygfx/rendercanvas"
# ===== Building
# Flit is great solution for simple pure-Python projects.
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
# ===== Tooling
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = ["F", "E", "W", "N", "B", "RUF"]
ignore = [
"E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def`
"B007", # Loop control variable `x` not used within loop body
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
]