-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
70 lines (59 loc) · 1.7 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
[build-system]
requires = ["scikit-build-core",
"setuptools_scm"
]
build-backend = "scikit_build_core.build"
[project]
name = "streampu"
authors = [{name = "Romain Tajan", email= "[email protected]"}]
requires-python = ">=3.8"
description = "Python wrapper for StreamPU library."
license = {file = "LICENSE"}
readme = "README.md"
dependencies = [
"numpy",
"multipledispatch",
"pytest>=6.0"
]
dynamic = ["version"]
[project.optional-dependencies]
tests = [
"pytest>=6.0",
]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
addopts = ["--import-mode=importlib"]
[tool.cibuildwheel]
manylinux-x86_64-image = "manylinux2014"
before-all = "uname -a"
build-verbosity = 3
test-requires = "pytest"
test-command = "pytest tests/ --junitxml=./streampu/report.xml"
skip = ["*-musllinux*"]
[tool.cibuildwheel.macos]
archs = ["x86_64", "universal2", "arm64"]
repair-wheel-command = "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
# On an Linux Intel runner with qemu installed, build Intel and ARM wheels
[tool.cibuildwheel.linux]
archs = ["x86_64", "aarch64"]
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel}"
[tool.scikit-build]
build-dir = "build"
wheel.packages = ["streampu"]
wheel.license-files = ["LICENSE"]
wheel.install-dir = "streampu"
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["streampu/_version.py"]
[tool.setuptools_scm] # Section required
write_to = "streampu/_version.py"
version_scheme = "post-release"
[[tool.scikit-build.generate]]
path = "streampu/_version.py"
template = '''
version = "${version}"
'''
[tool.isort]
profile = "black"
[tool.black]
line-length = 120