Skip to content

Commit

Permalink
Update utilities to be all Python, use numbered paths in testing uplo…
Browse files Browse the repository at this point in the history
…ads.
  • Loading branch information
fperez committed Jul 31, 2011
1 parent 62cbc53 commit d010497
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
2 changes: 0 additions & 2 deletions tools/release
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ distdir = pjoin(ipdir, 'dist')
# Where I keep static backups of each release
ipbackupdir = os.path.expanduser('~/ipython/backup')

# SSH root address of the archive site
archive = 'ipython@archive.ipython.org:archive.ipython.org'
# Start in main IPython dir
cd(ipdir)

Expand Down
23 changes: 18 additions & 5 deletions tools/testupload
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#!/bin/sh
# Simple upload script to push up into the testing directory a local build
ipdir=$PWD/..
#!/usr/bin/env python
"""Simple upload script to push up into the testing directory a local build
"""
from __future__ import print_function

cd $ipdir/dist
scp * ipython@archive.ipython.org:archive.ipython.org/testing/
from toollib import *

# Get main ipython dir, this will raise if it doesn't pass some checks
ipdir = get_ipdir()
distdir = pjoin(ipdir, 'dist')

# Load release info
execfile(pjoin(ipdir, 'IPython','core','release.py'))

# Build site addresses for file uploads
testing_site = '%s/testing/%s' % (archive, version)

cd(distdir)
sh('scp * %s' % testing_site)
5 changes: 5 additions & 0 deletions tools/toollib.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
pjoin = os.path.join
cd = os.chdir

# Constants

# SSH root address of the archive site
archive = 'ipython@archive.ipython.org:archive.ipython.org'

# Utility functions
def sh(cmd):
"""Run system command in shell, raise SystemExit if it returns an error."""
Expand Down

0 comments on commit d010497

Please sign in to comment.