-
Notifications
You must be signed in to change notification settings - Fork 274
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (84 loc) · 2.69 KB
/
pyproject.toml
File metadata and controls
97 lines (84 loc) · 2.69 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# SPDX-FileCopyrightText: Copyright (c) 2023-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
[build-system]
requires = [
"setuptools>=80.0.0",
"setuptools_scm[simple]>=8",
"cython>=3.2,<3.3",
"pyclibrary>=0.1.7",
"cuda-pathfinder>=1.5",
]
build-backend = "build_hooks"
backend-path = ["."]
[project]
name = "cuda-bindings"
description = "Python bindings for CUDA"
authors = [
{ name = "NVIDIA Corporation", email = "[email protected]" },
]
license = "LicenseRef-NVIDIA-SOFTWARE-LICENSE"
requires-python = ">=3.10"
classifiers = [
"Intended Audience :: Developers",
"Topic :: Database",
"Topic :: Scientific/Engineering",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Environment :: GPU :: NVIDIA CUDA",
]
dynamic = ["version", "readme"]
dependencies = ["cuda-pathfinder >=1.5"]
[project.optional-dependencies]
all = [
"cuda-toolkit[nvrtc,nvjitlink,nvvm,nvfatbin]==13.*",
"cuda-toolkit[cufile]==13.*; sys_platform == 'linux'",
]
[dependency-groups]
test = [
"cython>=3.2,<3.3",
"setuptools>=77.0.0",
"numpy>=1.21.1",
"pytest>=6.2.4",
"pytest-benchmark>=3.4.1",
"pytest-repeat",
"pytest-randomly",
"pyglet>=2.1.9",
]
[project.urls]
Repository = "https://github.com/NVIDIA/cuda-python"
Documentation = "https://nvidia.github.io/cuda-python/"
[tool.setuptools.packages.find]
include = ["cuda*"]
[tool.setuptools]
include-package-data = false
[tool.setuptools.package-data]
"*" = ["*.pxd", "*.pxi"]
"cuda.bindings._bindings" = ["*.h"]
"cuda.bindings._lib" = ["*.h"]
[tool.setuptools.dynamic]
readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
[tool.cibuildwheel]
skip = "*-musllinux_*"
enable = "cpython-freethreading"
build-verbosity = 1
[tool.cibuildwheel.linux]
archs = "native"
[tool.cibuildwheel.windows]
archs = "AMD64"
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
[tool.pytest.ini_options]
required_plugins = "pytest-benchmark"
addopts = "--benchmark-disable --showlocals"
norecursedirs = ["tests/cython", "examples"]
xfail_strict = true
[tool.setuptools_scm]
root = ".."
version_file = "cuda/bindings/_version.py"
# Preserve a/b pre-release suffixes, but intentionally strip rc suffixes.
tag_regex = "^(?P<version>v\\d+\\.\\d+\\.\\d+(?:[ab]\\d+)?)"
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"]