Skip to content

Commit

Permalink
Use dynamic versioning (#5)
Browse files Browse the repository at this point in the history
* 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
FanwangM authored Oct 25, 2024
1 parent af38cdd commit 3776013
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions pyproject.toml
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"}
Expand All @@ -24,6 +23,11 @@ classifiers = [
"Environment :: GPU :: NVIDIA CUDA :: 12 :: 12.2"
]

# for setuptools_scm
dynamic = [
"version",
]

dependencies = [
"numpy >= 1.24",
"pybind11 >= 2.9",
Expand All @@ -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]
Expand All @@ -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"

0 comments on commit 3776013

Please sign in to comment.