mirror of
https://github.com/2061360308/NeteaseCloudMusic_PythonSDK.git
synced 2024-11-28 00:56:19 +00:00
21 lines
515 B
Python
21 lines
515 B
Python
import os
|
|
import subprocess
|
|
|
|
# Bump version
|
|
print('Bumping version...')
|
|
subprocess.check_call(['bumpversion', 'patch'])
|
|
|
|
# Push changes to remote
|
|
print('Pushing changes to remote...')
|
|
subprocess.check_call(['git', 'push'])
|
|
subprocess.check_call(['git', 'push', '--tags'])
|
|
|
|
# Run towncrier
|
|
print('Running towncrier...')
|
|
subprocess.check_call(['towncrier', '--yes'])
|
|
|
|
print("Created newsfragments directory")
|
|
if not os.path.isdir('./newsfragments'):
|
|
os.mkdir('./newsfragments')
|
|
|
|
print("Done!") |