-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use dynamic versioning * Update the settings in `dynamic` for `setuptools-scm` * Add `setuptools-scm` as dependency for scikit-building * Add missing version metadata provider in pyproject.toml * Fix the metadata version provider
- Loading branch information
Showing
1 changed file
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
[project] | ||
name = "qc-cuGBasis" | ||
version = "1.0.1" | ||
description = "High performance CUDA/Python library for computing quantum chemistry density-based descriptors for larger systems using GPUs. " | ||
authors = [{name = "QC-Devs Community", email = "[email protected]"}] | ||
license = {file = "LICENSE"} | ||
|
@@ -24,6 +23,11 @@ classifiers = [ | |
"Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.2" | ||
] | ||
|
||
# for setuptools_scm | ||
dynamic = [ | ||
"version", | ||
] | ||
|
||
dependencies = [ | ||
"numpy >= 1.24", | ||
"pybind11 >= 2.9", | ||
|
@@ -49,7 +53,7 @@ docs = [ | |
] | ||
|
||
[build-system] | ||
requires = ["scikit-build-core >= 0.9.10", "cmake>=3.26", "pytest >= 6.0"] | ||
requires = ["scikit-build-core >= 0.9.10", "cmake>=3.26", "pytest >= 6.0", "setuptools_scm>=8"] | ||
build-backend = "scikit_build_core.build" | ||
|
||
[tool.scikit-build] | ||
|
@@ -64,3 +68,11 @@ cmake.args = [ | |
"-DLINK_TO_PYTHON=ON", | ||
"-DDONT_COMPILE_TESTS=ON" | ||
] | ||
# https://scikit-build-core.readthedocs.io/en/latest/configuration.html | ||
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm" | ||
sdist.include = ["src/package/_version.py"] | ||
|
||
[tool.setuptools_scm] | ||
# can be empty if no extra settings are needed, presence enables setuptools-scm | ||
# https://scikit-build-core.readthedocs.io/en/latest/configuration.html | ||
write_to = "src/package/_version.py" |