summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Rendina <mrendina@stsci.edu>2018-07-16 16:03:16 -0400
committerMatt Rendina <mrendina@stsci.edu>2018-07-16 16:03:16 -0400
commit92c7c850e2792d6e4ae116fc1822b63d1e95ac2a (patch)
tree674799a6e0c6ae099b14524d2bcb23c127eb00c0
parent43fbe43e9731a9bda154ec86adaad94de0df7ba4 (diff)
downloadrelease-check-0.0.1.tar.gz
Minor doc and formatting changes.HEAD0.0.1master
-rwxr-xr-xrelease-check.py31
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():