File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11# 更新日志
22
3- ## v0.5.2 -
3+ ## v0.5.2 - (20220508)
44
55- 新增 ` ElementEntity ` HTML组件
66- 新增支持HTML生成库:[ htmlgenerator] ( https://github.com/basxsoftwareassociation/htmlgenerator )
Original file line number Diff line number Diff line change 33import zipfile
44import pathlib
55import re
6+ import sys
67
78
89def get_version ():
@@ -23,18 +24,17 @@ def source_file_list():
2324 return filenames
2425
2526
26- def zip_file_list ():
27- version = get_version ()
27+ def zip_file_list (version ):
2828 whl_file_path = pathlib .Path ('dist' ) / f'django_echarts-{ version } -py3-none-any.whl'
2929
3030 with zipfile .ZipFile (whl_file_path ) as archive :
3131 zip_filenames = [zinfo .filename for zinfo in archive .infolist ()]
3232 return zip_filenames
3333
3434
35- def validate ():
35+ def validate (version ):
3636 s_list = source_file_list ()
37- z_list = zip_file_list ()
37+ z_list = zip_file_list (version )
3838
3939 missing_files = list (set (s_list ) - set (z_list ))
4040 if len (missing_files ) == 0 :
@@ -46,4 +46,9 @@ def validate():
4646
4747
4848if __name__ == '__main__' :
49- validate ()
49+ if len (sys .argv ) > 1 :
50+ version = sys .argv [1 ]
51+ else :
52+ version = get_version ()
53+ print (f'Start validating. Version={ version } ' )
54+ validate (version )
You can’t perform that action at this time.
0 commit comments