##// END OF EJS Templates
Update utilities to be all Python, use numbered paths in testing uploads.
Fernando Perez -
Show More
@@ -15,8 +15,6 b" distdir = pjoin(ipdir, 'dist')"
15 # Where I keep static backups of each release
15 # Where I keep static backups of each release
16 ipbackupdir = os.path.expanduser('~/ipython/backup')
16 ipbackupdir = os.path.expanduser('~/ipython/backup')
17
17
18 # SSH root address of the archive site
19 archive = 'ipython@archive.ipython.org:archive.ipython.org'
20 # Start in main IPython dir
18 # Start in main IPython dir
21 cd(ipdir)
19 cd(ipdir)
22
20
@@ -1,6 +1,19 b''
1 #!/bin/sh
1 #!/usr/bin/env python
2 # Simple upload script to push up into the testing directory a local build
2 """Simple upload script to push up into the testing directory a local build
3 ipdir=$PWD/..
3 """
4 from __future__ import print_function
4
5
5 cd $ipdir/dist
6 from toollib import *
6 scp * ipython@archive.ipython.org:archive.ipython.org/testing/
7
8 # Get main ipython dir, this will raise if it doesn't pass some checks
9 ipdir = get_ipdir()
10 distdir = pjoin(ipdir, 'dist')
11
12 # Load release info
13 execfile(pjoin(ipdir, 'IPython','core','release.py'))
14
15 # Build site addresses for file uploads
16 testing_site = '%s/testing/%s' % (archive, version)
17
18 cd(distdir)
19 sh('scp * %s' % testing_site)
@@ -12,6 +12,11 b' from distutils.dir_util import remove_tree'
12 pjoin = os.path.join
12 pjoin = os.path.join
13 cd = os.chdir
13 cd = os.chdir
14
14
15 # Constants
16
17 # SSH root address of the archive site
18 archive = 'ipython@archive.ipython.org:archive.ipython.org'
19
15 # Utility functions
20 # Utility functions
16 def sh(cmd):
21 def sh(cmd):
17 """Run system command in shell, raise SystemExit if it returns an error."""
22 """Run system command in shell, raise SystemExit if it returns an error."""
General Comments 0
You need to be logged in to leave comments. Login now