From b07ce84179b88c7bb574c5116249f04fc3364fd1 Mon Sep 17 00:00:00 2001 From: shaoyijia Date: Thu, 22 Aug 2024 22:55:57 -0700 Subject: [PATCH] Bump up python package version. --- .github/workflows/python-package.yml | 29 ++++++++++++++++++++++++++++ knowledge_storm/__init__.py | 2 ++ setup.py | 2 +- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/python-package.yml diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 00000000..fa4cf56e --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,29 @@ +name: Build and upload Python package + +on: + workflow_dispatch: # Allows manual triggering of the workflow + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: Set up Python 3.11 + uses: actions/setup-python@v3 + with: + python-version: "3.11" + - name: Install dependencies + run: python3 -m pip install setuptools wheel twine + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Build a binary wheel + run: python3 setup.py sdist bdist_wheel + - name: Publish package to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/knowledge_storm/__init__.py b/knowledge_storm/__init__.py index f1fd18ea..27e2ec3e 100644 --- a/knowledge_storm/__init__.py +++ b/knowledge_storm/__init__.py @@ -3,3 +3,5 @@ STORMWikiRunnerArguments, STORMWikiRunner ) + +__version__ = "0.2.5" diff --git a/setup.py b/setup.py index b7835ab7..3d11cbd1 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( name="knowledge-storm", - version="0.2.4", + version="0.2.5", author="Yijia Shao, Yucheng Jiang", author_email="shaoyj@stanford.edu, yuchengj@stanford.edu", description="STORM: A language model-powered knowledge curation engine.",