Skip to content

Commit 2367a77

Browse files
committed
NO-ISSUE Stop using __LINE_BOT_SDK_PYTHON_VERSION__
1 parent f1218b1 commit 2367a77

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

.github/workflows/auto-testing.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@ jobs:
3333
- name: Ensure generate-code.py doesn't throw any error
3434
run: |
3535
python generate-code.py
36-
- name: Update version in linebot/__about__.py
37-
run: |
38-
VERSION="12.3.0"
39-
VERSION=${VERSION#v}
40-
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
41-
cat linebot/__about__.py
4236
- name: Test with pytest
4337
run: |
4438
tox
@@ -47,6 +41,12 @@ jobs:
4741
pip install readme-renderer
4842
python -m readme_renderer README.rst >/dev/null
4943
44+
- name: Update version in linebot/__about__.py
45+
run: |
46+
VERSION="123.456.789"
47+
sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" linebot/__about__.py
48+
cat linebot/__about__.py
49+
5050
check-import:
5151
runs-on: ubuntu-latest
5252
strategy:
@@ -64,13 +64,6 @@ jobs:
6464
uses: actions/setup-python@v5
6565
with:
6666
python-version: ${{ matrix.python-version }}
67-
- name: Update version in linebot/__about__.py
68-
run: |
69-
VERSION="12.3.0"
70-
VERSION=${VERSION#v}
71-
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
72-
cat linebot/__about__.py
73-
7467
- name: Install dependencies & lib
7568
run: |
7669
python -m pip install --upgrade pip

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: |
2929
VERSION=${{ github.event.release.tag_name }}
3030
VERSION=${VERSION#v}
31-
sed -i "s/__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'/__version__ = '$VERSION'/g" linebot/__about__.py
31+
sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" linebot/__about__.py
3232
cat linebot/__about__.py
3333
- name: Build and publish
3434
env:

linebot/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""Meta data of line-bot-sdk."""
1616

1717

18-
__version__ = '__LINE_BOT_SDK_PYTHON_VERSION__'
18+
__version__ = '1.0.0-test'
1919
__author__ = 'LINE Corporation'
2020
__copyright__ = 'Copyright 2016, LINE Corporation'
2121
__license__ = 'Apache 2.0'

0 commit comments

Comments
 (0)