diff options
author | W. Trevor King <wking@drexel.edu> | 2012-02-16 16:15:24 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2012-02-16 16:43:50 -0500 |
commit | 21286ccdbbf4c8853545392df087244fc8510293 (patch) | |
tree | 60b5e9601055cc28307752707d17dc6a672256f6 /release.py | |
parent | 0d3d9a3780a27f1c80833638ad0622bf4e67023d (diff) | |
download | bugseverywhere-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-x | release.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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) |