Skip to content

Commit a1ccd55

Browse files
committed
Fix upload tool to automatically create directories.
1 parent da5562c commit a1ccd55

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tools/testupload

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ testing_site = '%s/testing/%s' % (archive, version)
1717

1818
cd(distdir)
1919

20-
# FIXME: this assumes the path *with the version number* exists on the server
20+
# Create remote path if it doesn't exist.
21+
sh('ssh %s "mkdir -p %s/testing/%s" ' % (archive_user, archive_dir, version))
2122
sh('scp * %s' % testing_site)

tools/toollib.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
# Constants
1616

1717
# SSH root address of the archive site
18-
archive = '[email protected]:archive.ipython.org'
18+
archive_user = '[email protected]'
19+
archive_dir = 'archive.ipython.org'
20+
archive = '%s:%s' % (archive_user, archive_dir)
1921

2022
# Utility functions
2123
def sh(cmd):

0 commit comments

Comments
 (0)