Mercurial > code > home > repos > rdfdb
comparison 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 |
comparison
equal
deleted
inserted
replaced
9:198192d7cd96 | 10:85873cde659b |
---|---|
1 from subprocess import check_call, check_output, CalledProcessError | |
2 | |
3 def release(): | |
4 try: | |
5 check_call(['darcs', 'wh', 'rdfdb/patch.py']) | |
6 raise SystemExit("\n^^ record these changes first") | |
7 except CalledProcessError: # nothing new | |
8 pass | |
9 ver = check_output(['env/bin/bump', '-qm', 'setup.py']).strip() | |
10 check_call(['darcs', 'rec', '--all', '--name', "version %s" % ver, '.']) | |
11 check_call(['python', 'setup.py', 'sdist']) | |
12 check_call(['cp', 'dist/rdfdb-%s.tar.gz' % ver, '/my/site/projects/rdfdb/']) |