File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1414 strategy :
1515 matrix :
1616 python-version :
17- - ' 3.8'
1817 - ' 3.9'
1918 - ' 3.10'
2019 - ' 3.11'
5352 strategy :
5453 matrix :
5554 python-version :
56- - ' 3.8'
5755 - ' 3.9'
5856 - ' 3.10'
5957 - ' 3.11'
6664 uses : actions/setup-python@v5
6765 with :
6866 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+ - name : workaround
74+ run : |
75+ file_path="linebot/v3/messaging/models/text_message_v2.py"
76+ old_import="from linebot.v3.messaging.models.dict[str,_substitution_object] import Dict[str, SubstitutionObject]"
77+ new_import="from linebot.v3.messaging.models.substitution_object import SubstitutionObject"
78+
79+ sed -i.bak "s|$old_import|$new_import|" "$file_path"
6980 - name : Install dependencies & lib
7081 run : |
7182 python -m pip install --upgrade pip
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ def import_all_modules(package):
77 try :
88 importlib .import_module (modname )
99 print (f'Successfully imported { modname } ' )
10- except ImportError as e :
10+ except Exception as e :
1111 print (f'Failed to import { modname } : { e } ' )
1212 raise
1313
14- import_all_modules (my_library_name )
14+ import_all_modules (linebot )
You can’t perform that action at this time.
0 commit comments