-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (82 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
90 lines (82 loc) · 2.62 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
[build-system]
requires = [
"scikit-build-core>=0.10",
"pybind11>=2.13",
]
build-backend = "scikit_build_core.build"
[project]
readme = "ReadMe.md"
name = "cthreads"
version = "0.1.1"
description = "Compile @Threadable / @Thread Python into native C++ kernels and run them off the GIL."
requires-python = ">=3.10"
keywords = ["threading", "multithreading", "codegen", "python compiler", "cpp", "pybind11"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: C++",
"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",
"Topic :: Software Development :: Code Generators",
]
dependencies = []
[project.urls]
Homepage = "https://github.com/K-T0BIAS/CThreads"
Repository = "https://github.com/K-T0BIAS/CThreads"
Issues = "https://github.com/K-T0BIAS/CThreads/issues"
Documentation = "https://github.com/K-T0BIAS/CThreads/tree/main/docs"
[project.optional-dependencies]
test = ["pytest>=8"]
dev = ["pytest>=8", "build", "scikit-build-core>=0.10"]
[tool.scikit-build]
minimum-version = "0.10"
cmake.source-dir = "src/cthreads/cpp"
cmake.build-type = "Release"
# Persistent out-of-tree build - never use editable.mode=inplace with
# cmake.source-dir pointing at cpp/ (that dumps MSVC/CMake litter into sources).
build-dir = "build/{wheel_tag}"
wheel.packages = [
"src/cthreads/python/cthreads",
]
wheel.exclude = [
"**/__pycache__/**",
"**/*.pyc",
]
sdist.include = [
"src/cthreads/cpp/**",
"src/cthreads/python/cthreads/**",
"src/cthreads/python/api/**",
"tests/**",
]
sdist.exclude = [
"**/__pycache__/**",
"**/*.pyc",
"**/*.pyd",
"**/*.so",
"**/*.dylib",
"venv/**",
"testing/**",
"build/**",
".pytest_cache/**",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src/cthreads/python", "tests"]
addopts = "-q"
filterwarnings = ["ignore::DeprecationWarning"]
markers = [
"integration: needs compiler / native extension end-to-end",
]
# Native wheels: x86_64 only (CMake currently enables AVX2 on non-MSVC).
# Skip macOS until AVX2 is gated by architecture. PyPy / musl / 32-bit skipped.
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-*"
skip = "pp* *-musllinux_* *_aarch64 *_arm64 *-win32 *-macosx*"
test-requires = ["pytest>=8"]
test-command = "python -m pytest {project}/tests -q"
# Windows wheels are still built; pytest already runs on windows-latest in CI.
test-skip = "*-win*"