Commits

Matt Chaput committed b20c5ed

Fixed svn tagging message, added tagging as a command line option in the
release script.

  • Participants
  • Parent commits f62a0c3

Comments (0)

Files changed (1)

File scripts/release.py

 def upload_pypi(tag=None):
     system("python setup.py sdist bdist_egg upload")
     if tag:
-        system("svn copy http://svn.whoosh.ca/projects/whoosh/trunk http://svn.whoosh.ca/projects/whoosh/tags/%s" % tag)
+        tag = str(tag)
+        opts = {"base": "http://svn.whoosh.ca/projects/whoosh",
+                "tag": tag,
+                "msg": "Tagging trunk as %s" % tag}
+        
+        system('svn copy %(base)s/trunk %(base)s/tags/%(tag)s -m "%(msg)s"' % opts)
 
 
 if __name__ == '__main__':
                       action="store_false",
                       default=True)
     
+    parser.add_option("-t", "--tag", dest="tag",
+                      help="Tag the trunk as this",
+                      default=None)
+    
     (options, args) = parser.parse_args()
     
     cp = ConfigParser()
         upload_docs(cp.get("username"), cp.get("server"), cp.get("docbase"), version,
                     build=options.builddocs)
 
-    upload_pypi(tag=version)
+    upload_pypi(tag=options.tag)