Jason Pellerin avatar Jason Pellerin committed ed02181

Added project index redirector, updated mkrelease

Comments (0)

Files changed (2)

+<html>
+  <head><title>Redirecting to nose 0.11 docs</title>
+    <meta http-equiv="refresh" content="0; ./0.11/"/>
+  </head>
+  <body>
+    <p>Redirecting to <a href="./0.11/">nose 0.11 docs</a></p>
+  </body>
+</html>

scripts/mkrelease.py

 
     
 def main():
-    tag = 'nose_rel_%s' % version
-    svn_tag_url = "%s/%s" % (svn_tags_url, tag)
+    tag = 'release_%s' % version
 
     # create tag
-    runcmd("svn copy %s %s -m 'Tagged release %s'" %
-           (svn_trunk_url, svn_tag_url, version))
+    runcmd("hg tag -m 'Tagged release %s' %s" %
+           (version, tag))
     
-    # check out tag
-    cd('/tmp')
-    runcmd('svn co %s' % svn_tag_url)
-    cd(tag)
-
     # remove dev tag from setup
     runcmd('cp setup.cfg.release setup.cfg')
-    runcmd('svn rm setup.cfg.release --force')
-    runcmd("svn ci -m 'Updated setup.cfg to release status'")
-    runcmd("rm -rf /tmp/%s" % tag)
-    
-    # need to build dist from an *export* to limit files included
-    # (setuptools includes too many files when run under a checkout)
 
-    # export tag
-    cd('/tmp')
-    runcmd('svn export %s %s' % (svn_tag_url, tag))
-    cd(tag)
-
-    # make docs
-    #runcmd('./scripts/mkindex.py')
     cd('doc')
     runcmd('make html')
     cd('..')
             'path': up[up.index(':')+1:-1],
             'version':version,
             'upload': up,
-            'upload_docs': "%s/%s" % (up, version) }
-        cv['versionpath'] = "%(path)s/%(version)s" % cv
-        cv['docpath'] = "%(versionpath)s/doc" % cv
+            'upload_docs': os.path.join(up, version) }
+        cv['versionpath'] = os.path.join(cv['path'], cv['version'])
 
         cmd = 'scp -C dist/nose-%(version)s.tar.gz %(upload)s' % cv
         runcmd(cmd)
 
-        cmd = 'ssh %(host)s "mkdir -p %(docpath)s"' % cv
+        cmd = 'ssh %(host)s "mkdir -p %(versionpath)s"' % cv
         runcmd(cmd)
         
-        #cmd = 'scp -C index.html %(upload_docs)s' % cv
-        #runcmd(cmd)
-
-        cmd = ('scp -C doc/*.html doc/*.css doc/*.png '
-               '%(upload_docs)s/doc' % cv)
+        cmd = ('scp -Cr doc/.build/html/* '
+               '%(upload_docs)s/' % cv)
         runcmd(cmd)
 
-        cmd = ('ssh %(host)s '
-               'ln -nfs %(docpath)s %(path)s/doc"; '
-               '"ln -nfs %(path)s/doc/main_index.html %(path)s/index.html'
-                % cv)
+        cmd = ('scp -C doc/index.html %(upload)s' % cv)
         runcmd(cmd)
 
 if __name__ == '__main__':
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.