Merge pull request #684 from janvdp/main
PR: [issue: 672] add __version__
This commit is contained in:
commit
6add80c066
4 changed files with 9 additions and 1 deletions
|
@ -1,2 +1,4 @@
|
|||
from .llama_cpp import *
|
||||
from .llama import *
|
||||
|
||||
from .version import __version__
|
1
llama_cpp/version.py
Normal file
1
llama_cpp/version.py
Normal file
|
@ -0,0 +1 @@
|
|||
__version__ = "0.1.84"
|
4
setup.py
4
setup.py
|
@ -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",
|
||||
|
|
|
@ -181,3 +181,6 @@ def test_llama_server():
|
|||
}
|
||||
],
|
||||
}
|
||||
|
||||
def test_llama_cpp_version():
|
||||
assert llama_cpp.__version__
|
||||
|
|
Loading…
Reference in a new issue