aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2012-02-16 16:15:24 -0500
committerW. Trevor King <wking@drexel.edu>2012-02-16 16:43:50 -0500
commit21286ccdbbf4c8853545392df087244fc8510293 (patch)
tree60b5e9601055cc28307752707d17dc6a672256f6 /release.py
parent0d3d9a3780a27f1c80833638ad0622bf4e67023d (diff)
downloadbugseverywhere-21286ccdbbf4c8853545392df087244fc8510293.tar.gz
Add update-copyright as a submodule and update release.py accordingly.
Also add `**kwargs` to `invoke` so we can specify the environment.
Diffstat (limited to 'release.py')
-rwxr-xr-xrelease.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/release.py b/release.py
index 7464871..90812fd 100755
--- a/release.py
+++ b/release.py
@@ -180,7 +180,15 @@ If you don't like what got committed, you can undo the release with
sys.exit(1)
set_release_version(_tag)
print "Update copyright information..."
- status,stdout,stderr = invoke(['update-copyright.py'])
+ env = dict(os.environ)
+ pythonpath = os.path.abspath('update-copyright')
+ if 'PYTHONPATH' in env:
+ env['PYTHONPATH'] = '{}:{}'.format(pythonpath, env['PYTHONPATH'])
+ else:
+ env['PYTHONPATH'] = pythonpath
+ status,stdout,stderr = invoke([
+ os.path.join('update-copyright', 'bin', 'update-copyright.py')],
+ env=env)
commit("Bumped to version %s" % _tag)
tag(_tag)
create_tarball(_tag)