-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (87 loc) · 2.84 KB
/
pyproject.toml
File metadata and controls
100 lines (87 loc) · 2.84 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
[project]
name = "riptide_cpp"
description = "Python Package with fast math util functions"
readme = "README.md"
license = { file = "LICENSE" }
authors = [{ name = "RTOS Holdings", email = "rtosholdings-bot@sig.com" }]
requires-python = ">=3.10"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
]
[project.urls]
Repository = "https://github.com/rtosholdings/riptide_cpp"
Documentation = "https://riptable.readthedocs.io/en/stable/"
[build-system]
requires = [
#"benchmark >=1.7,<1.8", # DOES NOT EXIST! We must assume it exists in environment
"cmake >=3.26.1",
"ninja; platform_system!='Windows'",
"numpy >=1.23,<1.27",
"scikit-build-core >=0.7,<0.8",
"setuptools >=65",
"setuptools_scm[toml] >=7.1",
"tbb-devel ==2021.6.*",
"wheel",
"zstd >=1.5.2,<1.6",
]
build-backend = "scikit_build_core.build"
[tool.setuptools_scm]
version_scheme = "post-release"
write_to = "src/_version.d"
write_to_template = '"{version}"'
[tool.scikit-build]
logging.level = "INFO" # Set to DEBUG for detailed logs.
minimum-version = "0.7"
cmake.minimum-version = "3.26.1"
ninja.minimum-version = "1.11"
ninja.make-fallback = false
# setuptools_scm integration
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
cmake.verbose = true
cmake.build-type = "Release"
cmake.args = ["--=SEE_OVERRIDES_BELOW=--"]
sdist.include = ["src/_version.d"]
# Disable Python file inclusion and rely only on CMake's install mechanism.
wheel.packages = []
wheel.exclude = [ #
"bench",
"extras",
"test",
]
wheel.license-files = ["LICENSE"]
# Don't strip symbols from binaries; we want to preserve them
# to get better backtraces if/when something fails.
install.strip = false
[[tool.scikit-build.overrides]]
if.platform-system = "linux"
cmake.args = [
# Force CMake to re-run the configuration step each time this build runs. Useful for local builds.
"--fresh",
# Use the Ninja generator.
"-GNinja",
]
[[tool.scikit-build.overrides]]
if.platform-system = "win32"
cmake.args = [
# Force CMake to re-run the configuration step each time this build runs. Useful for local builds.
"--fresh",
# Use the VS2022 generator.
"-GVisual Studio 17 2022",
]
# Static way of passing current Python version to CMake.
[[tool.scikit-build.overrides]]
if.python-version = "~=3.10"
cmake.define = { "RIPTIDE_PYTHON_VER" = "3.10" }
[[tool.scikit-build.overrides]]
if.python-version = "~=3.11"
cmake.define = { "RIPTIDE_PYTHON_VER" = "3.11" }
[[tool.scikit-build.overrides]]
if.python-version = "~=3.12"
cmake.define = { "RIPTIDE_PYTHON_VER" = "3.12" }