Skip to content

Commit bb4e67e

Browse files
committed
Using dynamic version
1 parent e00d182 commit bb4e67e

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

llama_cpp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .llama_cpp import *
22
from .llama import *
33

4-
from .version import __version__
4+
__version__ = "0.1.85"

llama_cpp/version.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44

55
[project]
66
name = "llama_cpp_python"
7-
version = "0.1.85"
7+
dynamic = ["version"]
88
description = "Python bindings for the llama.cpp library"
99
readme = "README.md"
1010
license = { text = "MIT" }
@@ -50,6 +50,10 @@ cmake.minimum-version = "3.12"
5050
minimum-version = "0.5"
5151
ninja.make-fallback = false
5252

53+
[tool.scikit-build.metadata.version]
54+
provider = "scikit_build_core.metadata.regex"
55+
input = "llama_cpp/__init__.py"
56+
5357
[project.urls]
5458
Homepage = "https://github.com/abetlen/llama-cpp-python"
5559
Issues = "https://github.com/abetlen/llama-cpp-python/issues"

0 commit comments

Comments
 (0)