Skip to content

Commit

Permalink
Make version dynamic (#2403)
Browse files Browse the repository at this point in the history
`pyproject.toml` now reads `VERSION`.

Also, ignore CPM cache.

Closes: #2201
  • Loading branch information
thorstenhater authored Sep 18, 2024
1 parent 058868a commit 19327a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ _skbuild

# generated by test scripts
results
/_deps/
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "arbor"
version = "0.10.0" # TODO: make dependent on VERSION file. Blocked by https://github.com/scikit-build/scikit-build-core/issues/230
dynamic = ["version"]
readme = {file = "README.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
description = "High performance simulation of networks of multicompartment neurons."
Expand Down Expand Up @@ -39,6 +39,10 @@ sdist.include = ["ext/*/.git"]
wheel.install-dir = "arbor"
wheel.packages = []

[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
input = "VERSION"
regex = "(?P<value>\\d+\\.\\d+\\.\\d+(-.+)?)"

[tool.ruff]
exclude = [
Expand Down

0 comments on commit 19327a8

Please sign in to comment.