Skip to content

Commit 98a5a97

Browse files
committed
Release v0.5.2
1 parent 0377bd7 commit 98a5a97

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

docs/changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 更新日志
22

3-
## v0.5.2 -
3+
## v0.5.2 - (20220508)
44

55
- 新增 `ElementEntity` HTML组件
66
- 新增支持HTML生成库:[htmlgenerator](https://github.com/basxsoftwareassociation/htmlgenerator)

validate_release.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import zipfile
44
import pathlib
55
import re
6+
import sys
67

78

89
def 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

4848
if __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)

0 commit comments

Comments
 (0)