~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to release.py

  • Committer: Aaron Bentley
  • Date: 2007-06-11 05:08:34 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20070611050834-wcbta2pfitcuopku
fix long-line detection

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    print "Mismatch between bzrtools version and setup.py version:\n %s %s"\
23
23
        % (bzrtools.__version__, match.group(1))
24
24
    sys.exit(1)
25
 
    
 
25
 
26
26
print "setup.py version: %s" % match.group(1)
27
27
newsmatch = minigrep('RELEASE: bzrtools %s' % (bzrtools.__version__), 'NEWS')
28
28
if newsmatch is None:
37
37
if os.path.exists(final_name):
38
38
    print "Final file exists already."
39
39
    sys.exit(1)
 
40
if call(['bzr', 'diff']) != 0:
 
41
    print "Please commit before releasing"
 
42
    sys.exit(1)
40
43
retcode = call(['bzr', 'export', '../bzrtools.tar.gz'])
41
44
if retcode != 0:
42
45
    sys.exit(1)
44
47
print 'Created %s' % final_name
45
48
call(['gpg', '--detach-sign', final_name])
46
49
print 'Uploading...'
47
 
call(['scp', final_name, final_name + '.sig', 
 
50
call(['scp', final_name, final_name + '.sig',
48
51
      'panoramicfeedback.com:opensource/'])
49
 
print "If you haven't committed, now would be a good time."