Skip to content

Commit

Permalink
Make cufinufft version dynamic (#531)
Browse files Browse the repository at this point in the history
Instead of hardcoding it in pyproject.toml, have it read (using regex)
from cufinufft/__init__.py. This way we have a single source of truth
for the cuFinufft Python version.
  • Loading branch information
janden authored Aug 21, 2024
1 parent 2bf37e5 commit c735163
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/cufinufft/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ build-backend = "scikit_build_core.build"
[project]
name = "cufinufft"
description = "Non-uniform fast Fourier transforms on the GPU"
version = "2.2.0"
readme = "README.md"
requires-python = ">=3.8"
dependencies = ["numpy"]
Expand All @@ -31,6 +30,7 @@ classifiers = [
"Environment :: GPU",
"Topic :: Scientific/Engineering :: Mathematics"
]
dynamic = ["version"]

[tool.scikit-build]
# Protect the configuration against future changes in scikit-build-core
Expand All @@ -47,3 +47,8 @@ wheel.packages = ["cufinufft"]

# Indicate that we don't depend on the CPython API
wheel.py-api = "py3"

[tool.scikit-build.metadata.version]
# Instead of hardcoding the version here, extract it from the source files.
provider = "scikit_build_core.metadata.regex"
input = "cufinufft/__init__.py"

0 comments on commit c735163

Please sign in to comment.