Permalink
Browse files

Auto-post to Google groups upon release.

  • Loading branch information...
1 parent dc34908 commit 58433ac01b6fb02f6c14207034ae53b347a37ab5 @shyuep shyuep committed Feb 2, 2013
Showing with 10 additions and 2 deletions.
  1. +10 −2 fabfile.py
View
@@ -14,8 +14,10 @@
__date__ = "Apr 29, 2012"
import glob
+import os
from fabric.api import local, lcd
+from pymatgen import __version__ as ver
def makedoc():
@@ -58,8 +60,7 @@ def test():
def setver():
- from pymatgen import __version__
- local("sed s/version=.*,/version=\\\"{}\\\",/ setup.py > newsetup".format(__version__))
+ local("sed s/version=.*,/version=\\\"{}\\\",/ setup.py > newsetup".format(ver))
local("mv newsetup setup.py")
@@ -71,8 +72,15 @@ def update_dev_doc():
local("git push origin gh-pages")
+def log_ver():
+ filepath = os.path.join(os.environ["HOME"], "Dropbox", "Public", "pymatgen", ver)
+ with open(filepath, "w") as f:
+ f.write("Release")
+
+
def release():
setver()
test()
makedoc()
publish()
+ log_ver()

0 comments on commit 58433ac

Please sign in to comment.