mirror of
https://github.com/2061360308/NeteaseCloudMusic_PythonSDK.git
synced 2024-11-21 22:48:03 +00:00
chore: fix workflow erros
This commit is contained in:
parent
b9e7360626
commit
bc79a64ed8
@ -4,5 +4,5 @@ commit = True
|
||||
tag = True
|
||||
|
||||
[bumpversion:file:package/setup.py]
|
||||
|
||||
[bumpversion:file:towncrier.toml]
|
||||
[bumpversion:file:package/NeteaseCloudMusic/__init__.py]
|
||||
|
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
@ -1,22 +0,0 @@
|
||||
name: Test Workflow
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Print Python version
|
||||
run: python --version
|
6
CHANGELOG.md
Normal file
6
CHANGELOG.md
Normal file
@ -0,0 +1,6 @@
|
||||
0.1.7 (2023-12-20)
|
||||
|
||||
### Bugfixes
|
||||
|
||||
- 重新利用Max-Age判断cookie是否过期 (cookie_expires)
|
||||
- 修复因为补充的encodeURIComponent函数无法识别非字符的True或False而导致的cookie项remberme为空从而使login_refresh接口返回400的问题 (login_refresh)
|
@ -1 +0,0 @@
|
||||
重新利用Max-Age判断cookie是否过期
|
@ -1 +0,0 @@
|
||||
修复因为补充的encodeURIComponent函数无法识别非字符的True或False而导致的cookie项remberme为空从而使login_refresh接口返回400的问题
|
0
newsfragments/workflow_update.misc.rst
Normal file
0
newsfragments/workflow_update.misc.rst
Normal file
@ -50,6 +50,11 @@ with open(os.path.join(here, 'README.md'), 'w+', encoding='utf-8') as f:
|
||||
print("copy README.md end")
|
||||
|
||||
try:
|
||||
if os.path.exists(os.path.join(here, '../release_notes.txt')):
|
||||
# 优先读取release_notes.txt(工作流自动生成的当前版本的更新内容)
|
||||
with open(os.path.join(here, '../release_notes.txt'), 'r', encoding='utf-8') as f:
|
||||
changelog = f.read()
|
||||
else:
|
||||
with io.open(os.path.join(here, '../CHANGELOG.md'), encoding='utf-8') as f:
|
||||
changelog = f.read()
|
||||
except FileNotFoundError:
|
||||
@ -59,7 +64,7 @@ except FileNotFoundError:
|
||||
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
|
||||
try:
|
||||
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
|
||||
long_description = '\n' + changelog + '\n' + f.read()
|
||||
long_description = '\n' + "# 更新信息" + "\n" + changelog + '\n' + f.read()
|
||||
except FileNotFoundError:
|
||||
long_description = DESCRIPTION
|
||||
|
||||
|
@ -10,3 +10,6 @@ subprocess.check_call(['git', 'push', '--tags'])
|
||||
|
||||
# Run towncrier
|
||||
subprocess.check_call(['towncrier', '--yes'])
|
||||
|
||||
if not os.path.isdir('./newsfragments'):
|
||||
os.mkdir('./newsfragments')
|
Loading…
Reference in New Issue
Block a user