-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (105 loc) · 3.03 KB
/
pyproject.toml
File metadata and controls
117 lines (105 loc) · 3.03 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
[project]
name = "dftracer-utils"
dynamic = ["version"]
description = "Python binding for dftracer-utils"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [
{ name = "Ray Andrew Sinurat", email = "raydreww@gmail.com" },
{ name = "Hariharan Devarajan (Hari)", email = "hariharandev1@llnl.gov" }
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"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 :: C++",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.optional-dependencies]
dev = [
"pytest>=6.0",
"ruff",
"pyarrow>=14.0",
"dask[bag,dataframe,distributed]>=2024.1.0; python_version >= '3.9'",
"dask_jobqueue~=0.8.0; python_version >= '3.9'"
]
[build-system]
requires = ["scikit-build-core >=0.10"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
minimum-version = "build-system.requires"
# Setuptools-style build caching in a local directory
build-dir = "build/{wheel_tag}"
# Package discovery
wheel.packages = ["python/dftracer"]
sdist.include = [
"python/dftracer/utils/_version.py",
"python/dftracer/utils/py.typed",
"cmake/tests",
]
sdist.exclude = [
"tests/**",
"*.DS_Store",
"*.sh",
"*.gz",
"*.tar.gz",
".github",
".gitignore",
"*.nix",
".envrc",
"Makefile",
"MANIFEST.in",
"*test*",
"temp*",
".clang-*",
"*.lock",
"*.venv*",
"*venv*",
"*.env",
"*.egg-info",
"DEVELOPERS_GUIDE.md",
"DOCUMENTATION_SETUP.md",
"docs",
"Doxygen",
".readthedocs.yaml",
]
cmake.build-type = "Release"
cmake.args = [
"-DDFTRACER_UTILS_BUILD_PYTHON=ON",
"-DDFTRACER_UTILS_BUILD_SHARED=ON",
"-DDFTRACER_UTILS_BUILD_STATIC=OFF",
"-DDFTRACER_UTILS_BUILD_BINARIES=ON",
]
[tool.cibuildwheel]
build-verbosity = 1
before-test = [
"pip install tomli",
"python -c 'import tomli, subprocess, sys; subprocess.check_call([sys.executable, \"-m\", \"pip\", \"install\"] + tomli.load(open(\"pyproject.toml\", \"rb\"))[\"project\"][\"optional-dependencies\"][\"dev\"])'"
]
test-command = "pytest {project}/tests"
test-requires = "pytest"
# @note: enable this if you are using nix, see issue https://github.com/matthew-brett/delocate/issues/247
# [tool.cibuildwheel.macos]
# dependency-versions = { packages = ["delocate==0.12.0"] }
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "11.3"
[tool.ruff]
target-version = "py38"
line-length = 100
src = ["python", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.setuptools_scm]
local_scheme = "no-local-version"
version_file = "python/dftracer/utils/_version.py"