diff options
author | Matt Rendina <mrendina@stsci.edu> | 2018-07-16 16:03:16 -0400 |
---|---|---|
committer | Matt Rendina <mrendina@stsci.edu> | 2018-07-16 16:03:16 -0400 |
commit | 92c7c850e2792d6e4ae116fc1822b63d1e95ac2a (patch) | |
tree | 674799a6e0c6ae099b14524d2bcb23c127eb00c0 /release-check.py | |
parent | 43fbe43e9731a9bda154ec86adaad94de0df7ba4 (diff) | |
download | release-check-master.tar.gz |
Diffstat (limited to 'release-check.py')
-rwxr-xr-x | release-check.py | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/release-check.py b/release-check.py index dbcb9a2..d6f96c5 100755 --- a/release-check.py +++ b/release-check.py @@ -1,5 +1,18 @@ #!/usr/bin/env python3 +# A priori: compute MD5 of cfitsio 3.45, store persistently on disk. +# Get latest tarball +# Compute MD5 of tarball +# Compare hash to previously stored value (kept in some persistent +# filesystem storage area.) +# If the hashes are identical, exit. +# If the hashes differ, unpack the tarball and extract the SONAME value +# compare SONAME value with previously stored value (kept in same +# persistent storage area.) +# Also extract latest changelog section for inclusion in github issue text. +# Indicate that a new release has been made in Github issue comment. +# If the SONAME value differs, also indicate this in the status message. + import os import sys import urllib.request @@ -18,7 +31,7 @@ parser.add_argument('-p', action='store_true', help='Prompt for interactive password entry. Overrides default behavior' ' of accepting the password to use via the environment variable' - ' CFITSIO_NOTIFY_PW.') + ' RELEASECHECK_PW.') parser.add_argument('-t', '--testing', action='store_true', @@ -50,20 +63,6 @@ if not args.testing: sys.exit(1) -# A priori: compute MD5 of cfitsio 3.45, store persistently on disk. -# Get latest tarball -# Compute MD5 of tarball -# Compare hash to previously stored value (kept in some persistent -# filesystem storage area.) -# If the hash are identical, exit. -# If the hashes differ, unpack the tarball and extract the SONAME value -# compare SONAME value with previously stored value (kept in same -# persistent storage area.) -# Also extract latest changelog section for inclusion in github issue text. -# Indicate that a new release has been made in Github issue comment. -# If the SONAME value differs, also indicate this in the status message. - - latest_tar = 'cfitsio_latest.tar.gz' latest_URL = 'http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/{}'.format(latest_tar) reference_file = './cfitsio_reference' @@ -127,7 +126,7 @@ with tempfile.TemporaryDirectory() as tmpdir: # Get changelog message for the latest release. comment = ('This is a message from an automated system that monitors `cfitsio` releases.\n' - '`cfitsio`') + '`cfitsio` ') with open(changesfile) as cf: sec_open = False for line in cf.readlines(): |