From bb4e67e7aa94f54f4cb070c5dfbe9bb1180364cb Mon Sep 17 00:00:00 2001 From: Andrei Betlen Date: Tue, 12 Sep 2023 18:56:36 -0400 Subject: [PATCH] Using dynamic version --- llama_cpp/__init__.py | 2 +- llama_cpp/version.py | 1 - pyproject.toml | 6 +++++- 3 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 llama_cpp/version.py diff --git a/llama_cpp/__init__.py b/llama_cpp/__init__.py index cfea00e..2d20f06 100644 --- a/llama_cpp/__init__.py +++ b/llama_cpp/__init__.py @@ -1,4 +1,4 @@ from .llama_cpp import * from .llama import * -from .version import __version__ \ No newline at end of file +__version__ = "0.1.85" \ No newline at end of file diff --git a/llama_cpp/version.py b/llama_cpp/version.py deleted file mode 100644 index b10da4d..0000000 --- a/llama_cpp/version.py +++ /dev/null @@ -1 +0,0 @@ -__version__ = "0.1.85" diff --git a/pyproject.toml b/pyproject.toml index 8052373..f0b7ad3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build" [project] name = "llama_cpp_python" -version = "0.1.85" +dynamic = ["version"] description = "Python bindings for the llama.cpp library" readme = "README.md" license = { text = "MIT" } @@ -50,6 +50,10 @@ cmake.minimum-version = "3.12" minimum-version = "0.5" ninja.make-fallback = false +[tool.scikit-build.metadata.version] +provider = "scikit_build_core.metadata.regex" +input = "llama_cpp/__init__.py" + [project.urls] Homepage = "https://github.com/abetlen/llama-cpp-python" Issues = "https://github.com/abetlen/llama-cpp-python/issues"