소스 검색

feat: Store package version in py file (#254)

Deshraj Yadav 2 년 전
부모
커밋
b41fa6fdc4
2개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      embedchain/version.py
  2. 4 1
      setup.py

+ 1 - 0
embedchain/version.py

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

+ 4 - 1
setup.py

@@ -1,11 +1,14 @@
 import setuptools
 import setuptools
 
 
+import embedchain.version
+
+
 with open("README.md", "r", encoding="utf-8") as fh:
 with open("README.md", "r", encoding="utf-8") as fh:
     long_description = fh.read()
     long_description = fh.read()
 
 
 setuptools.setup(
 setuptools.setup(
     name="embedchain",
     name="embedchain",
-    version="0.0.21",
+    version=embedchain.version.__version__,
     author="Taranjeet Singh",
     author="Taranjeet Singh",
     author_email="reachtotj@gmail.com",
     author_email="reachtotj@gmail.com",
     description="embedchain is a framework to easily create LLM powered bots over any dataset",  # noqa:E501
     description="embedchain is a framework to easily create LLM powered bots over any dataset",  # noqa:E501