changeset 29:de2e5534abaf

switch from fabfile to invoke. use my common release code. Ignore-this: 29741d36e2944bc9e23cd157661ade3e
author drewp@bigasterisk.com
date Fri, 24 May 2019 22:46:23 +0000
parents cf30e7c42697
children a0f0fd316781
files fabfile.py setup.py tasks.py
diffstat 3 files changed, 14 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/fabfile.py	Fri May 24 00:13:09 2019 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-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/'])
--- a/setup.py	Fri May 24 00:13:09 2019 +0000
+++ b/setup.py	Fri May 24 22:46:23 2019 +0000
@@ -12,7 +12,10 @@
         'rdflib-jsonld',
         'service_identity',
         ],
+    url='https://projects.bigasterisk.com/rdfdb/rdfdb-0.9.0.tar.gz',
+    author='Drew Perttula',
+    author_email='drewp@bigasterisk.com',
     entry_points={
-        'console_scripts': ['rdfdb=rdfdb.service:main'],
+      'console_scripts': ['rdfdb=rdfdb.service:main'],
     },
  )
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tasks.py	Fri May 24 22:46:23 2019 +0000
@@ -0,0 +1,10 @@
+from invoke import task
+
+import sys
+sys.path.append('/my/proj/release')
+from release import local_release
+
+@task
+def release(ctx):
+    local_release(ctx)
+