File tree Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Expand file tree Collapse file tree 4 files changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ print(api_list())
50
50
├── test.py 手动测试/ 使用示例
51
51
```
52
52
53
- ### 更新
53
+ #### 更新
54
54
项目使用towncrier自动生成更新日志
55
55
56
56
在 newsfragments 目录下,创建一个新的文本文件。这个文件的名字应该是一个唯一的编号,后缀是 .rst。
@@ -66,7 +66,11 @@ print(api_list())
66
66
在这个文件中,写下你的更改的描述。这个描述应该是简短的,通常只有一到两句话。
67
67
例如`Added support for the XYZ feature.`
68
68
69
- ### 发布新版本
69
+ #### 发布新版本
70
+ 自动:
71
+ 运行 python publish.py
72
+
73
+ 手动:
70
74
使用bumpversion自动更新版本号,提交并发布标签
71
75
你需要安装bumpversion然后执行
72
76
```bash
Original file line number Diff line number Diff line change 50
50
print ("copy README.md end" )
51
51
52
52
try :
53
- with io .open (os .path .join (here , 'CHANGELOG.md' ), encoding = 'utf-8' ) as f :
53
+ with io .open (os .path .join (here , '../ CHANGELOG.md' ), encoding = 'utf-8' ) as f :
54
54
changelog = f .read ()
55
55
except FileNotFoundError :
56
56
changelog = ''
Original file line number Diff line number Diff line change
1
+ import os
2
+ import subprocess
3
+
4
+ # Bump version
5
+ subprocess .check_call (['bumpversion' , 'patch' ])
6
+
7
+ # Push changes to remote
8
+ subprocess .check_call (['git' , 'push' ])
9
+ subprocess .check_call (['git' , 'push' , '--tags' ])
10
+
11
+ # Run towncrier
12
+ subprocess .check_call (['towncrier' , '--yes' ])
Original file line number Diff line number Diff line change 7
7
from pprint import pprint
8
8
import dotenv
9
9
10
- from package . NeteaseCloudMusic import NeteaseCloudMusicApi , api_help , api_list
10
+ from NeteaseCloudMusic import NeteaseCloudMusicApi , api_help , api_list
11
11
12
12
# from NeteaseCloudMusic import NeteaseCloudMusicApi, api_help, api_list
13
13
@@ -112,7 +112,7 @@ def login_refresh():
112
112
pass
113
113
# print(api_list())
114
114
# print(api_help())
115
- song_url_v1_test ()
115
+ # song_url_v1_test()
116
116
# top_mv_test()
117
117
# search_test()
118
118
# search_default_test()
@@ -122,6 +122,6 @@ def login_refresh():
122
122
# top_playlist_highquality_test()
123
123
# captcha_sent_test()
124
124
# login_cellphone_test()
125
- user_account_test ()
125
+ # user_account_test()
126
126
# playlist_track_all_test()
127
- # login_refresh()
127
+ login_refresh ()
You can’t perform that action at this time.
0 commit comments