File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1717 image : python:${{ matrix.python-version }}
1818 steps :
1919 - uses : actions/checkout@v3
20+ - name : Install build package
21+ run : pip install build
2022 - name : Build package
2123 run : python build_package.py
Original file line number Diff line number Diff line change @@ -47,10 +47,7 @@ def swap_version_with_tag(
4747 print (result )
4848
4949
50- def build_package (is_debug : bool ):
51- if is_debug is not True :
52- res = os .system ("pip install build" )
53- assert res == 0 , f"The building process failed. code = { res } "
50+ def build_package ():
5451 res = os .system ("python -m build" )
5552 assert res == 0 , f"The building process failed. code = { res } "
5653
@@ -63,9 +60,7 @@ def main(args: argparse.Namespace):
6360 version_text = VERSION_TEXT ,
6461 is_debug = is_debug ,
6562 )
66- build_package (
67- is_debug = is_debug ,
68- )
63+ build_package ()
6964
7065
7166if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments