Merge pull request #684 from janvdp/main

PR: [issue: 672] add __version__
This commit is contained in:
Andrei 2023-09-12 13:08:20 -04:00 committed by GitHub
commit 6add80c066
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 1 deletions

View file

@ -1,2 +1,4 @@
from .llama_cpp import *
from .llama import *
from .version import __version__

1
llama_cpp/version.py Normal file
View file

@ -0,0 +1 @@
__version__ = "0.1.84"

View file

@ -5,12 +5,14 @@ from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text(encoding="utf-8")
exec(open('llama_cpp/version.py').read())
setup(
name="llama_cpp_python",
description="A Python wrapper for llama.cpp",
long_description=long_description,
long_description_content_type="text/markdown",
version="0.1.84",
version=__version__,
author="Andrei Betlen",
author_email="abetlen@gmail.com",
license="MIT",

View file

@ -181,3 +181,6 @@ def test_llama_server():
}
],
}
def test_llama_cpp_version():
assert llama_cpp.__version__