Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
202 lines (185 loc) · 6.04 KB
/
Copy pathpyproject.toml
File metadata and controls
202 lines (185 loc) · 6.04 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[build-system]
build-backend = "setuptools.build_meta"
requires = [
# TODO: keep in sync with [project.dependencies]
"wheel>=0.43",
"build>=1.1",
"setuptools>=63.0.0",
"scikit-build>=0.17.0,<1.0",
"ninja>=1.11.1; platform_system!='Windows'",
"cmake>=3.29.0",
"cython>=3.1.0",
"numpy >=1.26.0",
# WARNING: check with doc how to upgrade
"versioneer[toml]==0.29"
]
[project]
authors = [{ name = "Intel Corporation", email = "scripting@intel.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: C",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Free Threading :: 2 - Beta",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: POSIX",
"Operating System :: Unix"
]
dependencies = [
# TODO: keep in sync with [build-system.requires] and /conda-recipe/meta.yaml
# This restrictions are for dependabot, actual restrictions are set with
# conda.
# TODO: populate it during build process
# TODO: do we have to set sycl runtime dependencies here
# "dpcpp-cpp-rt>=0.59.0",
# "intel-cmplr-lib-rt>=0.59.0"
"numpy>=2.0.0"
]
description = "A lightweight Python wrapper for a subset of SYCL."
dynamic = ["version"]
keywords = [
"dpctl",
"intel",
"oneapi",
"dpcpp"
]
license = "Apache-2.0"
name = "dpctl"
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.10"
[project.optional-dependencies]
benchmark = ["asv>=0.6", "numpy"]
coverage = ["Cython>=3.1.0", "pytest", "coverage", "tomli"]
docs = [
"Cython>=3.1.0",
"graphviz",
"pydot",
"furo",
"sphinx",
"sphinx-copybutton",
"sphinx-design",
"sphinxcontrib-googleanalytics",
"sphinxcontrib-jsmath",
"sphinxcontrib-programoutput",
"sphinxcontrib-spelling"
]
[project.urls]
Changelog = "https://github.com/IntelPython/dpctl/blob/master/CHANGELOG.md"
Documentation = "https://intelpython.github.io/dpctl/"
Homepage = "https://github.com/IntelPython/dpctl"
Issues = "https://github.com/IntelPython/dpctl/issues"
Repository = "https://github.com/IntelPython/dpctl.git"
[tool.black]
exclude = "dpctl/_version.py"
line-length = 80
[tool.cibuildwheel]
build-verbosity = 1
[tool.cibuildwheel.linux]
# Intel's icx, as the conda recipe builds with, from Intel's repository, and the Level Zero headers
before-all = "python {project}/ci/install_icx.py /opt/icx /opt/level-zero"
# The SYCL and icx runtime libraries come from wheels at run time, see [tool.gh-ci];
# libsycl matches any soname, as the wheels accept any newer 2026 runtime
repair-wheel-command = "auditwheel repair --exclude 'libsycl.so.*' --exclude libintlc.so.5 --exclude libimf.so --exclude libsvml.so --exclude libirng.so -w {dest_dir} {wheel}"
[tool.cibuildwheel.linux.environment]
# ci/install_icx.py links icx and clones the Level Zero headers here
CC = "/opt/icx/bin/icx"
CMAKE_ARGS = "-DDPCTL_LEVEL_ZERO_INCLUDE_DIR=/opt/level-zero/include -DDPCTL_WITH_REDIST=ON"
CMAKE_GENERATOR = "Ninja"
CXX = "/opt/icx/bin/icpx"
# As conda-forge links: full RELRO, also for libDPCTLSyclInterface, only the libraries
# a module uses, and RPATH over LD_LIBRARY_PATH
LDFLAGS = "-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -Wl,--disable-new-dtags -Wl,--gc-sections"
[tool.cibuildwheel.windows]
# icx from conda-forge, and the Level Zero headers
before-all = "python {project}/ci/install_icx.py C:/icx C:/level-zero"
# The SYCL and icx runtime libraries come from wheels at run time, see [tool.gh-ci];
# sycl matches any version, as the wheels accept any newer 2026 runtime
repair-wheel-command = "delvewheel repair --no-dll DPCTLSyclInterface.dll;sycl*.dll;irc_msg.dll;libmmd.dll;svml_dispmd.dll;libircmd.dll;libirngmd.dll;ze_loader.dll;OpenCL.dll -w {dest_dir} {wheel}"
[tool.cibuildwheel.windows.environment]
# ci/install_icx.py installs icx and clones the Level Zero headers here
CC = "C:/icx/Library/bin/icx.exe"
CMAKE_ARGS = "-DDPCTL_LEVEL_ZERO_INCLUDE_DIR=C:/level-zero/include -DCMAKE_INTERPROCEDURAL_OPTIMIZATION:BOOL=FALSE"
CMAKE_GENERATOR = "Ninja"
CXX = "C:/icx/Library/bin/icx.exe"
LIB = "C:/icx/Library/lib;$LIB"
LINK = "/LIBPATH:C:/icx/Library/lib"
PATH = "C:/icx/Library/bin;C:/icx/Library/bin/compiler;$PATH"
[tool.codespell]
builtin = "clear,rare,informal,names"
check-filenames = true
ignore-words-list = "nd"
quiet-level = 3
[tool.coverage.report]
omit = [
"dpctl/tests/*",
"dpctl/_version.py",
"*/_cython_api*/stringsource"
]
[tool.coverage.run]
branch = true
omit = [
"dpctl/tests/*",
"dpctl/_version.py",
"*/_cython_api*/stringsource"
]
plugins = [
"Cython.Coverage"
]
source = [
"dpctl"
]
[tool.cython-lint]
max-line-length = 80
[tool.gh-ci.pin-compatible]
# What the wheels need at run time, which conda packages get from the recipe:
# each >= the version the build installed of what it maps to, < its next major
intel-cmplr-lib-rt = "dpcpp"
intel-sycl-rt = "dpcpp"
[tool.isort]
ensure_newline_before_comments = true
force_grid_wrap = 0
include_trailing_comma = true
line_length = 80
multi_line_output = 3
skip = ["dpctl/_version.py"]
use_parentheses = true
[tool.pytest.ini_options]
addopts = [
"--junitxml=junit.xml",
"--ignore=setup.py",
"--ignore=run_test.py",
"--tb=native",
"--strict-markers",
"--durations=20",
"-q",
"-ra"
]
markers = [
"broken_complex: mark a test that is skipped due to complex implementation issues in DPC++ compiler"
]
minversion = "6.0"
norecursedirs = [
".*",
"*.egg*",
"build",
"dist",
"conda-recipe"
]
[tool.versioneer]
VCS = "git"
parentdir_prefix = "dpctl-"
style = "pep440"
versionfile_build = "dpctl/_version.py"
versionfile_source = "dpctl/_version.py"