Skip to content

Commit

Permalink
NO-ISSUE Stop using __LINE_BOT_SDK_PYTHON_VERSION__
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang-33 committed Nov 21, 2024
1 parent f1218b1 commit 2367a77
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/auto-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,6 @@ jobs:
- name: Ensure generate-code.py doesn't throw any error
run: |
python generate-code.py
- name: Update version in linebot/__about__.py
run: |
VERSION="12.3.0"
VERSION=${VERSION#v}
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
cat linebot/__about__.py
- name: Test with pytest
run: |
tox
Expand All @@ -47,6 +41,12 @@ jobs:
pip install readme-renderer
python -m readme_renderer README.rst >/dev/null
- name: Update version in linebot/__about__.py
run: |
VERSION="123.456.789"
sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" linebot/__about__.py
cat linebot/__about__.py
check-import:
runs-on: ubuntu-latest
strategy:
Expand All @@ -64,13 +64,6 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Update version in linebot/__about__.py
run: |
VERSION="12.3.0"
VERSION=${VERSION#v}
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
cat linebot/__about__.py
- name: Install dependencies & lib
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: |
VERSION=${{ github.event.release.tag_name }}
VERSION=${VERSION#v}
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" linebot/__about__.py
cat linebot/__about__.py
- name: Build and publish
env:
Expand Down
2 changes: 1 addition & 1 deletion linebot/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""Meta data of line-bot-sdk."""


__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'
__version__ = '1.0.0-test'
__author__ = 'LINE Corporation'
__copyright__ = 'Copyright 2016, LINE Corporation'
__license__ = 'Apache 2.0'
Expand Down

0 comments on commit 2367a77

Please sign in to comment.