File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 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
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 :
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
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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'
You can’t perform that action at this time.
0 commit comments