Skip to content

armgit / storm

Public Imported from GitHub
0

An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.

Enforce checking of python package version.

shaoyijia7bfa67b13873
diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml
index fa4cf56..2ec48d8 100644
--- a/.github/workflows/python-package.yml
+++ b/.github/workflows/python-package.yml
@@ -14,6 +14,17 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.11"
+ - name: Compare versions in setup.py and knowledge_storm/__init__.py
+ run: |
+ VERSION_SETUP=$(grep -oP '(?<=version=\").*(?=\")' setup.py)
+ VERSION_INIT=$(grep -oP '(?<=__version__ = \").*(?=\")' knowledge_storm/__init__.py)
+ echo "Version in setup.py: $VERSION_SETUP"
+ echo "Version in __init__.py: $VERSION_INIT"
+ if [ "$VERSION_SETUP" != "$VERSION_INIT" ]; then
+ echo "Error: Version mismatch between setup.py ($VERSION_SETUP) and knowledge_storm/__init__.py ($VERSION_INIT)"
+ exit 1
+ fi
+ shell: bash
- name: Install dependencies
run: python3 -m pip install setuptools wheel twine
- name: Install dependencies
diff --git a/knowledge_storm/__init__.py b/knowledge_storm/__init__.py
index e862724..b142a58 100644
--- a/knowledge_storm/__init__.py
+++ b/knowledge_storm/__init__.py
@@ -4,4 +4,4 @@ from .storm_wiki.engine import (
STORMWikiRunner,
)
-__version__ = "0.2.5"
+__version__ = "0.2.7"
diff --git a/setup.py b/setup.py
index 6b562cd..633ce78 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ with open("requirements.txt", encoding="utf-8") as f:
setup(
name="knowledge-storm",
- version="0.2.6",
+ version="0.2.7",
author="Yijia Shao, Yucheng Jiang",
description="STORM: A language model-powered knowledge curation engine.",