Skip to content

Commit

Permalink
Enforce checking of python package version.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaoyijia committed Sep 23, 2024
1 parent 9b85e29 commit 7bfa67b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion knowledge_storm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
STORMWikiRunner,
)

__version__ = "0.2.5"
__version__ = "0.2.7"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="knowledge-storm",
version="0.2.6",
version="0.2.7",
author="Yijia Shao, Yucheng Jiang",
author_email="[email protected], [email protected]",
description="STORM: A language model-powered knowledge curation engine.",
Expand Down

0 comments on commit 7bfa67b

Please sign in to comment.