mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 19:42:42 +01:00
Release script: upload command
This commit is contained in:
parent
611be7b4b5
commit
6ecf4ef6ed
1 changed files with 9 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue