Skip to content

Commit

Permalink
Convert cuda_cooperative to use hatchling as build backend.
Browse files Browse the repository at this point in the history
  • Loading branch information
rwgk committed Dec 26, 2024
1 parent 1f3a029 commit 61637d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 31 deletions.
27 changes: 15 additions & 12 deletions python/cuda_cooperative/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

[build-system]
requires = [
"setuptools>=61.0.0",
"wheel",
"packaging",
"numpy",
]
build-backend = "setuptools.build_meta"
requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "cuda-cooperative"
Expand All @@ -19,13 +14,14 @@ dynamic = ["version", "readme"]
authors = [
{ name = "NVIDIA Corporation" }
]
license = { file = "LICENSE" }
license = { file = "../../LICENSE" }
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Environment :: GPU :: NVIDIA CUDA",
]
dependencies = [
# "cuda-cccl @ file:///home/coder/cccl/python/cuda_cccl",
"cuda-cccl @ {root:uri}/../cuda_cccl",
"numpy",
"numba>=0.60.0",
"pynvjitlink-cu12>=0.2.4",
"cuda-python",
Expand All @@ -41,6 +37,13 @@ test = [
[project.urls]
Homepage = "https://developer.nvidia.com/"

[tool.setuptools.dynamic]
version = { attr = "cuda.cooperative._version.__version__" }
readme = { file = ["README.md"], content-type = "text/markdown" }
[tool.hatch.build.targets.wheel]
packages = ["cuda"]

[tool.hatch.version]
path = "cuda/cooperative/_version.py"
attr = "__version__"

[tool.hatch.metadata]
readme = "README.md"
allow-direct-references = true
19 changes: 0 additions & 19 deletions python/cuda_cooperative/setup.py

This file was deleted.

0 comments on commit 61637d6

Please sign in to comment.