-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (69 loc) · 1.63 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
[build-system]
requires = ["setuptools>=61.2", "cffi"]
build-backend = "setuptools.build_meta"
[project]
name = "xgpu"
version = "0.9.0"
readme = "README.md"
requires-python = ">=3.7"
dependencies = ["cffi"]
[project.license]
file = "LICENSE"
[project.urls]
Homepage = "https://github.com/pyrym/xgpu"
[project.optional-dependencies]
# includes windowing libraries
gui = [
"glfw", "imgui"
]
[tool.setuptools]
include-package-data = true
packages = [
"xgpu",
"xgpu.extensions",
]
[tool.setuptools.package-data]
xgpu = [
"*.so",
"*.dll",
"*.pyd",
"*.dylib",
"extensions/assets/*"
]
[tool.ruff]
target-version = "py37"
respect-gitignore = false
line-length = 90
[tool.ruff.lint]
select = [
"ANN", # annotations
"B", # bugbear
"C", # comprehensions
"E", # style errors
"F", # flakes
"I", # import sorting
"RUF100", # meta
"U", # upgrade
"W", # style warnings
"YTT", # sys.version
]
# See https://github.com/charliermarsh/ruff#rules for error code definitions.
ignore = [
"F403", # unable to detect undefined names with import *
"E501", # Line too long ({width} > {limit} characters)
"ANN101",
"ANN102",
"ANN204",
"ANN401",
]
[tool.cibuildwheel]
# wgpu-native does not build with older manylinux
manylinux-x86_64-image = "manylinux_2_28"
before-build = "pip install cffi && cd xgpu && python _build_ext.py"
# Skip 32-bit builds, musl, etc
skip = ["*-win32", "*-manylinux_i686", "*musl*"]
# just make sure the library imports for now
test-command = 'python -c "import xgpu"'
[tool.cibuildwheel.macos]
archs = ["universal2"]
skip = ["cp36-*", "cp37-*", "pp*"]