@release.command()
def publish():
    'Unleash a release unto the world.\n\n    - Push the tag to GitHub.\n    - Upload to PyPI.\n    '
    version = get_version(1)
    with chdir(BASE):
        subprocess.check_call(['git', 'push'])
        subprocess.check_call(['git', 'push', '--tags'])
    path = os.path.join(BASE, 'dist', f'beets-{version}.tar.gz')
    subprocess.check_call(['twine', 'upload', path])
Unleash a release unto the world.

- Push the tag to GitHub.
- Upload to PyPI.
@release.command()
def publish():
    'Unleash a release unto the world.\n\n    - Push the tag to GitHub.\n    - Upload to PyPI.\n    '
    version = get_version(1)
    with chdir(BASE):
        subprocess.check_call(['git', 'push'])
        subprocess.check_call(['git', 'push', '--tags'])
    path = os.path.join(BASE, 'dist', f'beets-{version}.tar.gz')
    subprocess.check_call(['twine', 'upload', path])