Skip to content

Commit

Permalink
新增辅助发布功能
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Jan 28, 2019
1 parent 8998481 commit 3edfd0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,16 @@
"""
import os
import sys
import setuptools

# 'setup.py publish' shortcut.
if sys.argv[-1] == 'publish':
os.system('rm -rf dist')
os.system('python setup.py sdist bdist_wheel')
os.system('twine upload dist/*')
sys.exit()

here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, 'music_dl', '__version__.py'), 'r', encoding='utf-8') as f:
Expand Down

0 comments on commit 3edfd0a

Please sign in to comment.