[meld] maint: Add upload command
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] maint: Add upload command
- Date: Sat, 23 Aug 2014 04:18:56 +0000 (UTC)
commit 49641f1f599526863249d35007e5a13a1855833b
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Aug 23 07:25:32 2014 +1000
maint: Add upload command
maint.py | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/maint.py b/maint.py
index 40fa54a..7c736dc 100755
--- a/maint.py
+++ b/maint.py
@@ -14,6 +14,7 @@ import meld.conf
PO_DIR = "po"
HELP_DIR = "help"
RELEASE_BRANCH_RE = r'%s-\d+-\d+' % meld.conf.__package__
+UPLOAD_SERVER = 'master.gnome.org'
NEWS_TEMPLATE = """
{{ [date, app, version]|join(' ') }}
@@ -344,6 +345,16 @@ def tag():
call_with_output(cmd, echo_stdout=True)
+ cli command()
+ click argument('path', type=click.Path(exists=True))
+def upload(path):
+ click.confirm(
+ '\nUpload %s to %s?' % (path, UPLOAD_SERVER), default=True, abort=True)
+ cmd = ['scp', path, UPLOAD_SERVER + ':']
+ call_with_output(cmd)
+
+
+ cli command()
@click.pass_context
def make_release(ctx):
ctx.forward(pull)
@@ -352,8 +363,8 @@ def make_release(ctx):
push()
archive_path = ctx.forward(dist)
ctx.forward(tag)
- # Copy tarball to master, ssh in and run ftpadmin install
- # Windows binaries
+ ctx.forward(upload, path=archive_path)
+ # TODO: ssh in and run ftpadmin install
# Create 2 draft emails
# Create markdown NEWS section
# Version bump, commit, push
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]