File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11from .llama_cpp import *
22from .llama import *
3+
4+ from .version import __version__
Original file line number Diff line number Diff line change 1+ __version__ = "0.1.84"
Original file line number Diff line number Diff line change 55this_directory = Path (__file__ ).parent
66long_description = (this_directory / "README.md" ).read_text (encoding = "utf-8" )
77
8+ exec (open ('llama_cpp/version.py' ).read ())
9+
810setup (
911 name = "llama_cpp_python" ,
1012 description = "A Python wrapper for llama.cpp" ,
1113 long_description = long_description ,
1214 long_description_content_type = "text/markdown" ,
13- version = "0.1.84" ,
15+ version = __version__ ,
1416 author = "Andrei Betlen" ,
1517 author_email = "abetlen@gmail.com" ,
1618 license = "MIT" ,
Original file line number Diff line number Diff line change @@ -181,3 +181,6 @@ def test_llama_server():
181181 }
182182 ],
183183 }
184+
185+ def test_llama_cpp_version ():
186+ assert llama_cpp .__version__
You can’t perform that action at this time.
0 commit comments