File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 5252 strategy :
5353 matrix :
5454 python-version :
55- - ' 3.8'
5655 - ' 3.9'
5756 - ' 3.10'
5857 - ' 3.11'
6564 uses : actions/setup-python@v5
6665 with :
6766 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"
6880 - name : Install dependencies & lib
6981 run : |
7082 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