Release script: upload command

This commit is contained in:
Adrian Sampson 2014-05-06 22:16:19 -07:00
parent 611be7b4b5
commit 6ecf4ef6ed

View file

@ -191,5 +191,14 @@ def changelog():
print(changelog_as_markdown())
@release.command()
@click.argument('version')
def upload(version):
"""Upload the release to PyPI.
"""
path = os.path.join(BASE, 'dist', 'beets-{}.tar.gz')
subprocess.check_call(['twine', 'upload', path])
if __name__ == '__main__':
release()