diff fabfile.py @ 10:85873cde659b

switch to fabfile and simpler version bumper Ignore-this: 1821ab5ab606253d1ec0649d2f4423d2
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 19 Feb 2018 10:28:24 +0000
parents makefile@198192d7cd96
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fabfile.py	Mon Feb 19 10:28:24 2018 +0000
@@ -0,0 +1,12 @@
+from subprocess import check_call, check_output, CalledProcessError
+
+def release():
+    try:
+        check_call(['darcs', 'wh', 'rdfdb/patch.py'])
+        raise SystemExit("\n^^ record these changes first")
+    except CalledProcessError: # nothing new
+        pass
+    ver = check_output(['env/bin/bump', '-qm', 'setup.py']).strip()
+    check_call(['darcs', 'rec', '--all', '--name', "version %s" % ver, '.'])
+    check_call(['python', 'setup.py', 'sdist'])
+    check_call(['cp', 'dist/rdfdb-%s.tar.gz' % ver, '/my/site/projects/rdfdb/'])