@release.command()
def publish():
 version = get_version(1)
 with chdir(BASE):
  subprocess.check_call(['git', 'push'])
  subprocess.check_call(['git', 'push', '--tags'])
 path = os.path.join(BASE, 'dist', 'beets-{}.tar.gz'.format(version))
 subprocess.check_call(['twine', 'upload', path])

@ release . command ( ) def publish ( ) : version = get_version ( 1 ) with chdir ( BASE ) : subprocess . check_call ( [ 'git' , 'push' ] ) subprocess . check_call ( [ 'git' , 'push' , '--tags' ] ) path = os . path . join ( BASE , 'dist' , 'beets-{}.tar.gz' . format ( version ) ) subprocess . check_call ( [ 'twine' , 'upload' , path ] )
publish message to an mqtt topic .