Mercurial > code > home > repos > rdfdb
changeset 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 | 198192d7cd96 |
children | 239eb42543ce |
files | fabfile.py makefile rdfdb/__init__.py rdfdb/_version.py setup.py |
diffstat | 5 files changed, 13 insertions(+), 22 deletions(-) [+] |
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/'])
--- a/makefile Mon Feb 19 09:58:56 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -release: - darcs wh && { echo "\n^^ record these changes first"; exit 1; } || true - env/bin/python -m incremental.update rdfdb --dev - $(eval VER:=$(shell env/bin/python -c 'import rdfdb; print(rdfdb.__version__.short())')) - darcs rec --all --name "version $(VER)" . - python setup.py sdist - cp dist/rdfdb-$(VER).tgz /my/site/projects/rdfdb/
--- a/rdfdb/__init__.py Mon Feb 19 09:58:56 2018 +0000 +++ b/rdfdb/__init__.py Mon Feb 19 10:28:24 2018 +0000 @@ -1,2 +1,1 @@ -from ._version import __version__
--- a/rdfdb/_version.py Mon Feb 19 09:58:56 2018 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -""" -Provides rdfdb version information. -""" - -# This file is auto-generated! Do not edit! -# Use `python -m incremental.update rdfdb` to change this file. - -from incremental import Version - -__version__ = Version('rdfdb', 0, 3, 0) -__all__ = ["__version__"]